Documentation ¶
Overview ¶
Package v1beta1 is the v1beta1 version of the API.
Index ¶
Constants ¶
const ( LotusInit LotusPhase = "" LotusPending = "Pending" LotusPreparing = "Preparing" LotusRunning = "Running" LotusCleaning = "Cleaning" LotusFailureCleaning = "FailureCleaning" LotusSucceeded = "Succeeded" LotusFailed = "Failed" )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: lotus.GroupName, Version: "v1beta1"}
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 Lotus ¶
type Lotus struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LotusSpec `json:"spec"` Status LotusStatus `json:"status"` }
func (*Lotus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Lotus.
func (*Lotus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Lotus) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LotusList.
func (*LotusList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LotusList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LotusSpec.
func (*LotusSpec) DeepCopyInto ¶
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.