Documentation
¶
Index ¶
- type Function
- type FunctionClientInterface
- type FunctionCustomResourceDefinition
- func (s *FunctionCustomResourceDefinition) BuildObject(meta metav1.ObjectMeta, spec FunctionSpec) *Function
- func (s *FunctionCustomResourceDefinition) Create(function *Function) (*Function, error)
- func (s *FunctionCustomResourceDefinition) Delete(name string, opts *metav1.DeleteOptions) (*Function, error)
- func (s *FunctionCustomResourceDefinition) Get(name string, opts *metav1.GetOptions) (*Function, error)
- func (s *FunctionCustomResourceDefinition) Init() error
- func (s *FunctionCustomResourceDefinition) List(opts *metav1.ListOptions) (*FunctionList, error)
- func (s *FunctionCustomResourceDefinition) Namespace(namespace string) FunctionClientInterface
- func (s *FunctionCustomResourceDefinition) Regist() error
- func (s *FunctionCustomResourceDefinition) Update(function *Function) (*Function, error)
- type FunctionList
- type FunctionSpec
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) DeepCopyObject ¶
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 ¶
func (s *FunctionCustomResourceDefinition) BuildObject(meta metav1.ObjectMeta, spec FunctionSpec) *Function
BuildObject todo
func (*FunctionCustomResourceDefinition) Create ¶
func (s *FunctionCustomResourceDefinition) Create(function *Function) (*Function, error)
Create todo
func (*FunctionCustomResourceDefinition) Delete ¶
func (s *FunctionCustomResourceDefinition) Delete(name string, opts *metav1.DeleteOptions) (*Function, error)
Delete todo
func (*FunctionCustomResourceDefinition) Get ¶
func (s *FunctionCustomResourceDefinition) Get(name string, opts *metav1.GetOptions) (*Function, error)
Get todo
func (*FunctionCustomResourceDefinition) Init ¶
func (s *FunctionCustomResourceDefinition) Init() error
Init todo
func (*FunctionCustomResourceDefinition) List ¶
func (s *FunctionCustomResourceDefinition) List(opts *metav1.ListOptions) (*FunctionList, error)
List todo
func (*FunctionCustomResourceDefinition) Namespace ¶
func (s *FunctionCustomResourceDefinition) Namespace(namespace string) FunctionClientInterface
Namespace todo
func (*FunctionCustomResourceDefinition) Regist ¶
func (s *FunctionCustomResourceDefinition) Regist() error
Regist 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
Click to show internal directories.
Click to hide internal directories.