v1alpha1

package
v0.0.0-...-03429b3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

View Source
const (
	PhasePending = "PENDING"
	PhaseRunning = "RUNNING"
	PhaseDone    = "DONE"
)

Variables

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

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 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

func (in *Peer) DeepCopy() *Peer

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

func (*Peer) DeepCopyInto

func (in *Peer) DeepCopyInto(out *Peer)

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

func (*Peer) DeepCopyObject

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

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

func (in *Swarm) DeepCopy() *Swarm

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

func (*Swarm) DeepCopyInto

func (in *Swarm) DeepCopyInto(out *Swarm)

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

func (*Swarm) DeepCopyObject

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

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

func (in *SwarmList) DeepCopy() *SwarmList

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

func (*SwarmList) DeepCopyInto

func (in *SwarmList) DeepCopyInto(out *SwarmList)

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

func (*SwarmList) DeepCopyObject

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

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

func (in *SwarmSpec) DeepCopy() *SwarmSpec

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

func (*SwarmSpec) DeepCopyInto

func (in *SwarmSpec) DeepCopyInto(out *SwarmSpec)

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.

Jump to

Keyboard shortcuts

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