Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=n3wscott.com
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Task
- type TaskList
- type TaskSpec
- type TaskStatus
- func (ts *TaskStatus) ClearAddress()
- func (in *TaskStatus) DeepCopy() *TaskStatus
- func (in *TaskStatus) DeepCopyInto(out *TaskStatus)
- func (ts *TaskStatus) InitializeConditions()
- func (ts *TaskStatus) IsDone() bool
- func (ts *TaskStatus) MarkAddress(url *apis.URL)
- func (ts *TaskStatus) MarkJobFailed(reason, messageFormat string, messageA ...interface{})
- func (ts *TaskStatus) MarkJobRunning(messageFormat string, messageA ...interface{})
- func (ts *TaskStatus) MarkJobSucceeded()
Constants ¶
const ( // TaskConditionReady is set when the revision is starting to materialize // runtime resources, and becomes true when those resources are ready. TaskConditionSucceeded = apis.ConditionSucceeded // TaskConditionAddressable has status true when this Task meets the // Addressable contract. TaskConditionAddressable apis.ConditionType = "Addressable" // TaskConditionResult tracks the job result. TaskConditionResult apis.ConditionType = "Result" )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: n3wscott.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 Task ¶
type Task struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec holds the desired state of the Task (from the client). // +optional Spec TaskSpec `json:"spec,omitempty"` // Status communicates the observed state of the Task (from the controller). // +optional Status TaskStatus `json:"status,omitempty"` }
Task is a Knative abstraction that encapsulates the interface by which Knative components express a desire to have a particular image cached.
func (*Task) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Task.
func (*Task) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Task) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Task) GetGroupVersionKind ¶
func (t *Task) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable
func (*Task) SetDefaults ¶
SetDefaults implements apis.Defaultable
type TaskList ¶
type TaskList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Task `json:"items"` }
TaskList is a list of Task resources
func (*TaskList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskList.
func (*TaskList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TaskList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TaskSpec ¶
type TaskSpec struct { // Template describes the pods that will be created // +optional Template *corev1.PodTemplateSpec `json:"template,omitempty"` }
TaskSpec holds the desired state of the Task (from the client).
func (*TaskSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskSpec.
func (*TaskSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TaskStatus ¶
type TaskStatus struct { duckv1beta1.Status `json:",inline"` // Address holds the information needed to connect this Addressable up to receive events. // +optional Address *duckv1beta1.Addressable `json:"address,omitempty"` }
TaskStatus communicates the observed state of the Task (from the controller).
func (*TaskStatus) ClearAddress ¶
func (ts *TaskStatus) ClearAddress()
func (*TaskStatus) DeepCopy ¶
func (in *TaskStatus) DeepCopy() *TaskStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskStatus.
func (*TaskStatus) DeepCopyInto ¶
func (in *TaskStatus) DeepCopyInto(out *TaskStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TaskStatus) InitializeConditions ¶
func (ts *TaskStatus) InitializeConditions()
func (*TaskStatus) IsDone ¶
func (ts *TaskStatus) IsDone() bool
func (*TaskStatus) MarkAddress ¶
func (ts *TaskStatus) MarkAddress(url *apis.URL)
func (*TaskStatus) MarkJobFailed ¶
func (ts *TaskStatus) MarkJobFailed(reason, messageFormat string, messageA ...interface{})
func (*TaskStatus) MarkJobRunning ¶
func (ts *TaskStatus) MarkJobRunning(messageFormat string, messageA ...interface{})
func (*TaskStatus) MarkJobSucceeded ¶
func (ts *TaskStatus) MarkJobSucceeded()