Documentation
¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=duck.knative.dev
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type AddressStatus
- type Addressable
- type AddressableType
- type AddressableTypeList
- type Conditions
- type KResource
- type KResourceList
- type Status
- func (source *Status) ConvertTo(ctx context.Context, sink *Status)
- func (in *Status) DeepCopy() *Status
- func (in *Status) DeepCopyInto(out *Status)
- func (s *Status) GetCondition(t apis.ConditionType) *apis.Condition
- func (s *Status) GetConditions() apis.Conditions
- func (s *Status) SetConditions(c apis.Conditions)
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: duck.GroupName, Version: "v1beta1"}
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 AddressStatus ¶
type AddressStatus struct {
Address *Addressable `json:"address,omitempty"`
}
AddressStatus shows how we expect folks to embed Addressable in their Status field.
func (*AddressStatus) DeepCopy ¶
func (in *AddressStatus) DeepCopy() *AddressStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddressStatus.
func (*AddressStatus) DeepCopyInto ¶
func (in *AddressStatus) DeepCopyInto(out *AddressStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Addressable ¶
Addressable is the schema for the destination information. This is typically stored in the object's `status`, as this information may be generated by the controller.
func (*Addressable) DeepCopy ¶
func (in *Addressable) DeepCopy() *Addressable
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Addressable.
func (*Addressable) DeepCopyInto ¶
func (in *Addressable) DeepCopyInto(out *Addressable)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Addressable) GetFullType ¶
func (*Addressable) GetFullType() duck.Populatable
GetFullType implements duck.Implementable
type AddressableType ¶
type AddressableType struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Status AddressStatus `json:"status"` }
AddressableType is a skeleton type wrapping Addressable in the manner we expect resource writers defining compatible resources to embed it. We will typically use this type to deserialize Addressable ObjectReferences and access the Addressable data. This is not a real resource.
func (*AddressableType) DeepCopy ¶
func (in *AddressableType) DeepCopy() *AddressableType
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddressableType.
func (*AddressableType) DeepCopyInto ¶
func (in *AddressableType) DeepCopyInto(out *AddressableType)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AddressableType) DeepCopyObject ¶
func (in *AddressableType) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AddressableType) GetListType ¶
func (*AddressableType) GetListType() runtime.Object
GetListType implements apis.Listable
func (*AddressableType) Populate ¶
func (t *AddressableType) Populate()
Populate implements duck.Populatable
type AddressableTypeList ¶
type AddressableTypeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []AddressableType `json:"items"` }
AddressableTypeList is a list of AddressableType resources
func (*AddressableTypeList) DeepCopy ¶
func (in *AddressableTypeList) DeepCopy() *AddressableTypeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddressableTypeList.
func (*AddressableTypeList) DeepCopyInto ¶
func (in *AddressableTypeList) DeepCopyInto(out *AddressableTypeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AddressableTypeList) DeepCopyObject ¶
func (in *AddressableTypeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Conditions ¶
type Conditions apis.Conditions
Conditions is a simple wrapper around apis.Conditions to implement duck.Implementable.
func (Conditions) DeepCopy ¶
func (in Conditions) DeepCopy() Conditions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Conditions.
func (Conditions) DeepCopyInto ¶
func (in Conditions) DeepCopyInto(out *Conditions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Conditions) GetFullType ¶
func (*Conditions) GetFullType() duck.Populatable
GetFullType implements duck.Implementable
type KResource ¶
type KResource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Status Status `json:"status"` }
KResource is a skeleton type wrapping Conditions in the manner we expect resource writers defining compatible resources to embed it. We will typically use this type to deserialize Conditions ObjectReferences and access the Conditions data. This is not a real resource.
func (*KResource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KResource.
func (*KResource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KResource) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*KResource) GetListType ¶
GetListType implements apis.Listable
type KResourceList ¶
type KResourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []KResource `json:"items"` }
KResourceList is a list of KResource resources
func (*KResourceList) DeepCopy ¶
func (in *KResourceList) DeepCopy() *KResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KResourceList.
func (*KResourceList) DeepCopyInto ¶
func (in *KResourceList) DeepCopyInto(out *KResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KResourceList) DeepCopyObject ¶
func (in *KResourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Status ¶
type Status struct { // ObservedGeneration is the 'Generation' of the Service that // was last processed by the controller. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Conditions the latest available observations of a resource's current state. // +optional // +patchMergeKey=type // +patchStrategy=merge Conditions Conditions `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` }
Status shows how we expect folks to embed Conditions in their Status field. WARNING: Adding fields to this struct will add them to all Knative resources.
func (*Status) ConvertTo ¶
ConvertTo helps implement apis.Convertible for types embedding this Status.
func (*Status) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.
func (*Status) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Status) GetCondition ¶
func (s *Status) GetCondition(t apis.ConditionType) *apis.Condition
GetCondition fetches the condition of the specified type.
func (*Status) GetConditions ¶
func (s *Status) GetConditions() apis.Conditions
GetConditions implements apis.ConditionsAccessor
func (*Status) SetConditions ¶
func (s *Status) SetConditions(c apis.Conditions)
SetConditions implements apis.ConditionsAccessor