Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +k8s:deepcopy-gen=package +groupName=perf.knative.dev
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type PerfJob
- type PerfJobList
- type PerfJobSpec
- type PerfJobStatus
- func (in *PerfJobStatus) DeepCopy() *PerfJobStatus
- func (in *PerfJobStatus) DeepCopyInto(out *PerfJobStatus)
- func (ps *PerfJobStatus) GetCondition(t duckv1alpha1.ConditionType) *duckv1alpha1.Condition
- func (ps *PerfJobStatus) InitializeConditions()
- func (ps *PerfJobStatus) IsReady() bool
- func (ps *PerfJobStatus) MarkJobFailed()
- func (ps *PerfJobStatus) MarkJobRunning()
- func (ps *PerfJobStatus) MarkJobSucceeded()
Constants ¶
const ( PerfJobConditionSucceeded = duckv1alpha1.ConditionSucceeded BatchJobConditionFinished = "BatchJobFinished" )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: perf.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 PerfJob ¶
type PerfJob struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec defines the desired state of the PerfJob. Spec PerfJobSpec `json:"spec,omitempty"` // Status represents the current state of the PerfJob. // +optional Status PerfJobStatus `json:"status,omitempty"` }
func (*PerfJob) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PerfJob.
func (*PerfJob) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PerfJob) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PerfJobList ¶
type PerfJobList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []PerfJob `json:"items"` }
PerfJobList is a collection of PerfJobs.
func (*PerfJobList) DeepCopy ¶
func (in *PerfJobList) DeepCopy() *PerfJobList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PerfJobList.
func (*PerfJobList) DeepCopyInto ¶
func (in *PerfJobList) DeepCopyInto(out *PerfJobList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PerfJobList) DeepCopyObject ¶
func (in *PerfJobList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PerfJobSpec ¶
type PerfJobSpec struct { TestImage string `json:"testImage,omitempty"` ControlImage string `json:"ctrlImage,omitempty"` Exclusive *bool `json:"exclusive,omitempty"` Target string `json:"target,omitempty"` }
func (*PerfJobSpec) DeepCopy ¶
func (in *PerfJobSpec) DeepCopy() *PerfJobSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PerfJobSpec.
func (*PerfJobSpec) DeepCopyInto ¶
func (in *PerfJobSpec) DeepCopyInto(out *PerfJobSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PerfJobStatus ¶
type PerfJobStatus struct { // inherits duck/v1alpha1 Status, which currently provides: // * ObservedGeneration - the 'Generation' of the Service that was last processed by the controller. // * Conditions - the latest available observations of a resource's current state. duckv1alpha1.Status `json:",inline"` Phase string }
BrokerStatus represents the current state of a Broker.
func (*PerfJobStatus) DeepCopy ¶
func (in *PerfJobStatus) DeepCopy() *PerfJobStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PerfJobStatus.
func (*PerfJobStatus) DeepCopyInto ¶
func (in *PerfJobStatus) DeepCopyInto(out *PerfJobStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PerfJobStatus) GetCondition ¶
func (ps *PerfJobStatus) GetCondition(t duckv1alpha1.ConditionType) *duckv1alpha1.Condition
GetCondition returns the condition currently associated with the given type, or nil.
func (*PerfJobStatus) InitializeConditions ¶
func (ps *PerfJobStatus) InitializeConditions()
InitializeConditions sets relevant unset conditions to Unknown state.
func (*PerfJobStatus) IsReady ¶
func (ps *PerfJobStatus) IsReady() bool
IsReady returns true if the resource is ready overall.
func (*PerfJobStatus) MarkJobFailed ¶
func (ps *PerfJobStatus) MarkJobFailed()
MarkJobFailed sets the BatchJobConditionSucceeded condition to True state.
func (*PerfJobStatus) MarkJobRunning ¶
func (ps *PerfJobStatus) MarkJobRunning()
MarkJobSucceeded sets the BatchJobConditionSucceeded condition to True state.
func (*PerfJobStatus) MarkJobSucceeded ¶
func (ps *PerfJobStatus) MarkJobSucceeded()
MarkJobSucceeded sets the BatchJobConditionSucceeded condition to True state.