config

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

func LoadConfiguration(file string) Config

LoadConfiguration loads configurations from a local json file

type Function added in v0.1.13

type Function struct {
	Openwhisk        `json:"openwhisk"`
	OpenFaas         `json:"openFaas"`
	Kubeless         `json:"kubeless"`
	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

type FunctionResources struct {
	Memory string `json:"memory"`
	CPU    string `json:"cpu"`
}

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 Kubeless added in v0.1.15

type Kubeless struct {
	K8sConfig       string `json:"k8sConfig"`
	FuncNamespace   string `json:"funcNamespace"`
	ImagePullSecret string `json:"imagePullSecret"`
}

Kubeless defines the Kubeless faas 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 Openwhisk added in v0.1.13

type Openwhisk struct {
	AuthToken string `json:"authToken"`
	Host      string `json:"host"`
}

Openwhisk defines the OpenWhisk faas specific config

type Registry added in v0.1.13

type Registry struct {
	RegistryURI  string `json:"uri"`
	RegistryAuth string `json:"auth"`
}

Registry defines the image registry 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

func LoadStaticUsers(file string) Users

LoadStaticUsers loads static users from a local file

Jump to

Keyboard shortcuts

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