deploy

package
v0.0.0-...-a580c8e Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Overview

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-acr-replication.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-subscription.json rp-production.json

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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:

data/
  foo.txt
  img/
    a.png
    b.png

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

Types

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" value:"required"`
	RPVersionStorageAccountName        *string       `json:"rpVersionStorageAccountName,omitempty" value:"required"`
	ACRReplicaDisabled                 *bool         `json:"acrReplicaDisabled,omitempty"`
	AdminAPICABundle                   *string       `json:"adminApiCaBundle,omitempty" value:"required"`
	AdminAPIClientCertCommonName       *string       `json:"adminApiClientCertCommonName,omitempty" value:"required"`
	ClusterParentDomainName            *string       `json:"clusterParentDomainName,omitempty" value:"required"`
	DatabaseAccountName                *string       `json:"databaseAccountName,omitempty" value:"required"`
	ExtraClusterKeyvaultAccessPolicies []interface{} `json:"extraClusterKeyvaultAccessPolicies,omitempty" value:"required"`
	ExtraCosmosDBIPs                   []string      `json:"extraCosmosDBIPs,omitempty" value:"required"`
	ExtraServiceKeyvaultAccessPolicies []interface{} `json:"extraServiceKeyvaultAccessPolicies,omitempty" value:"required"`
	FPServerCertCommonName             *string       `json:"fpServerCertCommonName,omitempty"`
	FPServicePrincipalID               *string       `json:"fpServicePrincipalId,omitempty" value:"required"`
	GlobalMonitoringKeyVaultURI        *string       `json:"globalMonitoringKeyVaultUri,omitempty" value:"required"`
	GlobalResourceGroupName            *string       `json:"globalResourceGroupName,omitempty" value:"required"`
	GlobalSubscriptionID               *string       `json:"globalSubscriptionId,omitempty" value:"required"`
	KeyvaultPrefix                     *string       `json:"keyvaultPrefix,omitempty" value:"required"`
	MDMFrontendURL                     *string       `json:"mdmFrontendUrl,omitempty" value:"required"`
	MDSDConfigVersion                  *string       `json:"mdsdConfigVersion,omitempty" value:"required"`
	MDSDEnvironment                    *string       `json:"mdsdEnvironment,omitempty" value:"required"`
	RPImagePrefix                      *string       `json:"rpImagePrefix,omitempty" value:"required"`
	RPMode                             *string       `json:"rpMode,omitempty"`
	RPNSGSourceAddressPrefixes         []string      `json:"rpNsgSourceAddressPrefixes,omitempty" value:"required"`
	RPParentDomainName                 *string       `json:"rpParentDomainName,omitempty" value:"required"`
	SubscriptionResourceGroupName      *string       `json:"subscriptionResourceGroupName,omitempty" value:"required"`
	SSHPublicKey                       *string       `json:"sshPublicKey,omitempty" value:"required"`
	VMSize                             *string       `json:"vmSize,omitempty" value:"required"`
}

Configuration represents configuration structure

type Deployer

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

func New

func New(ctx context.Context, log *logrus.Entry, config *RPConfig, version string, fullDeploy bool) (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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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