Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var EmptyRegistryAuth = "eyJ1c2VybmFtZSI6IiIsInBhc3N3b3JkIjoiIiwiZW1haWwiOiIifQ=="
EmptyRegistryAuth == echo -n '{"username":"","password":"","email":""}' | base64
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Identity `json:"identity"` Function `json:"function"` Registry `json:"registry"` Service `json:"service"` OrganizationID string `json:"organizationID"` }
Config defines global configurations used in Dispatch
var Global Config
Global contains global configuration variables
func LoadConfiguration ¶
LoadConfiguration loads configurations from a local json file
type Function ¶ added in v0.1.13
type Function struct { Openwhisk `json:"openwhisk"` OpenFaas `json:"openFaas"` Riff `json:"riff"` Faas string `json:"faas"` ResyncPeriod int `json:"resyncPeriod"` FileImageManager string `json:"fileImageManager"` }
Function defines the function manager specific config
type FunctionResources ¶ added in v0.1.13
FunctionResources Memory and CPU
type Identity ¶ added in v0.1.13
type Identity struct { OIDCProvider string `json:"oidcProvider"` ClientID string `json:"clientId"` ClientSecret string `json:"clientSecret"` RedirectURL string `json:"redirectUrl"` Scopes []string `json:"scopes"` }
Identity defines the identity manager specific config
type K8sServiceCatalog ¶ added in v0.1.13
type K8sServiceCatalog struct {
CatalogNamespace string `json:"catalogNamespace"`
}
K8sServiceCatalog defines the kubernetes service catalog specific config
type OpenFaas ¶ added in v0.1.13
type OpenFaas struct { Gateway string `json:"gateway"` K8sConfig string `json:"k8sConfig"` FuncNamespace string `json:"funcNamespace"` ImagePullSecret string `json:"imagePullSecret"` FuncDefaultLimits *FunctionResources `json:"funcDefaultLimits"` FuncDefaultRequests *FunctionResources `json:"funcDefaultRequests"` }
OpenFaas defines the OpenFaaS faas specific config
type Riff ¶ added in v0.1.13
type Riff struct { KafkaBrokers []string `json:"kafkaBrokers"` K8sConfig string `json:"k8sConfig"` FuncNamespace string `json:"funcNamespace"` FuncDefaultLimits *FunctionResources `json:"funcDefaultLimits"` FuncDefaultRequests *FunctionResources `json:"funcDefaultRequests"` }
Riff defines the Riff faas specific config
type Service ¶ added in v0.1.13
type Service struct { K8sServiceCatalog `json:"k8sServiceCatalog"` Catalog string `json:"catalog"` }
Service defines the service manager specific config
type Users ¶
type Users struct { Data []struct { Username string `json:"username"` Password string `json:"password"` } `json:"users"` }
Users defines a list of static users
var StaticUsers Users
StaticUsers contains a list of static users
func LoadStaticUsers ¶
LoadStaticUsers loads static users from a local file