resources

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigmap

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

NewConfigmap returns core configmap object.

func NewKnService

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

NewKnService creates a Knative Service object.

Types

type CmOption

type CmOption func(*corev1.ConfigMap)

CmOption sets configmap options.

func CmData

func CmData(data string) CmOption

CmData sets configmap data.

func CmLabel

func CmLabel(labels map[string]string) CmOption

CmLabel sets configmap labels.

func CmOwner

func CmOwner(o kmeta.OwnerRefable) CmOption

CmOwner sets configmap owner.

type KnSvcOption

type KnSvcOption func(*servingv1.Service)

KnSvcOption sets Kn service options.

func KnSvcAnnotation

func KnSvcAnnotation(key, value string) KnSvcOption

KnSvcAnnotation sets Kn service annotation.

func KnSvcEntrypoint

func KnSvcEntrypoint(command string) KnSvcOption

KnSvcEntrypoint sets Kn service entrypoint.

func KnSvcEnvVar

func KnSvcEnvVar(name, val string) KnSvcOption

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

func KnSvcEnvVars

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

KnSvcEnvVars sets the value of multiple environment variables.

func KnSvcImage

func KnSvcImage(img string) KnSvcOption

KnSvcImage sets a Container's image.

func KnSvcLabel

func KnSvcLabel(labels map[string]string) KnSvcOption

KnSvcLabel sets Kn service labels.

func KnSvcMountCm

func KnSvcMountCm(cmSrc, fileDst string) KnSvcOption

KnSvcMountCm sets Kn service volume mounts.

func KnSvcOwner

func KnSvcOwner(o kmeta.OwnerRefable) KnSvcOption

KnSvcOwner sets Kn service owner.

func KnSvcVisibility

func KnSvcVisibility(public bool) KnSvcOption

KnSvcVisibility sets Kn service visibility scope.

Jump to

Keyboard shortcuts

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