v1

package
v0.0.0-...-c0421bf Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the hub v1 API group +kubebuilder:object:generate=true +groupName=hub.roboepics.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "hub.roboepics.com", Version: "v1"}

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Actor

type Actor struct {
	Name      string                       `json:"name"`
	Image     string                       `json:"image"`
	Role      string                       `json:"role"`
	Token     string                       `json:"token,omitempty"`
	Resources *corev1.ResourceRequirements `json:"resources,omitempty"`
	Envs      []corev1.EnvVar              `json:"envs,omitempty"`
}

Actor defines some actor of a Room

func (*Actor) DeepCopy

func (in *Actor) DeepCopy() *Actor

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

func (*Actor) DeepCopyInto

func (in *Actor) DeepCopyInto(out *Actor)

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

type Director

type Director struct {
	Name      string                       `json:"name"`
	Image     string                       `json:"image"`
	Token     string                       `json:"token,omitempty"`
	Resources *corev1.ResourceRequirements `json:"resources,omitempty"`
	Envs      []corev1.EnvVar              `json:"envs,omitempty"`
}

Director defines the director of a Room

func (*Director) DeepCopy

func (in *Director) DeepCopy() *Director

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

func (*Director) DeepCopyInto

func (in *Director) DeepCopyInto(out *Director)

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

type GimulatorSettings

type GimulatorSettings struct {
	Image     string                       `json:"image" yaml:"image"`
	Resources *corev1.ResourceRequirements `json:"resources,omitempty" yaml:"resources,omitempty"`
}

type PVCNames

type PVCNames struct {
	Public  []string `json:"public,omitempty" yaml:"public,omitempty"`
	Private []string `json:"private,omitempty" yaml:"private,omitempty"`
}

type RoleSettings

type RoleSettings struct {
	Resources *corev1.ResourceRequirements `json:"resources,omitempty" yaml:"resources,omitempty"`
}

type Room

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

	Spec   RoomSpec   `json:"spec,omitempty"`
	Status RoomStatus `json:"status,omitempty"`
}

Room is the Schema for the rooms API

func (*Room) DeepCopy

func (in *Room) DeepCopy() *Room

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

func (*Room) DeepCopyInto

func (in *Room) DeepCopyInto(out *Room)

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

func (*Room) DeepCopyObject

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

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

type RoomList

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

RoomList contains a list of Room

func (*RoomList) DeepCopy

func (in *RoomList) DeepCopy() *RoomList

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

func (*RoomList) DeepCopyInto

func (in *RoomList) DeepCopyInto(out *RoomList)

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

func (*RoomList) DeepCopyObject

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

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

type RoomSpec

type RoomSpec struct {
	ID                      string             `json:"id"`
	ProblemID               string             `json:"problemID"`
	Setting                 *Setting           `json:"setting,omitempty"`
	Gimulator               *GimulatorSettings `json:"gimulator,omitempty"`
	Actors                  []*Actor           `json:"actors"`
	Director                *Director          `json:"director"`
	Timeout                 uint64             `json:"timeout"`
	TerminateOnActorFailure bool               `json:"terminateOnActorFailure"`
}

RoomSpec defines the desired state of Room

func (*RoomSpec) DeepCopy

func (in *RoomSpec) DeepCopy() *RoomSpec

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

func (*RoomSpec) DeepCopyInto

func (in *RoomSpec) DeepCopyInto(out *RoomSpec)

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

type RoomStatus

type RoomStatus struct {
	GimulatorStatus corev1.PodPhase            `json:"gimulatorStatus"`
	DirectorStatus  corev1.PodPhase            `json:"directorStatus"`
	ActorStatuses   map[string]corev1.PodPhase `json:"actorStatuses"`
}

RoomStatus defines the observed state of Room

func (*RoomStatus) DeepCopy

func (in *RoomStatus) DeepCopy() *RoomStatus

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

func (*RoomStatus) DeepCopyInto

func (in *RoomStatus) DeepCopyInto(out *RoomStatus)

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

type Setting

type Setting struct {
	DataPVCNames     *PVCNames                   `json:"dataPVCNames,omitempty" yaml:"dataPVCNames,omitempty"`
	Gimulator        *GimulatorSettings          `json:"gimulator" yaml:"gimulator"`
	OutputVolumeSize string                      `json:"outputVolumeSize" yaml:"outputVolumeSize"`
	DefaultResources corev1.ResourceRequirements `json:"defaultResources" yaml:"defaultResources"`
	Roles            map[string]*RoleSettings    `json:"roles,omitempty" yaml:"roles,omitempty"`
	StorageClass     string                      `json:"storageClass" yaml:"storageClass"`
}

func (*Setting) DeepCopy

func (in *Setting) DeepCopy() *Setting

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

func (*Setting) DeepCopyInto

func (in *Setting) DeepCopyInto(out *Setting)

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