C# Class Warehouse.PackageHandling.PackageManager

Responsable for: * Unpack (Deploy and unpacking packages) * Delete deployed packages
Afficher le fichier Open project: Starcounter/Warehouse

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

Delete() public static méthode

Delete unpacked package
public static Delete ( DeployedConfigFile config, string imageResourceFolder ) : void
config DeployedConfigFile
imageResourceFolder string
Résultat void

GetInstallApps() public static méthode

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

GetInstalledApp() public static méthode

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

ReadConfiguration() public static méthode

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

ReadConfiguration() public static méthode

Get App configuration from zipped package
public static ReadConfiguration ( string packageZip, PackageConfigFile &config ) : void
packageZip string
config PackageConfigFile
Résultat void

Unpack() public static méthode

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
Résultat void

Unpack() public static méthode

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
Résultat void

UnpackFile() public static méthode

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

VerifyPacket() public static méthode

public static VerifyPacket ( Stream package ) : void
package Stream
Résultat void

VerifyPacket() public static méthode

public static VerifyPacket ( string packageZip ) : void
packageZip string
Résultat void