schema

package
v0.0.0-...-6de492c Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 3 Imported by: 34

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImageName

func BuildImageName(format BuildFormat, image string, version string, branch string) string

BuildImageName builds a Docker image tag for build, push or deploy

Types

type BuildFormat

type BuildFormat int

BuildFormat defines the docker image tag format that is used during the build process

const BranchAndSHAFormat BuildFormat = 2

BranchAndSHAFormat uses "latest-<branch>-<sha>" as the docker tag

const DefaultFormat BuildFormat = 0

DefaultFormat as defined in the YAML file or appending :latest

const DescribeFormat BuildFormat = 3

DescribeFormat uses the git-describe output as the docker tag

const DigestFormat BuildFormat = 4

DigestFormat

const SHAFormat BuildFormat = 1

SHAFormat uses "latest-<sha>" as the docker tag

func (*BuildFormat) Set

func (i *BuildFormat) Set(value string) error

Set implements pflag.Value

func (*BuildFormat) String

func (i *BuildFormat) String() string

String implements Stringer

func (*BuildFormat) Type

func (i *BuildFormat) Type() string

Type implements pflag.Value

type FunctionDescription

type FunctionDescription struct {
	types.FunctionStatus
	Status          string
	InvocationCount int
	URL             string
	AsyncURL        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 KubernetesSecretMetadata

type KubernetesSecretMetadata struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

type Metadata

type Metadata struct {
	Name        string            `yaml:"name,omitempty"`
	Namespace   string            `yaml:"namespace,omitempty"`
	Annotations map[string]string `yaml:"annotations,omitempty"`
}

Metadata metadata 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

Directories

Path Synopsis
knative
v1
openfaas
v1
store
v2

Jump to

Keyboard shortcuts

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