v1alpha1

package
v0.0.0-...-c2045be Latest Latest
Warning

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

Go to latest
Published: Mar 23, 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 Job

type Job string

type Member

type Member struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Name              string       `json:"name"`
	Jobs              []Job        `json:"jobs"`
	State             MemberStatus `json:"state"`
	CreatedAt         int64        `json:"created_at"`
}

func (*Member) DeepCopy

func (in *Member) DeepCopy() *Member

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

func (*Member) DeepCopyInto

func (in *Member) DeepCopyInto(out *Member)

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

func (*Member) DeepCopyObject

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

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

type MemberStatus

type MemberStatus 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"`
}

MemberStatus defines the observed state of Member

func (*MemberStatus) DeepCopy

func (in *MemberStatus) DeepCopy() *MemberStatus

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

func (*MemberStatus) DeepCopyInto

func (in *MemberStatus) DeepCopyInto(out *MemberStatus)

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 {
	Version      int64    `json:"version"`
	ExpectedSize int      `json:"expected-size"` // @TODO: As SubResource
	Size         int      `json:"size"`
	Members      []Member `json:"members,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