Documentation ¶
Index ¶
- Variables
- type AutoDeployUnitCRDEtcdClient
- type AutoDeployUnitCRDEtcdDefaultClient
- func (s *AutoDeployUnitCRDEtcdDefaultClient) Apply(obj *autodeploy_v1.AutoDeployUnit) (*autodeploy_v1.AutoDeployUnit, error)
- func (s *AutoDeployUnitCRDEtcdDefaultClient) Create(obj *autodeploy_v1.AutoDeployUnit) (*autodeploy_v1.AutoDeployUnit, error)
- func (s *AutoDeployUnitCRDEtcdDefaultClient) Delete(name string, opts *metav1.DeleteOptions) (*autodeploy_v1.AutoDeployUnit, error)
- func (s *AutoDeployUnitCRDEtcdDefaultClient) Get(name string, opts *metav1.GetOptions) (*autodeploy_v1.AutoDeployUnit, error)
- func (s *AutoDeployUnitCRDEtcdDefaultClient) List(opts *metav1.ListOptions) (*autodeploy_v1.AutoDeployUnitList, error)
- func (s *AutoDeployUnitCRDEtcdDefaultClient) Namespace(namespace string) AutoDeployUnitCRDEtcdClient
- func (s *AutoDeployUnitCRDEtcdDefaultClient) Update(obj *autodeploy_v1.AutoDeployUnit) (*autodeploy_v1.AutoDeployUnit, error)
- type RegistCRD
Constants ¶
This section is empty.
Variables ¶
View Source
var AutoDeployUnitCRD = RegistCRD{ CustomResourceDefinition: api_x_v1.CustomResourceDefinition{ TypeMeta: metav1.TypeMeta{Kind: "CustomResourceDefinition", APIVersion: "apiextensions.k8s.io/v1"}, ObjectMeta: metav1.ObjectMeta{ Name: "autodeployunits." + autodeploy_v1.SchemeGroupVersion.Group, }, Spec: api_x_v1.CustomResourceDefinitionSpec{ Group: autodeploy_v1.SchemeGroupVersion.Group, Versions: []api_x_v1.CustomResourceDefinitionVersion{{ Name: autodeploy_v1.SchemeGroupVersion.Version, Served: true, Storage: true, Subresources: &api_x_v1.CustomResourceSubresources{ Status: &api_x_v1.CustomResourceSubresourceStatus{}, }, Schema: &api_x_v1.CustomResourceValidation{ OpenAPIV3Schema: &api_x_v1.JSONSchemaProps{ Type: "object", Properties: map[string]api_x_v1.JSONSchemaProps{ "spec": { Type: "object", Properties: map[string]api_x_v1.JSONSchemaProps{ "image": { Type: "string", }, "cmd": { Type: "array", Items: &api_x_v1.JSONSchemaPropsOrArray{ Schema: &api_x_v1.JSONSchemaProps{ Type: "string", }, }, }, "url": { Type: "string", }, "env": { Type: "array", Items: &api_x_v1.JSONSchemaPropsOrArray{ Schema: &api_x_v1.JSONSchemaProps{ Type: "object", Properties: map[string]api_x_v1.JSONSchemaProps{ "name": { Type: "string", Description: "name", }, "value": { Type: "string", Description: "value", }, "valueFrom": { Type: "object", Properties: map[string]api_x_v1.JSONSchemaProps{ "configMapKeyRef": { Type: "object", Properties: map[string]api_x_v1.JSONSchemaProps{ "name": { Type: "string", }, "key": { Type: "string", }, }, }, }, }, }, }, }, }, "sync": { Type: "boolean", }, }, }, }, }, }, }}, Names: api_x_v1.CustomResourceDefinitionNames{ Plural: "autodeployunits", Singular: "autodeployunit", ShortNames: []string{"adunit"}, Kind: "AutoDeployUnit", }, Scope: api_x_v1.NamespaceScoped, }, Status: api_x_v1.CustomResourceDefinitionStatus{}, }, }
Functions ¶
This section is empty.
Types ¶
type AutoDeployUnitCRDEtcdClient ¶
type AutoDeployUnitCRDEtcdClient interface { Create(obj *autodeploy_v1.AutoDeployUnit) (*autodeploy_v1.AutoDeployUnit, error) Update(obj *autodeploy_v1.AutoDeployUnit) (*autodeploy_v1.AutoDeployUnit, error) Apply(obj *autodeploy_v1.AutoDeployUnit) (*autodeploy_v1.AutoDeployUnit, error) Delete(name string, opts *metav1.DeleteOptions) (*autodeploy_v1.AutoDeployUnit, error) List(opts *metav1.ListOptions) (*autodeploy_v1.AutoDeployUnitList, error) Get(name string, opts *metav1.GetOptions) (*autodeploy_v1.AutoDeployUnit, error) Namespace(namespace string) AutoDeployUnitCRDEtcdClient }
func NewAutoDeployUnitCRDEtcdDefaultClient ¶
func NewAutoDeployUnitCRDEtcdDefaultClient(restClient rest.Interface) AutoDeployUnitCRDEtcdClient
type AutoDeployUnitCRDEtcdDefaultClient ¶
type AutoDeployUnitCRDEtcdDefaultClient struct { AutoDeployUnitCRDEtcdClient // contains filtered or unexported fields }
func (*AutoDeployUnitCRDEtcdDefaultClient) Apply ¶
func (s *AutoDeployUnitCRDEtcdDefaultClient) Apply(obj *autodeploy_v1.AutoDeployUnit) (*autodeploy_v1.AutoDeployUnit, error)
Apply todo
func (*AutoDeployUnitCRDEtcdDefaultClient) Create ¶
func (s *AutoDeployUnitCRDEtcdDefaultClient) Create(obj *autodeploy_v1.AutoDeployUnit) (*autodeploy_v1.AutoDeployUnit, error)
Create todo
func (*AutoDeployUnitCRDEtcdDefaultClient) Delete ¶
func (s *AutoDeployUnitCRDEtcdDefaultClient) Delete(name string, opts *metav1.DeleteOptions) (*autodeploy_v1.AutoDeployUnit, error)
Delete todo
func (*AutoDeployUnitCRDEtcdDefaultClient) Get ¶
func (s *AutoDeployUnitCRDEtcdDefaultClient) Get(name string, opts *metav1.GetOptions) (*autodeploy_v1.AutoDeployUnit, error)
Get todo
func (*AutoDeployUnitCRDEtcdDefaultClient) List ¶
func (s *AutoDeployUnitCRDEtcdDefaultClient) List(opts *metav1.ListOptions) (*autodeploy_v1.AutoDeployUnitList, error)
List todo
func (*AutoDeployUnitCRDEtcdDefaultClient) Namespace ¶
func (s *AutoDeployUnitCRDEtcdDefaultClient) Namespace(namespace string) AutoDeployUnitCRDEtcdClient
Namespace todo
func (*AutoDeployUnitCRDEtcdDefaultClient) Update ¶
func (s *AutoDeployUnitCRDEtcdDefaultClient) Update(obj *autodeploy_v1.AutoDeployUnit) (*autodeploy_v1.AutoDeployUnit, error)
Update todo
type RegistCRD ¶
type RegistCRD struct {
api_x_v1.CustomResourceDefinition
}
Click to show internal directories.
Click to hide internal directories.