v1alpha1

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the apps v1alpha1 API group +kubebuilder:object:generate=true +groupName=ror.nhn.no

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "ror.nhn.no", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Phase

type Phase string
const (
	PhasePending Phase = "PENDING"
	PhaseRunning Phase = "RUNNING"
	PhaseDone    Phase = "DONE"
	PhaseError   Phase = "ERROR"
)

type Task

type Task struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   apicontracts.OperatorJob `json:"spec,omitempty"`
	Status TaskStatus               `json:"status,omitempty"`
}

Task is the Schema for the tasks API

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.

type TaskFailure

type TaskFailure struct {
	Reason    string      `json:"reason"`
	Timestamp metav1.Time `json:"timestamp"`
}

func (*TaskFailure) DeepCopy

func (in *TaskFailure) DeepCopy() *TaskFailure

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

func (*TaskFailure) DeepCopyInto

func (in *TaskFailure) DeepCopyInto(out *TaskFailure)

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

type TaskList

type TaskList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Task `json:"items"`
}

TaskList contains a list of Task

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 TaskStatus

type TaskStatus struct {
	// +kubebuilder:validation:Optional
	Success *TaskSuccess `json:"success"`

	// +kubebuilder:validation:Optional
	Failure *TaskFailure `json:"failure"`
	Phase   Phase        `json:"phase"`
}

TaskStatus defines the observed state of Task

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.

type TaskSuccess

type TaskSuccess struct {
	Timestamp metav1.Time `json:"timestamp"`
	ConfigMd5 string      `json:"configMd5"`
}

func (*TaskSuccess) DeepCopy

func (in *TaskSuccess) DeepCopy() *TaskSuccess

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

func (*TaskSuccess) DeepCopyInto

func (in *TaskSuccess) DeepCopyInto(out *TaskSuccess)

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

Jump to

Keyboard shortcuts

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