v1alpha1

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=n3wscott.com

Index

Constants

View Source
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

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: n3wscott.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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

func (in *Task) DeepCopy() *Task

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Task.

func (*Task) DeepCopyInto

func (in *Task) DeepCopyInto(out *Task)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Task) DeepCopyObject

func (in *Task) DeepCopyObject() runtime.Object

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

func (as *Task) SetDefaults(ctx context.Context)

SetDefaults implements apis.Defaultable

func (*Task) Validate

func (t *Task) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

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

func (in *TaskList) DeepCopy() *TaskList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskList.

func (*TaskList) DeepCopyInto

func (in *TaskList) DeepCopyInto(out *TaskList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TaskList) DeepCopyObject

func (in *TaskList) DeepCopyObject() runtime.Object

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

func (in *TaskSpec) DeepCopy() *TaskSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskSpec.

func (*TaskSpec) DeepCopyInto

func (in *TaskSpec) DeepCopyInto(out *TaskSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TaskSpec) Validate

func (current *TaskSpec) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL