Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildImageName ¶
func BuildImageName(format BuildFormat, image string, SHA string, branch string) string
BuildImageName builds a Docker image tag for build, push or deploy
Types ¶
type BuildFormat ¶
type BuildFormat int
const BranchAndSHAFormat BuildFormat = 2
const DefaultFormat BuildFormat = 0
DefaultFormat as defined in the YAML file or appending :latest
const SHAFormat BuildFormat = 1
type CRD ¶
type CRD struct { //APIVersion CRD API version APIVersion string `yaml:"apiVersion"` //Kind kind of the object Kind string `yaml:"kind"` Metadata Metadata `yaml:"metadata"` Spec Spec `yaml:"spec"` }
CRD root level YAML definition for the object
type FunctionDescription ¶
type FunctionDescription struct { Name string Status string Replicas int AvailableReplicas int InvocationCount int Image string EnvProcess string URL string AsyncURL string Labels *map[string]string Annotations *map[string]string }
FunctionDescription information related to a function
type KubernetesSecret ¶
type KubernetesSecret struct { Kind string `json:"kind"` ApiVersion string `json:"apiVersion"` Metadata KubernetesSecretMetadata `json:"metadata"` Data map[string]string `json:"data"` }
type Spec ¶
type Spec struct { //Name name of the function Name string `yaml:"name"` //Image docker image name of the function Image string `yaml:"image"` Environment map[string]string `yaml:"environment,omitempty"` Labels *map[string]string `yaml:"labels,omitempty"` //Limits for the function Limits *stack.FunctionResources `yaml:"limits,omitempty"` //Requests of resources requested by function Requests *stack.FunctionResources `yaml:"requests,omitempty"` Constraints *[]string `yaml:"constraints,omitempty"` //Secrets list of secrets to be made available to function Secrets []string `yaml:"secrets,omitempty"` }
Spec describe characteristics of the object
type StoreItem ¶
type StoreItem struct { Icon string `json:"icon"` Title string `json:"title"` Description string `json:"description"` Image string `json:"image"` Name string `json:"name"` Fprocess string `json:"fprocess"` Network string `json:"network"` RepoURL string `json:"repo_url"` Environment map[string]string `json:"environment"` Labels map[string]string `json:"labels"` Annotations map[string]string `json:"annotations"` ReadOnlyRootFilesystem bool `json:"readOnlyRootFilesystem"` }
StoreItem represents an item of store
Click to show internal directories.
Click to hide internal directories.