Documentation
¶
Index ¶
- func GenerateZipFile(source string) (string, error)
- func StoreConfig(config AppServiceConfig) error
- func UploadAppService(config AppServiceConfig, deployZipBytes io.Reader) error
- func UploadWebjob(config AppServiceConfig, deployZipBytes io.Reader) error
- func ValidConfig(config AppServiceConfig, zipFileName string, uploadPath string, ...) bool
- func WriteConfig(config Config) error
- type AppServiceConfig
- type AzureHelper
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateZipFile ¶
func StoreConfig ¶
func StoreConfig(config AppServiceConfig) error
storeConfig stores PARTS of the config to the config file. needs to replace
func UploadAppService ¶
func UploadAppService(config AppServiceConfig, deployZipBytes io.Reader) error
func UploadWebjob ¶
func UploadWebjob(config AppServiceConfig, deployZipBytes io.Reader) error
func ValidConfig ¶
func ValidConfig(config AppServiceConfig, zipFileName string, uploadPath string, deployType string) bool
check if config is missing stuff.
func WriteConfig ¶
readConfig reads a JSON file and returns the appropriate config.
Types ¶
type AppServiceConfig ¶
type AppServiceConfig struct {
Username string `json:"username"`
Password string `json:"password"`
WebjobName string `json:"webjobname"`
WebjobExeName string `json:"webjobexename"`
AppServiceName string `json:"appservicename"`
}
func GetConfig ¶
func GetConfig(username string, password string, appServiceName string, webjobExeName string, webjobName string) (*AppServiceConfig, error)
get config... will return a map of string to string, but will initially populate via the config file (~/.webjobdeploy/config.json) and will overload from the passed in params.
type AzureHelper ¶
type AzureHelper struct {
}
type Config ¶
type Config struct {
AppServicesConfigs []AppServiceConfig `json:"appserviceconfigs"`
}
Config has all the configs for the various app services. ideally it would be a map to an AppServiceConfig but unsure about JSON and maps. so will just leave as array. Yes, needs to traverse it, but hardly a perf concern.
func ReadConfig ¶
readConfig reads a JSON file and returns the appropriate config.
Click to show internal directories.
Click to hide internal directories.