Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
Constants ¶
const ( PhasePending = "PENDING" PhaseRunning = "RUNNING" PhaseDone = "DONE" )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: swarm.GroupName, Version: "v1alpha1"}
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 Peer ¶
type Peer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Index int `json:"index"` ID string `json:"id"` Address string `json:"address"` CreatedAt int64 `json:"created_at"` State PeerStatus `json:"state"` }
func (*Peer) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Peer.
func (*Peer) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Peer) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PeerStatus ¶
type PeerStatus struct { // Phase represents the state of the schedule: until the command is executed // it is PENDING, afterwards it is DONE. Phase string `json:"phase,omitempty"` }
PeerStatus defines the observed state of Peer
func (*PeerStatus) DeepCopy ¶
func (in *PeerStatus) DeepCopy() *PeerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeerStatus.
func (*PeerStatus) DeepCopyInto ¶
func (in *PeerStatus) DeepCopyInto(out *PeerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Swarm ¶
type Swarm struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SwarmSpec `json:"spec,omitempty"` Status SwarmStatus `json:"status,omitempty"` }
Swarm runs a command Swarm a given schedule.
func (*Swarm) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Swarm.
func (*Swarm) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Swarm) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SwarmList ¶
type SwarmList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Swarm `json:"items"` }
SwarmList contains a list of Swarm
func (*SwarmList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SwarmList.
func (*SwarmList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SwarmList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SwarmSpec ¶
type SwarmSpec struct { Replicas int `json:"replicas"` Size int `json:"size"` Peers []Peer `json:"peers,omitempty"` }
SwarmSpec defines the desired state of Swarm
func (*SwarmSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SwarmSpec.
func (*SwarmSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SwarmStatus ¶
type SwarmStatus struct { // Phase represents the state of the schedule: until the command is executed // it is PENDING, afterwards it is DONE. Phase string `json:"phase,omitempty"` }
SwarmStatus defines the observed state of Swarm
func (*SwarmStatus) DeepCopy ¶
func (in *SwarmStatus) DeepCopy() *SwarmStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SwarmStatus.
func (*SwarmStatus) DeepCopyInto ¶
func (in *SwarmStatus) DeepCopyInto(out *SwarmStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.