Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=samples.knative.dev
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type AddressableService
- func (in *AddressableService) DeepCopy() *AddressableService
- func (in *AddressableService) DeepCopyInto(out *AddressableService)
- func (in *AddressableService) DeepCopyObject() runtime.Object
- func (as *AddressableService) GetConditionSet() apis.ConditionSet
- func (*AddressableService) GetGroupVersionKind() schema.GroupVersionKind
- func (as *AddressableService) GetStatus() *duckv1.Status
- func (as *AddressableService) SetDefaults(ctx context.Context)
- func (as *AddressableService) Validate(ctx context.Context) *apis.FieldError
- type AddressableServiceList
- type AddressableServiceSpec
- type AddressableServiceStatus
- func (in *AddressableServiceStatus) DeepCopy() *AddressableServiceStatus
- func (in *AddressableServiceStatus) DeepCopyInto(out *AddressableServiceStatus)
- func (ass *AddressableServiceStatus) InitializeConditions()
- func (ass *AddressableServiceStatus) MarkServiceAvailable()
- func (ass *AddressableServiceStatus) MarkServiceUnavailable(name string)
- type SimpleDeployment
- func (in *SimpleDeployment) DeepCopy() *SimpleDeployment
- func (in *SimpleDeployment) DeepCopyInto(out *SimpleDeployment)
- func (in *SimpleDeployment) DeepCopyObject() runtime.Object
- func (d *SimpleDeployment) GetConditionSet() apis.ConditionSet
- func (*SimpleDeployment) GetGroupVersionKind() schema.GroupVersionKind
- func (d *SimpleDeployment) GetStatus() *duckv1.Status
- func (d *SimpleDeployment) SetDefaults(ctx context.Context)
- func (d *SimpleDeployment) Validate(ctx context.Context) *apis.FieldError
- type SimpleDeploymentList
- type SimpleDeploymentSpec
- type SimpleDeploymentStatus
- func (in *SimpleDeploymentStatus) DeepCopy() *SimpleDeploymentStatus
- func (in *SimpleDeploymentStatus) DeepCopyInto(out *SimpleDeploymentStatus)
- func (ds *SimpleDeploymentStatus) InitializeConditions()
- func (ds *SimpleDeploymentStatus) MarkPodsNotReady(n int32)
- func (ds *SimpleDeploymentStatus) MarkPodsReady()
Constants ¶
const ( // AddressableServiceConditionReady is set when the revision is starting to materialize // runtime resources, and becomes true when those resources are ready. AddressableServiceConditionReady = apis.ConditionReady )
const ( // SimpleDeploymentConditionReady is set when the revision is starting to materialize // runtime resources, and becomes true when those resources are ready. SimpleDeploymentConditionReady = apis.ConditionReady )
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: samples.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 AddressableService ¶
type AddressableService struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec holds the desired state of the AddressableService (from the client). // +optional Spec AddressableServiceSpec `json:"spec,omitempty"` // Status communicates the observed state of the AddressableService (from the controller). // +optional Status AddressableServiceStatus `json:"status,omitempty"` }
AddressableService is a Knative abstraction that encapsulates the interface by which Knative components express a desire to have a particular image cached.
+genclient +genreconciler +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*AddressableService) DeepCopy ¶
func (in *AddressableService) DeepCopy() *AddressableService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddressableService.
func (*AddressableService) DeepCopyInto ¶
func (in *AddressableService) DeepCopyInto(out *AddressableService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AddressableService) DeepCopyObject ¶
func (in *AddressableService) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AddressableService) GetConditionSet ¶
func (as *AddressableService) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.
func (*AddressableService) GetGroupVersionKind ¶
func (*AddressableService) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable
func (*AddressableService) GetStatus ¶
func (as *AddressableService) GetStatus() *duckv1.Status
GetStatus retrieves the status of the resource. Implements the KRShaped interface.
func (*AddressableService) SetDefaults ¶
func (as *AddressableService) SetDefaults(ctx context.Context)
SetDefaults implements apis.Defaultable
func (*AddressableService) Validate ¶
func (as *AddressableService) Validate(ctx context.Context) *apis.FieldError
Validate implements apis.Validatable
type AddressableServiceList ¶
type AddressableServiceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []AddressableService `json:"items"` }
AddressableServiceList is a list of AddressableService resources
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*AddressableServiceList) DeepCopy ¶
func (in *AddressableServiceList) DeepCopy() *AddressableServiceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddressableServiceList.
func (*AddressableServiceList) DeepCopyInto ¶
func (in *AddressableServiceList) DeepCopyInto(out *AddressableServiceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AddressableServiceList) DeepCopyObject ¶
func (in *AddressableServiceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AddressableServiceSpec ¶
type AddressableServiceSpec struct { // ServiceName holds the name of the Kubernetes Service to expose as an "addressable". ServiceName string `json:"serviceName"` }
AddressableServiceSpec holds the desired state of the AddressableService (from the client).
func (*AddressableServiceSpec) DeepCopy ¶
func (in *AddressableServiceSpec) DeepCopy() *AddressableServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddressableServiceSpec.
func (*AddressableServiceSpec) DeepCopyInto ¶
func (in *AddressableServiceSpec) DeepCopyInto(out *AddressableServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AddressableServiceSpec) Validate ¶
func (ass *AddressableServiceSpec) Validate(ctx context.Context) *apis.FieldError
Validate implements apis.Validatable
type AddressableServiceStatus ¶
type AddressableServiceStatus struct { duckv1.Status `json:",inline"` // Address holds the information needed to connect this Addressable up to receive events. // +optional Address *duckv1.Addressable `json:"address,omitempty"` }
AddressableServiceStatus communicates the observed state of the AddressableService (from the controller).
func (*AddressableServiceStatus) DeepCopy ¶
func (in *AddressableServiceStatus) DeepCopy() *AddressableServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddressableServiceStatus.
func (*AddressableServiceStatus) DeepCopyInto ¶
func (in *AddressableServiceStatus) DeepCopyInto(out *AddressableServiceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AddressableServiceStatus) InitializeConditions ¶
func (ass *AddressableServiceStatus) InitializeConditions()
InitializeConditions sets the initial values to the conditions.
func (*AddressableServiceStatus) MarkServiceAvailable ¶
func (ass *AddressableServiceStatus) MarkServiceAvailable()
func (*AddressableServiceStatus) MarkServiceUnavailable ¶
func (ass *AddressableServiceStatus) MarkServiceUnavailable(name string)
type SimpleDeployment ¶
type SimpleDeployment struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec holds the desired state of the SimpleDeployment (from the client). // +optional Spec SimpleDeploymentSpec `json:"spec,omitempty"` // Status communicates the observed state of the SimpleDeployment (from the controller). // +optional Status SimpleDeploymentStatus `json:"status,omitempty"` }
SimpleDeployment is a Knative abstraction that encapsulates the interface by which Knative components express a desire to have a particular image cached.
+genclient +genreconciler +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*SimpleDeployment) DeepCopy ¶
func (in *SimpleDeployment) DeepCopy() *SimpleDeployment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleDeployment.
func (*SimpleDeployment) DeepCopyInto ¶
func (in *SimpleDeployment) DeepCopyInto(out *SimpleDeployment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SimpleDeployment) DeepCopyObject ¶
func (in *SimpleDeployment) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SimpleDeployment) GetConditionSet ¶
func (d *SimpleDeployment) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.
func (*SimpleDeployment) GetGroupVersionKind ¶
func (*SimpleDeployment) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable
func (*SimpleDeployment) GetStatus ¶
func (d *SimpleDeployment) GetStatus() *duckv1.Status
GetStatus retrieves the status of the resource. Implements the KRShaped interface.
func (*SimpleDeployment) SetDefaults ¶
func (d *SimpleDeployment) SetDefaults(ctx context.Context)
SetDefaults implements apis.Defaultable
func (*SimpleDeployment) Validate ¶
func (d *SimpleDeployment) Validate(ctx context.Context) *apis.FieldError
Validate implements apis.Validatable
type SimpleDeploymentList ¶
type SimpleDeploymentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []SimpleDeployment `json:"items"` }
SimpleDeploymentList is a list of AddressableService resources
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*SimpleDeploymentList) DeepCopy ¶
func (in *SimpleDeploymentList) DeepCopy() *SimpleDeploymentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleDeploymentList.
func (*SimpleDeploymentList) DeepCopyInto ¶
func (in *SimpleDeploymentList) DeepCopyInto(out *SimpleDeploymentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SimpleDeploymentList) DeepCopyObject ¶
func (in *SimpleDeploymentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SimpleDeploymentSpec ¶
SimpleDeploymentSpec holds the desired state of the SimpleDeployment (from the client).
func (*SimpleDeploymentSpec) DeepCopy ¶
func (in *SimpleDeploymentSpec) DeepCopy() *SimpleDeploymentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleDeploymentSpec.
func (*SimpleDeploymentSpec) DeepCopyInto ¶
func (in *SimpleDeploymentSpec) DeepCopyInto(out *SimpleDeploymentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SimpleDeploymentSpec) Validate ¶
func (ds *SimpleDeploymentSpec) Validate(ctx context.Context) *apis.FieldError
Validate implements apis.Validatable
type SimpleDeploymentStatus ¶
type SimpleDeploymentStatus struct { duckv1.Status `json:",inline"` ReadyReplicas int32 `json:"readyReplicas"` }
SimpleDeploymentStatus communicates the observed state of the SimpleDeployment (from the controller).
func (*SimpleDeploymentStatus) DeepCopy ¶
func (in *SimpleDeploymentStatus) DeepCopy() *SimpleDeploymentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleDeploymentStatus.
func (*SimpleDeploymentStatus) DeepCopyInto ¶
func (in *SimpleDeploymentStatus) DeepCopyInto(out *SimpleDeploymentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SimpleDeploymentStatus) InitializeConditions ¶
func (ds *SimpleDeploymentStatus) InitializeConditions()
InitializeConditions sets the initial values to the conditions.
func (*SimpleDeploymentStatus) MarkPodsNotReady ¶
func (ds *SimpleDeploymentStatus) MarkPodsNotReady(n int32)
MarkPodsNotReady makes the SimpleDeployment be not ready.
func (*SimpleDeploymentStatus) MarkPodsReady ¶
func (ds *SimpleDeploymentStatus) MarkPodsReady()
MarkPodsReady makes the SimpleDeployment be ready.