crd

package
v0.0.0-...-79dbfb0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

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

	Spec FunctionSpec `json:"spec"`
}

Function todo +kubebuilder:subresource:status

func (*Function) DeepCopyInto

func (s *Function) DeepCopyInto(out Function)

DeepCopyInto todo

func (*Function) DeepCopyObject

func (s *Function) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of an object

type FunctionClientInterface

type FunctionClientInterface interface {
	Create(function *Function) (*Function, error)
	Update(function *Function) (*Function, error)
	Delete(name string, opts *metav1.DeleteOptions) (*Function, error)
	List(opts *metav1.ListOptions) (*FunctionList, error)
	Get(name string, opts *metav1.GetOptions) (*Function, error)
}

FunctionClientInterface todo

type FunctionCustomResourceDefinition

type FunctionCustomResourceDefinition struct {
	FunctionClientInterface
	GroupVersion *schema.GroupVersion
	K8sXClient   *api_x_clientset.Clientset
	RESTClient   rest.Interface
	CRD          *api_x_v1beta1.CustomResourceDefinition
}

FunctionCustomResourceDefinition todo

func NewFunctionCustomResourceDefinition

func NewFunctionCustomResourceDefinition(groupVersion *schema.GroupVersion, k8sXClient *api_x_clientset.Clientset, restClientBuildFunc func(*schema.GroupVersion, bool) (*rest.RESTClient, error)) (*FunctionCustomResourceDefinition, error)

NewFunctionCustomResourceDefinition todo

func (*FunctionCustomResourceDefinition) BuildObject

BuildObject todo

func (*FunctionCustomResourceDefinition) Create

func (s *FunctionCustomResourceDefinition) Create(function *Function) (*Function, error)

Create todo

func (*FunctionCustomResourceDefinition) Delete

Delete todo

func (*FunctionCustomResourceDefinition) Get

Get todo

func (*FunctionCustomResourceDefinition) Init

Init todo

func (*FunctionCustomResourceDefinition) List

List todo

func (*FunctionCustomResourceDefinition) Namespace

Namespace todo

func (*FunctionCustomResourceDefinition) Regist

Regist todo

func (*FunctionCustomResourceDefinition) Update

func (s *FunctionCustomResourceDefinition) Update(function *Function) (*Function, error)

Update todo

type FunctionList

type FunctionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []Function `json:"items"`
}

FunctionList todo

func (*FunctionList) DeepCopyObject

func (s *FunctionList) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of an object

type FunctionSpec

type FunctionSpec struct {
	Image     string                            `json:"image"`
	Replicas  int                               `json:"replicas"`
	Resources *api_core_v1.ResourceRequirements `json:"resources"`
}

FunctionSpec todo

Jump to

Keyboard shortcuts

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