k8s

package
v0.0.0-...-98ec3a1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceRef = "kubernetes.pod_name"
	Step        = "kubernetes.container_name"
	GitTekton   = "tekton.dev/git-0"

	TenantUnexpectedType = "unexpected type"
	TenantDefault        = "faas"

	SecretGitSuffix    = "git"
	SecretDockerSuffix = "docker"

	KsvcDefaultContainerName = "serving"
	KsvcDefaultContainerPort = 8080

	RegisterAPIPipeline = "register-polyapi"

	RegisterAPIParamSourceURL    = "SOURCE_URL"
	RegisterAPIParamProject      = "PROJECT_NAME"
	RegisterAPIParamProjectTitle = "PROJECT_TITLE"
	RegisterAPIParamGroup        = "GROUP_NAME"
	RegisterAPIParamPOperate     = "OPERATE_ID"
	RegisterAPIParamAppID        = "APPID"

	RegisterAPIServiceAccount = "builder"
	RegisterAPIWorkSpace      = "source-ws"
)

const of faas

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CreateGitToken(ctx context.Context, host, token string) error
	CreateGitSSH(ctx context.Context, host, ssh string) error
	CreateDocker(ctx context.Context, host, username, secret string) error
	Build(ctx context.Context, data *Function) error
	DelFunction(ctx context.Context, data *DelFunction) error
	CreateServing(ctx context.Context, fn *Function) error
	DelServing(ctx context.Context, fn *Function) error
	RegistAPI(ctx context.Context, fn *Function, appId string) error
	DeleteReigstRun(ctx context.Context, name string) error
	GetBuilder(language string, version string) (string, error)
}

Client Client

func NewClient

func NewClient(config *config.Config, namespace string) Client

NewClient NewClient

type DelFunction

type DelFunction struct {
	Name string
}

DelFunction DelFunction

type Docker

type Docker struct {
	Host      string
	NameSpace string
	Name      string
}

Docker Docker

type Function

type Function struct {
	ID           string
	Version      string
	Project      string
	ProjectTitle string
	GroupName    string
	Git          *Git
	Docker       *Docker
	Builder      string
	ENV          map[string]string
}

Function Function

type Git

type Git struct {
	Name string
	Host string
}

Git Git

Jump to

Keyboard shortcuts

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