Documentation
¶
Index ¶
- func NewConfigmap(name, namespace string, opts ...CmOption) *corev1.ConfigMap
- func NewKnService(name, ns string, opts ...KnSvcOption) *servingv1.Service
- type CmOption
- type KnSvcOption
- func KnSvcAnnotation(key, value string) KnSvcOption
- func KnSvcEntrypoint(command string) KnSvcOption
- func KnSvcEnvVar(name, val string) KnSvcOption
- func KnSvcEnvVars(evs ...corev1.EnvVar) KnSvcOption
- func KnSvcImage(img string) KnSvcOption
- func KnSvcLabel(labels map[string]string) KnSvcOption
- func KnSvcMountCm(cmSrc, fileDst string) KnSvcOption
- func KnSvcOwner(o kmeta.OwnerRefable) KnSvcOption
- func KnSvcVisibility(public bool) KnSvcOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfigmap ¶
NewConfigmap returns core configmap object.
func NewKnService ¶
func NewKnService(name, ns string, opts ...KnSvcOption) *servingv1.Service
NewKnService creates a Knative Service object.
Types ¶
type KnSvcOption ¶
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 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.
Click to show internal directories.
Click to hide internal directories.