settings

package
v0.0.0-...-3bde953 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug bool
View Source
var IsRPaaS bool
View Source
var LogRequestBody bool
View Source
var LogResponseBody bool
View Source
var OptionalSettings = map[string]interface{}{
	"AllowInsecureRegistry": "CNAB_BUNDLE_INSECURE_REGISTRY:bool",
	"ForcePull":             "CNAB_BUNDLE_FORCE_PULL:bool",
	"LogRequestBody":        "LOG_REQUEST_BODY:bool",
	"LogResponseBody":       "LOG_RESPONSE_BODY:bool",
	"IsRPaaS":               "IS_RPAAS:bool",
	"ResourceType":          "RESOURCE_TYPE:string",
	"BundleTag":             "CNAB_BUNDLE_TAG:string",
}
View Source
var RPToProvider = make(map[string]*BundleInformation)
View Source
var RequiredSettings = map[string]string{
	"StorageAccountName":   "CNAB_AZURE_STATE_STORAGE_ACCOUNT_NAME",
	"StorageResourceGroup": "CNAB_AZURE_STATE_STORAGE_RESOURCE_GROUP",
	"SusbcriptionId":       "CNAB_AZURE_SUBSCRIPTION_ID",
	"AsyncOpTable":         "CUSTOM_RP_ASYNC_OP_TABLE",
	"StateTable":           "CUSTOM_RP_STATE_TABLE",
}

Functions

func GetRPName

func GetRPName(resourceProviderName string, resourceTypeName string) string

GetRPName returns the RP Name

func Load

func Load() error

Types

type BundleInformation

type BundleInformation struct {
	ResourceType      string
	ResourceProvider  string
	BundlePullOptions *porter.BundlePullOptions
	TrimmedBundleTag  string
	RPBundle          *bundle.Bundle
}

type Config

type Config struct {
	Mappings []Mapping
}

type Mapping

type Mapping struct {
	Provider              string `mapstructure:"provider"`
	Type                  string `mapstructure:"type"`
	Tag                   string `mapstructure:"tag"`
	ForcePull             bool   `mapstructure:"forcepull"`
	AllowInsecureRegistry bool   `mapstructure:"insecureregistry"`
}

Jump to

Keyboard shortcuts

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