v1

package
v0.0.0-...-51007fa Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FunctionApplyConfiguration

type FunctionApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *FunctionSpecApplyConfiguration `json:"spec,omitempty"`
}

FunctionApplyConfiguration represents an declarative configuration of the Function type for use with apply.

func Function

func Function(name, namespace string) *FunctionApplyConfiguration

Function constructs an declarative configuration of the Function type for use with apply.

func (*FunctionApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*FunctionApplyConfiguration) WithAnnotations

func (b *FunctionApplyConfiguration) WithAnnotations(entries map[string]string) *FunctionApplyConfiguration

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*FunctionApplyConfiguration) WithCreationTimestamp

func (b *FunctionApplyConfiguration) WithCreationTimestamp(value metav1.Time) *FunctionApplyConfiguration

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*FunctionApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *FunctionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *FunctionApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*FunctionApplyConfiguration) WithDeletionTimestamp

func (b *FunctionApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *FunctionApplyConfiguration

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*FunctionApplyConfiguration) WithFinalizers

func (b *FunctionApplyConfiguration) WithFinalizers(values ...string) *FunctionApplyConfiguration

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*FunctionApplyConfiguration) WithGenerateName

func (b *FunctionApplyConfiguration) WithGenerateName(value string) *FunctionApplyConfiguration

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*FunctionApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*FunctionApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*FunctionApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*FunctionApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*FunctionApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*FunctionApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*FunctionApplyConfiguration) WithResourceVersion

func (b *FunctionApplyConfiguration) WithResourceVersion(value string) *FunctionApplyConfiguration

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*FunctionApplyConfiguration) WithSpec

WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.

func (*FunctionApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type FunctionResourcesApplyConfiguration

type FunctionResourcesApplyConfiguration struct {
	Memory *string `json:"memory,omitempty"`
	CPU    *string `json:"cpu,omitempty"`
}

FunctionResourcesApplyConfiguration represents an declarative configuration of the FunctionResources type for use with apply.

func FunctionResources

func FunctionResources() *FunctionResourcesApplyConfiguration

FunctionResourcesApplyConfiguration constructs an declarative configuration of the FunctionResources type for use with apply.

func (*FunctionResourcesApplyConfiguration) WithCPU

WithCPU sets the CPU field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CPU field is set to the value of the last call.

func (*FunctionResourcesApplyConfiguration) WithMemory

WithMemory sets the Memory field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Memory field is set to the value of the last call.

type FunctionSpecApplyConfiguration

type FunctionSpecApplyConfiguration struct {
	Name                   *string                              `json:"name,omitempty"`
	Image                  *string                              `json:"image,omitempty"`
	Handler                *string                              `json:"handler,omitempty"`
	Annotations            *map[string]string                   `json:"annotations,omitempty"`
	Labels                 *map[string]string                   `json:"labels,omitempty"`
	Environment            *map[string]string                   `json:"environment,omitempty"`
	Constraints            []string                             `json:"constraints,omitempty"`
	Secrets                []string                             `json:"secrets,omitempty"`
	Limits                 *FunctionResourcesApplyConfiguration `json:"limits,omitempty"`
	Requests               *FunctionResourcesApplyConfiguration `json:"requests,omitempty"`
	ReadOnlyRootFilesystem *bool                                `json:"readOnlyRootFilesystem,omitempty"`
}

FunctionSpecApplyConfiguration represents an declarative configuration of the FunctionSpec type for use with apply.

func FunctionSpec

func FunctionSpec() *FunctionSpecApplyConfiguration

FunctionSpecApplyConfiguration constructs an declarative configuration of the FunctionSpec type for use with apply.

func (*FunctionSpecApplyConfiguration) WithAnnotations

WithAnnotations sets the Annotations field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Annotations field is set to the value of the last call.

func (*FunctionSpecApplyConfiguration) WithConstraints

WithConstraints adds the given value to the Constraints field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Constraints field.

func (*FunctionSpecApplyConfiguration) WithEnvironment

WithEnvironment sets the Environment field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Environment field is set to the value of the last call.

func (*FunctionSpecApplyConfiguration) WithHandler

WithHandler sets the Handler field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Handler field is set to the value of the last call.

func (*FunctionSpecApplyConfiguration) WithImage

WithImage sets the Image field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Image field is set to the value of the last call.

func (*FunctionSpecApplyConfiguration) WithLabels

WithLabels sets the Labels field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Labels field is set to the value of the last call.

func (*FunctionSpecApplyConfiguration) WithLimits

WithLimits sets the Limits field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Limits field is set to the value of the last call.

func (*FunctionSpecApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*FunctionSpecApplyConfiguration) WithReadOnlyRootFilesystem

func (b *FunctionSpecApplyConfiguration) WithReadOnlyRootFilesystem(value bool) *FunctionSpecApplyConfiguration

WithReadOnlyRootFilesystem sets the ReadOnlyRootFilesystem field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ReadOnlyRootFilesystem field is set to the value of the last call.

func (*FunctionSpecApplyConfiguration) WithRequests

WithRequests sets the Requests field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Requests field is set to the value of the last call.

func (*FunctionSpecApplyConfiguration) WithSecrets

WithSecrets adds the given value to the Secrets field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Secrets field.

type ProfileApplyConfiguration

type ProfileApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *ProfileSpecApplyConfiguration `json:"spec,omitempty"`
}

ProfileApplyConfiguration represents an declarative configuration of the Profile type for use with apply.

func Profile

func Profile(name, namespace string) *ProfileApplyConfiguration

Profile constructs an declarative configuration of the Profile type for use with apply.

func (*ProfileApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*ProfileApplyConfiguration) WithAnnotations

func (b *ProfileApplyConfiguration) WithAnnotations(entries map[string]string) *ProfileApplyConfiguration

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*ProfileApplyConfiguration) WithCreationTimestamp

func (b *ProfileApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ProfileApplyConfiguration

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*ProfileApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *ProfileApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ProfileApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*ProfileApplyConfiguration) WithDeletionTimestamp

func (b *ProfileApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ProfileApplyConfiguration

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*ProfileApplyConfiguration) WithFinalizers

func (b *ProfileApplyConfiguration) WithFinalizers(values ...string) *ProfileApplyConfiguration

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*ProfileApplyConfiguration) WithGenerateName

func (b *ProfileApplyConfiguration) WithGenerateName(value string) *ProfileApplyConfiguration

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*ProfileApplyConfiguration) WithGeneration

func (b *ProfileApplyConfiguration) WithGeneration(value int64) *ProfileApplyConfiguration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*ProfileApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*ProfileApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*ProfileApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*ProfileApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*ProfileApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*ProfileApplyConfiguration) WithResourceVersion

func (b *ProfileApplyConfiguration) WithResourceVersion(value string) *ProfileApplyConfiguration

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*ProfileApplyConfiguration) WithSpec

WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.

func (*ProfileApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type ProfileSpecApplyConfiguration

type ProfileSpecApplyConfiguration struct {
	Tolerations               []v1.Toleration               `json:"tolerations,omitempty"`
	RuntimeClassName          *string                       `json:"runtimeClassName,omitempty"`
	PodSecurityContext        *v1.PodSecurityContext        `json:"podSecurityContext,omitempty"`
	Affinity                  *v1.Affinity                  `json:"affinity,omitempty"`
	TopologySpreadConstraints []v1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"`
}

ProfileSpecApplyConfiguration represents an declarative configuration of the ProfileSpec type for use with apply.

func ProfileSpec

func ProfileSpec() *ProfileSpecApplyConfiguration

ProfileSpecApplyConfiguration constructs an declarative configuration of the ProfileSpec type for use with apply.

func (*ProfileSpecApplyConfiguration) WithAffinity

WithAffinity sets the Affinity field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Affinity field is set to the value of the last call.

func (*ProfileSpecApplyConfiguration) WithPodSecurityContext

WithPodSecurityContext sets the PodSecurityContext field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the PodSecurityContext field is set to the value of the last call.

func (*ProfileSpecApplyConfiguration) WithRuntimeClassName

func (b *ProfileSpecApplyConfiguration) WithRuntimeClassName(value string) *ProfileSpecApplyConfiguration

WithRuntimeClassName sets the RuntimeClassName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RuntimeClassName field is set to the value of the last call.

func (*ProfileSpecApplyConfiguration) WithTolerations

WithTolerations adds the given value to the Tolerations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Tolerations field.

func (*ProfileSpecApplyConfiguration) WithTopologySpreadConstraints

func (b *ProfileSpecApplyConfiguration) WithTopologySpreadConstraints(values ...v1.TopologySpreadConstraint) *ProfileSpecApplyConfiguration

WithTopologySpreadConstraints adds the given value to the TopologySpreadConstraints field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the TopologySpreadConstraints field.

Jump to

Keyboard shortcuts

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