v1

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the serverless v1 API group +kubebuilder:object:generate=true +groupName=serverless.kloudlite.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "serverless.kloudlite.io", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Lambda

type Lambda struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   LambdaSpec  `json:"spec"`
	Status rApi.Status `json:"status,omitempty"`
}

Lambda is the Schema for the lambdas API

func (*Lambda) DeepCopy

func (in *Lambda) DeepCopy() *Lambda

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Lambda.

func (*Lambda) DeepCopyInto

func (in *Lambda) DeepCopyInto(out *Lambda)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Lambda) DeepCopyObject

func (in *Lambda) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Lambda) EnsureGVK

func (lm *Lambda) EnsureGVK()

func (*Lambda) GetEnsuredAnnotations

func (m *Lambda) GetEnsuredAnnotations() map[string]string

func (*Lambda) GetEnsuredLabels

func (lm *Lambda) GetEnsuredLabels() map[string]string

func (*Lambda) GetStatus

func (lm *Lambda) GetStatus() *rApi.Status

type LambdaList

type LambdaList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Lambda `json:"items"`
}

LambdaList contains a list of Lambda

func (*LambdaList) DeepCopy

func (in *LambdaList) DeepCopy() *LambdaList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LambdaList.

func (*LambdaList) DeepCopyInto

func (in *LambdaList) DeepCopyInto(out *LambdaList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LambdaList) DeepCopyObject

func (in *LambdaList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type LambdaSpec

type LambdaSpec struct {
	// +kubebuilder:default=kloudlite-svc-account
	ServiceAccount string `json:"serviceAccount,omitempty"`

	// +kubebuilder:default=1
	MinScale int `json:"minScale,omitempty"`

	// +kubebuilder:default=5
	MaxScale int `json:"maxScale,omitempty"`

	// +kubebuilder:default=100
	TargetRps int `json:"targetRps,omitempty"`

	// +kubebuilder:validation:Optional
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`

	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`

	Containers []v1.AppContainer `json:"containers,omitempty"`
}

LambdaSpec defines the desired state of Lambda

func (*LambdaSpec) DeepCopy

func (in *LambdaSpec) DeepCopy() *LambdaSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LambdaSpec.

func (*LambdaSpec) DeepCopyInto

func (in *LambdaSpec) DeepCopyInto(out *LambdaSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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