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 Bar
- func (in *Bar) DeepCopy() *Bar
- func (in *Bar) DeepCopyInto(out *Bar)
- func (in *Bar) DeepCopyObject() runtime.Object
- func (*Bar) GetConditionSet() apis.ConditionSet
- func (b *Bar) GetGroupVersionKind() schema.GroupVersionKind
- func (b *Bar) GetStatus() *duckv1.Status
- func (b *Bar) SetDefaults(ctx context.Context)
- func (b *Bar) Validate(ctx context.Context) *apis.FieldError
- type BarList
- type BarSpec
- type BarStatus
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: pub.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 Bar ¶
type Bar struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec holds the desired state of the Bar (from the client). // +optional Spec BarSpec `json:"spec,omitempty"` // Status communicates the observed state of the Bar (from the controller). // +optional Status BarStatus `json:"status,omitempty"` }
Bar is for testing.
func (*Bar) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Bar.
func (*Bar) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Bar) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Bar) GetConditionSet ¶
func (*Bar) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.
func (*Bar) GetGroupVersionKind ¶
func (b *Bar) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable
func (*Bar) GetStatus ¶
GetStatus retrieves the status of the Bar. Implements the KRShaped interface.
func (*Bar) SetDefaults ¶
SetDefaults implements apis.Defaultable
type BarList ¶
type BarList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Bar `json:"items"` }
BarList is a list of Bar resources
func (*BarList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BarList.
func (*BarList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BarList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BarSpec ¶
type BarSpec struct{}
BarSpec holds the desired state of the Bar (from the client).
func (*BarSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BarSpec.
func (*BarSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BarStatus ¶
BarStatus communicates the observed state of the Bar (from the controller).
func (*BarStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BarStatus.
func (*BarStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BarStatus) InitializeConditions ¶
func (bs *BarStatus) InitializeConditions()