v0.0.0-...-54afde0 Latest Latest

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

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



Code generated for package deploy by go-bindata DO NOT EDIT. (@generated) sources: databases-development.json env-development.json rbac-development.json rp-development-predeploy.json rp-development.json rp-production-global-subscription.json rp-production-global.json rp-production-managed-identity.json rp-production-parameters.json rp-production-predeploy-parameters.json rp-production-predeploy.json rp-production.json



This section is empty.


This section is empty.


func Asset

func Asset(name string) ([]byte, error)

Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetDir

func AssetDir(name string) ([]string, error)

AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:


then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.

func AssetInfo

func AssetInfo(name string) (os.FileInfo, error)

AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetNames

func AssetNames() []string

AssetNames returns the names of the assets.

func MustAsset

func MustAsset(name string) []byte

MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.

func RestoreAsset

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory

func RestoreAssets

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively


type Config

type Config struct {
	RPs           []RPConfig     `json:"rps,omitempty"`
	Configuration *Configuration `json:"configuration,omitempty"`

Config represents configuration object for deployer tooling

type Configuration

type Configuration struct {
	ACRResourceID                      string        `json:"acrResourceId,omitempty"`
	AdminAPICABundle                   string        `json:"adminApiCaBundle,omitempty"`
	AdminAPIClientCertCommonName       string        `json:"adminApiClientCertCommonName,omitempty"`
	ClusterParentDomainName            string        `json:"clusterParentDomainName,omitempty"`
	DatabaseAccountName                string        `json:"databaseAccountName,omitempty"`
	ExtraClusterKeyvaultAccessPolicies []interface{} `json:"extraClusterKeyvaultAccessPolicies,omitempty"`
	ExtraCosmosDBIPs                   []string      `json:"extraCosmosDBIPs,omitempty"`
	ExtraServiceKeyvaultAccessPolicies []interface{} `json:"extraServiceKeyvaultAccessPolicies,omitempty"`
	FPServerCertCommonName             string        `json:"fpServerCertCommonName,omitempty"`
	FPServicePrincipalID               string        `json:"fpServicePrincipalId,omitempty"`
	GlobalMonitoringKeyVaultURI        string        `json:"globalMonitoringKeyVaultUri,omitempty"`
	GlobalResourceGroupName            string        `json:"globalResourceGroupName,omitempty"`
	GlobalSubscriptionID               string        `json:"globalSubscriptionId,omitempty"`
	KeyvaultPrefix                     string        `json:"keyvaultPrefix,omitempty"`
	MDMFrontendURL                     string        `json:"mdmFrontendUrl,omitempty"`
	MDSDConfigVersion                  string        `json:"mdsdConfigVersion,omitempty"`
	MDSDEnvironment                    string        `json:"mdsdEnvironment,omitempty"`
	RPImagePrefix                      string        `json:"rpImagePrefix,omitempty"`
	RPMode                             string        `json:"rpMode,omitempty"`
	RPParentDomainName                 string        `json:"rpParentDomainName,omitempty"`
	SSHPublicKey                       string        `json:"sshPublicKey,omitempty"`

Configuration represents configuration structure

type Deployer

type Deployer interface {
	PreDeploy(context.Context) (string, error)
	Deploy(context.Context, string) error
	Upgrade(context.Context) error

func New

func New(ctx context.Context, log *logrus.Entry, config *RPConfig, version string) (Deployer, error)

New initiates new deploy utility object

type RPConfig

type RPConfig struct {
	Location          string         `json:"location,omitempty"`
	SubscriptionID    string         `json:"subscriptionId,omitempty"`
	ResourceGroupName string         `json:"resourceGroupName,omitempty"`
	Configuration     *Configuration `json:"configuration,omitempty"`

RPConfig represents individual RP configuration

func GetConfig

func GetConfig(path, location string) (*RPConfig, error)

GetConfig return RP configuration from the file


Path Synopsis

Jump to

Keyboard shortcuts

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