helpers

package
v0.0.0-...-de544a3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateZipFile

func GenerateZipFile(source string) (string, error)

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

func WriteConfig(config Config) error

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

func ReadConfig() (*Config, error)

readConfig reads a JSON file and returns the appropriate config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL