v1beta1

package
Version: v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package v1beta1 is the v1beta1 version of the API.

Index

Constants

View Source
const (
	LotusInit            LotusPhase = ""
	LotusPending                    = "Pending"
	LotusPreparing                  = "Preparing"
	LotusRunning                    = "Running"
	LotusCleaning                   = "Cleaning"
	LotusFailureCleaning            = "FailureCleaning"
	LotusSucceeded                  = "Succeeded"
	LotusFailed                     = "Failed"
)

Variables

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

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 Lotus

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

	Spec   LotusSpec   `json:"spec"`
	Status LotusStatus `json:"status"`
}

func (*Lotus) DeepCopy

func (in *Lotus) DeepCopy() *Lotus

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

func (*Lotus) DeepCopyInto

func (in *Lotus) DeepCopyInto(out *Lotus)

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

func (*Lotus) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type LotusCheck

type LotusCheck struct {
	Name       string `json:"name"`
	Expr       string `json:"expr"`
	For        string `json:"for"`
	DataSource string `json:"dataSource"`
}

func (*LotusCheck) DeepCopy

func (in *LotusCheck) DeepCopy() *LotusCheck

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

func (*LotusCheck) DeepCopyInto

func (in *LotusCheck) DeepCopyInto(out *LotusCheck)

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

type LotusList

type LotusList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Lotus `json:"items"`
}

func (*LotusList) DeepCopy

func (in *LotusList) DeepCopy() *LotusList

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

func (*LotusList) DeepCopyInto

func (in *LotusList) DeepCopyInto(out *LotusList)

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

func (*LotusList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type LotusPhase

type LotusPhase string

type LotusSpec

type LotusSpec struct {
	TTLSecondsAfterFinished  *int32 `json:"ttlSecondsAfterFinished"`
	CheckIntervalSeconds     *int32 `json:"checkIntervalSeconds"`
	CheckInitialDelaySeconds *int32 `json:"checkInitialDelaySeconds"`

	Preparer *LotusSpecPreparer `json:"preparer"`
	Worker   *LotusSpecWorker   `json:"worker"`
	Cleaner  *LotusSpecCleaner  `json:"cleaner"`
	Checks   []LotusCheck       `json:"checks"`
}

func (*LotusSpec) DeepCopy

func (in *LotusSpec) DeepCopy() *LotusSpec

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

func (*LotusSpec) DeepCopyInto

func (in *LotusSpec) DeepCopyInto(out *LotusSpec)

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

type LotusSpecCleaner

type LotusSpecCleaner struct {
	Containers []corev1.Container `json:"containers"`
	Volumes    []corev1.Volume    `json:"volumes"`
}

func (*LotusSpecCleaner) DeepCopy

func (in *LotusSpecCleaner) DeepCopy() *LotusSpecCleaner

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

func (*LotusSpecCleaner) DeepCopyInto

func (in *LotusSpecCleaner) DeepCopyInto(out *LotusSpecCleaner)

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

type LotusSpecPreparer

type LotusSpecPreparer struct {
	Containers []corev1.Container `json:"containers"`
	Volumes    []corev1.Volume    `json:"volumes"`
}

func (*LotusSpecPreparer) DeepCopy

func (in *LotusSpecPreparer) DeepCopy() *LotusSpecPreparer

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

func (*LotusSpecPreparer) DeepCopyInto

func (in *LotusSpecPreparer) DeepCopyInto(out *LotusSpecPreparer)

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

type LotusSpecWorker

type LotusSpecWorker struct {
	RunTime     string             `json:"runTime"`
	Replicas    *int32             `json:"replicas"`
	MetricsPort *int32             `json:"metricsPort"`
	Containers  []corev1.Container `json:"containers"`
	Volumes     []corev1.Volume    `json:"volumes"`
}

func (*LotusSpecWorker) DeepCopy

func (in *LotusSpecWorker) DeepCopy() *LotusSpecWorker

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

func (*LotusSpecWorker) DeepCopyInto

func (in *LotusSpecWorker) DeepCopyInto(out *LotusSpecWorker)

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

type LotusStatus

type LotusStatus struct {
	PreparerStartTime      *metav1.Time `json:"preparerStartTime"`
	PreparerCompletionTime *metav1.Time `json:"preparerCompletionTime"`
	WorkerStartTime        *metav1.Time `json:"workerStartTime"`
	WorkerCompletionTime   *metav1.Time `json:"workerCompletionTime"`
	CleanerStartTime       *metav1.Time `json:"cleanerStartTime"`
	CleanerCompletionTime  *metav1.Time `json:"cleanerCompletionTime"`
	Phase                  LotusPhase   `json:"phase"`
}

func (*LotusStatus) DeepCopy

func (in *LotusStatus) DeepCopy() *LotusStatus

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

func (*LotusStatus) DeepCopyInto

func (in *LotusStatus) DeepCopyInto(out *LotusStatus)

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