Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=sample.knative.dev
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ClusterFiz
- func (in *ClusterFiz) DeepCopy() *ClusterFiz
- func (in *ClusterFiz) DeepCopyInto(out *ClusterFiz)
- func (in *ClusterFiz) DeepCopyObject() runtime.Object
- func (*ClusterFiz) GetConditionSet() apis.ConditionSet
- func (f *ClusterFiz) GetGroupVersionKind() schema.GroupVersionKind
- func (f *ClusterFiz) GetStatus() *duckv1.Status
- func (f *ClusterFiz) SetDefaults(ctx context.Context)
- func (f *ClusterFiz) Validate(ctx context.Context) *apis.FieldError
- type ClusterFizList
- type ClusterFizSpec
- type ClusterFizStatus
- type Foo
- func (in *Foo) DeepCopy() *Foo
- func (in *Foo) DeepCopyInto(out *Foo)
- func (in *Foo) DeepCopyObject() runtime.Object
- func (*Foo) GetConditionSet() apis.ConditionSet
- func (f *Foo) GetGroupVersionKind() schema.GroupVersionKind
- func (f *Foo) GetStatus() *duckv1.Status
- func (f *Foo) SetDefaults(ctx context.Context)
- func (f *Foo) Validate(ctx context.Context) *apis.FieldError
- type FooList
- type FooSpec
- type FooStatus
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder builds a scheme with the types known to the package. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme adds the types known to this package to an existing schema. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: example.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ClusterFiz ¶
type ClusterFiz struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec holds the desired state of the ClusterFiz (from the client). // +optional Spec ClusterFizSpec `json:"spec,omitempty"` // Status communicates the observed state of the ClusterFiz (from the controller). // +optional Status ClusterFizStatus `json:"status,omitempty"` }
ClusterFiz is for testing.
func (*ClusterFiz) DeepCopy ¶
func (in *ClusterFiz) DeepCopy() *ClusterFiz
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterFiz.
func (*ClusterFiz) DeepCopyInto ¶
func (in *ClusterFiz) DeepCopyInto(out *ClusterFiz)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterFiz) DeepCopyObject ¶
func (in *ClusterFiz) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterFiz) GetConditionSet ¶
func (*ClusterFiz) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.
func (*ClusterFiz) GetGroupVersionKind ¶
func (f *ClusterFiz) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable
func (*ClusterFiz) GetStatus ¶
func (f *ClusterFiz) GetStatus() *duckv1.Status
GetStatus retrieves the status of the ClusterFiz. Implements the KRShaped interface.
func (*ClusterFiz) SetDefaults ¶
func (f *ClusterFiz) SetDefaults(ctx context.Context)
SetDefaults implements apis.Defaultable
func (*ClusterFiz) Validate ¶
func (f *ClusterFiz) Validate(ctx context.Context) *apis.FieldError
Validate implements apis.Validatable
type ClusterFizList ¶
type ClusterFizList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []ClusterFiz `json:"items"` }
ClusterFizList is a list of ClusterFiz resources
func (*ClusterFizList) DeepCopy ¶
func (in *ClusterFizList) DeepCopy() *ClusterFizList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterFizList.
func (*ClusterFizList) DeepCopyInto ¶
func (in *ClusterFizList) DeepCopyInto(out *ClusterFizList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterFizList) DeepCopyObject ¶
func (in *ClusterFizList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterFizSpec ¶
type ClusterFizSpec struct{}
ClusterFizSpec holds the desired state of the ClusterFiz (from the client).
func (*ClusterFizSpec) DeepCopy ¶
func (in *ClusterFizSpec) DeepCopy() *ClusterFizSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterFizSpec.
func (*ClusterFizSpec) DeepCopyInto ¶
func (in *ClusterFizSpec) DeepCopyInto(out *ClusterFizSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterFizStatus ¶
ClusterFizStatus communicates the observed state of the ClusterFiz (from the controller).
func (*ClusterFizStatus) DeepCopy ¶
func (in *ClusterFizStatus) DeepCopy() *ClusterFizStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterFizStatus.
func (*ClusterFizStatus) DeepCopyInto ¶
func (in *ClusterFizStatus) DeepCopyInto(out *ClusterFizStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterFizStatus) InitializeConditions ¶
func (fs *ClusterFizStatus) InitializeConditions()
type Foo ¶
type Foo struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec holds the desired state of the Foo (from the client). // +optional Spec FooSpec `json:"spec,omitempty"` // Status communicates the observed state of the Foo (from the controller). // +optional Status FooStatus `json:"status,omitempty"` }
Foo is for testing.
func (*Foo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Foo.
func (*Foo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Foo) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Foo) GetConditionSet ¶
func (*Foo) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.
func (*Foo) GetGroupVersionKind ¶
func (f *Foo) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable
func (*Foo) GetStatus ¶
GetStatus retrieves the status of the Foo Implements the KRShaped interface.
func (*Foo) SetDefaults ¶
SetDefaults implements apis.Defaultable
type FooList ¶
type FooList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Foo `json:"items"` }
FooList is a list of Foo resources
func (*FooList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FooList.
func (*FooList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FooList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FooSpec ¶
type FooSpec struct{}
FooSpec holds the desired state of the Foo (from the client).
func (*FooSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FooSpec.
func (*FooSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FooStatus ¶
FooStatus communicates the observed state of the Foo (from the controller).
func (*FooStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FooStatus.
func (*FooStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FooStatus) InitializeConditions ¶
func (fs *FooStatus) InitializeConditions()