Interface IPackageManager
Package manager
Namespace: BuildSystem.ManagerObject.Interfaces
Assembly: BuildSystem.ManagerObject.Interfaces.dll
Syntax
public interface IPackageManager : IManager
Methods
Delete(IPackageProps)
Delete package with specialized version from server
Declaration
bool Delete(IPackageProps packageProps)
Parameters
Type | Name | Description |
---|---|---|
IPackageProps | packageProps | Params of deleting package |
Returns
Type | Description |
---|---|
bool | Flag that everything is ok |
GetPackageInfo(string, VersionProp, bool)
Get information from package repository about exact version
Declaration
IPackageProps? GetPackageInfo(string packageId, VersionProp packageVersion, bool useCache)
Parameters
Type | Name | Description |
---|---|---|
string | packageId | Id of package |
VersionProp | packageVersion | Version of package |
bool | useCache | Use local cache on computer |
Returns
Type | Description |
---|---|
IPackageProps | Full info about requested package |
GetPackageList(string, bool)
Get all packages from package repository
Declaration
List<IPackageProps> GetPackageList(string mask, bool useCache = true)
Parameters
Type | Name | Description |
---|---|---|
string | mask | Mask to filter searching packages. Use "." if you want to get everything |
bool | useCache | Use cache or not. Disabling cache produces exponential slowing down |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<><IPackageProps> | List of packages. Per each package only id and version will be filled |
GetVersionList(string, bool)
Get list of versions from package repository
Declaration
List<VersionProp> GetVersionList(string packageId, bool useCache)
Parameters
Type | Name | Description |
---|---|---|
string | packageId | Id of searching package |
bool | useCache | Use local cache on computer |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<><VersionProp> | List of version info for requested package |
Pack(IPackage, bool)
Create file, which can be pushed to server
Declaration
bool Pack(IPackage package, bool forceUpdateVersion)
Parameters
Type | Name | Description |
---|---|---|
IPackage | package | Params of creating package |
bool | forceUpdateVersion | Update version even there is no changes |
Returns
Type | Description |
---|---|
bool | Updated properties of package - with path to archive. Null if nothing was created - no need in creating |
Push(IPackage)
Push file to server
Declaration
void Push(IPackage package)
Parameters
Type | Name | Description |
---|---|---|
IPackage | package | Params of pushing package |