Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=testing.internal.knative.dev
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Build
- type BuildList
- type BuildSpec
- type BuildStatus
- func (in *BuildStatus) DeepCopy() *BuildStatus
- func (in *BuildStatus) DeepCopyInto(out *BuildStatus)
- func (rs *BuildStatus) GetCondition(t duckv1alpha1.ConditionType) *duckv1alpha1.Condition
- func (rs *BuildStatus) GetConditions() duckv1alpha1.Conditions
- func (rs *BuildStatus) InitializeConditions()
- func (rs *BuildStatus) IsReady() bool
- func (rs *BuildStatus) MarkDone()
- func (rs *BuildStatus) MarkFailure(fi *FailureInfo)
- func (rs *BuildStatus) SetConditions(conditions duckv1alpha1.Conditions)
- type FailureInfo
Constants ¶
const ( // BuildConditionSucceeded is set when the revision is starting to materialize // runtime resources, and becomes true when those resources are ready. BuildConditionSucceeded = duckv1alpha1.ConditionSucceeded )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: testing.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 Build ¶
type Build struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec holds the desired state of the Build (from the client). // +optional Spec BuildSpec `json:"spec,omitempty"` // Status communicates the observed state of the Build (from the controller). // +optional Status BuildStatus `json:"status,omitempty"` }
Build is a simple test build resource.
func (*Build) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Build.
func (*Build) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Build) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BuildList ¶
type BuildList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Build `json:"items"` }
BuildList is a list of Build resources
func (*BuildList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildList.
func (*BuildList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BuildList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BuildSpec ¶
type BuildSpec struct {
Failure *FailureInfo `json:"failure,omitempty"`
}
BuildSpec holds the desired state of the Build (from the client).
func (*BuildSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildSpec.
func (*BuildSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BuildStatus ¶
type BuildStatus struct { // Conditions communicates information about ongoing/complete // reconciliation processes that bring the "spec" inline with the observed // state of the world. // +optional Conditions duckv1alpha1.Conditions `json:"conditions,omitempty"` }
BuildStatus communicates the observed state of the Build (from the controller).
func (*BuildStatus) DeepCopy ¶
func (in *BuildStatus) DeepCopy() *BuildStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildStatus.
func (*BuildStatus) DeepCopyInto ¶
func (in *BuildStatus) DeepCopyInto(out *BuildStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BuildStatus) GetCondition ¶
func (rs *BuildStatus) GetCondition(t duckv1alpha1.ConditionType) *duckv1alpha1.Condition
func (*BuildStatus) GetConditions ¶
func (rs *BuildStatus) GetConditions() duckv1alpha1.Conditions
GetConditions returns the Conditions array. This enables generic handling of conditions by implementing the duckv1alpha1.Conditions interface.
func (*BuildStatus) InitializeConditions ¶
func (rs *BuildStatus) InitializeConditions()
func (*BuildStatus) IsReady ¶
func (rs *BuildStatus) IsReady() bool
IsReady looks at the conditions and if the Status has a condition BuildConditionSucceeded returns true if ConditionStatus is True
func (*BuildStatus) MarkDone ¶
func (rs *BuildStatus) MarkDone()
func (*BuildStatus) MarkFailure ¶
func (rs *BuildStatus) MarkFailure(fi *FailureInfo)
func (*BuildStatus) SetConditions ¶
func (rs *BuildStatus) SetConditions(conditions duckv1alpha1.Conditions)
SetConditions sets the Conditions array. This enables generic handling of conditions by implementing the duckv1alpha1.Conditions interface.
type FailureInfo ¶
type FailureInfo struct { Reason string `json:"reason,omitempty"` Message string `json:"message,omitempty"` }
func (*FailureInfo) DeepCopy ¶
func (in *FailureInfo) DeepCopy() *FailureInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FailureInfo.
func (*FailureInfo) DeepCopyInto ¶
func (in *FailureInfo) DeepCopyInto(out *FailureInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.