# Functions
ArchiveTypeByExtension returns the type of the archive by the file's extension Note: this function assumes that the file was already validated to contain one of the valid extensions Ensure to use the SiteApp.Validate() method first.
CertificateExists checks if the certificate and key exist on disk.
CopyFile copies the src file to dst.
Build job ID.
EnsureFolder creates a folder if it doesn't exist already.
ExtractArchive extracts a compressed archive Reads input from a stream in, and extracts all files into dst This supports all archive formats supported by archiver, including zip, tar.gz, tar.bz2, rar.
FileExists returns true if the path exists on disk and it's not a folder.
FolderExists returns true if the path exists on disk and it's a folder.
GetAzureAuthorizer returns the autorest.Authorizer object for the Azure SDK, for a given service See GetAzureEndpoint for the list of services.
GetAzureEndpoint returns the endpoint for the Azure service Service can be one of: - "azure" for Azure Resource Manager - "keyvault" for Azure Key Vault - "storage" for Azure Storage.
GetAzureOAuthConfig returns the adal.OAuthConfig object that can be used to authenticate against Azure resources.
GetAzureServicePrincipalToken returns a Service Principal token inside an adal.ServicePrincipalToken object, for a given service Note that the returned token needs to be refreshed with the `Refresh()` method right away before it can be used See GetAzureEndpoint for the list of services.
GetAzureStorageCredentials returns a azblob.Credential object that can be used to authenticate an Azure Blob Storage SDK pipeline.
GetAzureStorageEndpointSuffix returns the endpoint suffix for Azure Storage in this environment.
HeaderIsAllowed returns true if a header is allowed as response header.
IsTruthy returns true if a string (e.g.
NodeAddress returns the address of the node.
ParseRSAPublicKey converts a public RSA key represented by base64-encoded modulus and exponent into a rsa.PublicKey object.
PathExists returns true if the path exists on disk.
No description provided by the author
RemoveContents remove all contents within a directory Source: https://stackoverflow.com/a/33451503/192024.
RequestJSON fetches a JSON document from the web.
SanitizeAppName validates and sanitizes the name of an app's bundle App bundles must be lowercase strings containing letters, numbers, dashes and dots; the first character must be a letter.
SerializeECDSAKey serializes an ecdsa private key Source https://stackoverflow.com/a/41315404/192024.
SHA256String returns the SHA256 of a string, as a hex-encoded string.
StringInSlice checks if a string is contained inside a slice of strings.
UnserializeECDSAKey unserializes an ecdsa private key Source https://stackoverflow.com/a/41315404/192024.
No description provided by the author
# Constants
Type of archive.
Type of archive.
Type of archive.
Type of archive.
Type of archive.
Type of archive.
Type of archive.
Type of archive.
Job type identifiers.
Job type identifiers.
# Variables
Valid extensions.
# Structs
AppManifest represents the manifest of an app.
JobData is the struct of the.
ManifestRule is the dictionary with rules.
ManifestRuleOptions is used by the AppManifest struct to represent options for a specific location or file type.
NginxStatus contains information on the status of the Nginx server.
NodeStatus contains the current status of the node.
NodeStore contains information on the status of the store Particularly useful if using etcd as store.
NodeSync contains information on the sync status.
SiteHealth contains the results of the health checks for each individual app.
# Type aliases
ManifestRules is a slice of ManifestRule structs.