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 ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Actor.
func (*Actor) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Director.
func (*Director) DeepCopyInto ¶
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 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Room.
func (*Room) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Room) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoomList.
func (*RoomList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RoomList) DeepCopyObject ¶
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 int64 `json:"timeout"` TerminateOnActorFailure bool `json:"terminateOnActorFailure"` }
RoomSpec defines the desired state of Room
func (*RoomSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoomSpec.
func (*RoomSpec) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Setting.
func (*Setting) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.