C# 클래스 Warehouse.PackageHandling.PackageManager

Responsable for: * Unpack (Deploy and unpacking packages) * Delete deployed packages
파일 보기 프로젝트 열기: Starcounter/Warehouse

공개 메소드들

메소드 설명
Delete ( DeployedConfigFile config, string imageResourceFolder ) : void

Delete unpacked package

GetInstallApps ( string path ) : IList

Get a list of installed apps configurations TODO: Rename to GetDepolyedApps

GetInstalledApp ( string id, string path, DeployedConfigFile &installedConfig ) : void

Get installed App in a folder

ReadConfiguration ( ZipArchive archive, PackageConfigFile &config ) : void

Get App configuration from zipped package

ReadConfiguration ( string packageZip, PackageConfigFile &config ) : void

Get App configuration from zipped package

Unpack ( Stream packageZip, string sourceUrl, string storeUrl, string appRootFolder, string imageResourceFolder, DeployedConfigFile &config ) : void

Unpack zipped package stream

Unpack ( string packageZip, string appRootFolder, string imageResourceFolder, DeployedConfigFile &config ) : void

Install zipped package

UnpackFile ( ZipArchive archive, string file, string destinationFileName ) : void

Unpack file from an archive

VerifyPacket ( Stream package ) : void
VerifyPacket ( string packageZip ) : void

비공개 메소드들

메소드 설명
CreateConfig ( PackageConfigFile packageConfig, string sourceUrl, string storeUrl, string imageUri, DeployedConfigFile &config ) : void

Create App configuration from package configuration

GetAppConfigs ( string path, System searchOptions ) : IList

Get Installed application configuration files

GetInstalledApp ( string path ) : DeployedConfigFile

Get installed App in a folder

UnpackAppImage ( ZipArchive archive, PackageConfigFile config, string imageResourceFolder, string &imageUri ) : void

ValidateConfiguration ( ZipArchive archive, PackageConfigFile config ) : void

Validate app configuration

VerifyPackageEntry ( ZipArchive archive, string entryName ) : void

Verify Package entry

메소드 상세

Delete() 공개 정적인 메소드

Delete unpacked package
public static Delete ( DeployedConfigFile config, string imageResourceFolder ) : void
config DeployedConfigFile
imageResourceFolder string
리턴 void

GetInstallApps() 공개 정적인 메소드

Get a list of installed apps configurations TODO: Rename to GetDepolyedApps
public static GetInstallApps ( string path ) : IList
path string
리턴 IList

GetInstalledApp() 공개 정적인 메소드

Get installed App in a folder
public static GetInstalledApp ( string id, string path, DeployedConfigFile &installedConfig ) : void
id string
path string
installedConfig DeployedConfigFile
리턴 void

ReadConfiguration() 공개 정적인 메소드

Get App configuration from zipped package
public static ReadConfiguration ( ZipArchive archive, PackageConfigFile &config ) : void
archive System.IO.Compression.ZipArchive
config PackageConfigFile
리턴 void

ReadConfiguration() 공개 정적인 메소드

Get App configuration from zipped package
public static ReadConfiguration ( string packageZip, PackageConfigFile &config ) : void
packageZip string
config PackageConfigFile
리턴 void

Unpack() 공개 정적인 메소드

Unpack zipped package stream
public static Unpack ( Stream packageZip, string sourceUrl, string storeUrl, string appRootFolder, string imageResourceFolder, DeployedConfigFile &config ) : void
packageZip Stream Zipped package stream
sourceUrl string
storeUrl string
appRootFolder string
imageResourceFolder string Folder where app image will be created
config DeployedConfigFile
리턴 void

Unpack() 공개 정적인 메소드

Install zipped package
public static Unpack ( string packageZip, string appRootFolder, string imageResourceFolder, DeployedConfigFile &config ) : void
packageZip string Zipped package
appRootFolder string
imageResourceFolder string Folder where app image will be created
config DeployedConfigFile
리턴 void

UnpackFile() 공개 정적인 메소드

Unpack file from an archive
public static UnpackFile ( ZipArchive archive, string file, string destinationFileName ) : void
archive System.IO.Compression.ZipArchive
file string
destinationFileName string
리턴 void

VerifyPacket() 공개 정적인 메소드

public static VerifyPacket ( Stream package ) : void
package Stream
리턴 void

VerifyPacket() 공개 정적인 메소드

public static VerifyPacket ( string packageZip ) : void
packageZip string
리턴 void