v1alpha1

package
v0.0.0-...-b333ebd Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the cache v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=cache.example.com

Package v1alpha1 contains API Schema definitions for the cache v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=cache.example.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "cache.example.com", Version: "v1alpha1"}

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

Functions

This section is empty.

Types

type DFReplicaSpec

type DFReplicaSpec struct {
	Replicas *int32              `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"`
	Template *v1.PodTemplateSpec `json:"template,omitempty" protobuf:"bytes,3,opt,name=template"`
}

func (*DFReplicaSpec) DeepCopy

func (in *DFReplicaSpec) DeepCopy() *DFReplicaSpec

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

func (*DFReplicaSpec) DeepCopyInto

func (in *DFReplicaSpec) DeepCopyInto(out *DFReplicaSpec)

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

type DFReplicaType

type DFReplicaType string
const (
	PS     DFReplicaType = "PS"
	Worker DFReplicaType = "Worker"
)

type DfJob

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

	Spec   DfJobSpec   `json:"spec,omitempty"`
	Status DfJobStatus `json:"status,omitempty"`
}

DfJob is the Schema for the dfjobs API +k8s:openapi-gen=true

func (*DfJob) DeepCopy

func (in *DfJob) DeepCopy() *DfJob

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

func (*DfJob) DeepCopyInto

func (in *DfJob) DeepCopyInto(out *DfJob)

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

func (*DfJob) DeepCopyObject

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

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

type DfJobList

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

DfJobList contains a list of DfJob

func (*DfJobList) DeepCopy

func (in *DfJobList) DeepCopy() *DfJobList

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

func (*DfJobList) DeepCopyInto

func (in *DfJobList) DeepCopyInto(out *DfJobList)

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

func (*DfJobList) DeepCopyObject

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

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

type DfJobSpec

type DfJobSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	ReplicaSpecs map[DFReplicaType]*DFReplicaSpec `json:"dfreplicaSpecs"`
}

EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. DfJobSpec defines the desired state of DfJob

func (*DfJobSpec) DeepCopy

func (in *DfJobSpec) DeepCopy() *DfJobSpec

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

func (*DfJobSpec) DeepCopyInto

func (in *DfJobSpec) DeepCopyInto(out *DfJobSpec)

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

type DfJobStatus

type DfJobStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	Nodes []string `json:"nodes"`
}

DfJobStatus defines the observed state of DfJob

func (*DfJobStatus) DeepCopy

func (in *DfJobStatus) DeepCopy() *DfJobStatus

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

func (*DfJobStatus) DeepCopyInto

func (in *DfJobStatus) DeepCopyInto(out *DfJobStatus)

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