resources

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCmKey = "code"
View Source
const (
	MountPath = "/opt"
)

Variables

This section is empty.

Functions

func CmData

func CmData(data string) cmOption

func CmLabel

func CmLabel(labels map[string]string) cmOption

func CmOwner

func CmOwner(o kmeta.OwnerRefable) cmOption

func KnSvcAnnotation

func KnSvcAnnotation(key, value string) knSvcOption

func KnSvcEntrypoint

func KnSvcEntrypoint(command string) knSvcOption

func KnSvcEnvVar

func KnSvcEnvVar(name, val string) knSvcOption

EnvVar sets the value of a Container's environment variable.

func KnSvcEnvVars

func KnSvcEnvVars(evs ...corev1.EnvVar) knSvcOption

EnvVars sets the value of multiple environment variables.

func KnSvcImage

func KnSvcImage(img string) knSvcOption

Image sets a Container's image.

func KnSvcLabel

func KnSvcLabel(labels map[string]string) knSvcOption

func KnSvcMountCm

func KnSvcMountCm(cmSrc, fileDst string) knSvcOption

func KnSvcOwner

func KnSvcOwner(o kmeta.OwnerRefable) knSvcOption

func KnSvcVisibility

func KnSvcVisibility(public bool) knSvcOption

func NewConfigmap

func NewConfigmap(name, namespace string, opts ...cmOption) *corev1.ConfigMap

func NewKnService

func NewKnService(name, ns string, opts ...knSvcOption) *servingv1.Service

NewKnService creates a Knative Service object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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