Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the instance v1alpha1 API group
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "crownlabs.polito.it", Version: "v1alpha1"} // 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 GenericRef ¶
type GenericRef struct { // The name of the resource to be referenced. Name string `json:"name"` // The namespace containing the resource to be referenced. It should be left // empty in case of cluster-wide resources. Namespace string `json:"namespace,omitempty"` }
GenericRef represents a reference to a generic Kubernetes resource, and it is composed of the resource name and (optionally) its namespace.
func (*GenericRef) DeepCopy ¶
func (in *GenericRef) DeepCopy() *GenericRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericRef.
func (*GenericRef) DeepCopyInto ¶
func (in *GenericRef) DeepCopyInto(out *GenericRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageList ¶
type ImageList struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ImageListSpec `json:"spec,omitempty"` Status ImageListStatus `json:"status,omitempty"` }
ImageList describes the available VM images in the CrownLabs registry.
func (*ImageList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageList.
func (*ImageList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageListItem ¶
type ImageListItem struct { // The name identifying a single image. Name string `json:"name"` // The list of versions the image is available in. Versions []string `json:"versions"` }
ImageListItem describes a single VM image.
func (*ImageListItem) DeepCopy ¶
func (in *ImageListItem) DeepCopy() *ImageListItem
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageListItem.
func (*ImageListItem) DeepCopyInto ¶
func (in *ImageListItem) DeepCopyInto(out *ImageListItem)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageListList ¶
type ImageListList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ImageList `json:"items"` }
ImageListList contains a list of ImageList objects.
func (*ImageListList) DeepCopy ¶
func (in *ImageListList) DeepCopy() *ImageListList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageListList.
func (*ImageListList) DeepCopyInto ¶
func (in *ImageListList) DeepCopyInto(out *ImageListList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageListList) DeepCopyObject ¶
func (in *ImageListList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageListSpec ¶
type ImageListSpec struct { // The host name that can be used to access the registry. RegistryName string `json:"registryName"` // The list of VM images currently available in CrownLabs. Images []ImageListItem `json:"images"` }
ImageListSpec is the specification of the desired state of the ImageList.
func (*ImageListSpec) DeepCopy ¶
func (in *ImageListSpec) DeepCopy() *ImageListSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageListSpec.
func (*ImageListSpec) DeepCopyInto ¶
func (in *ImageListSpec) DeepCopyInto(out *ImageListSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageListStatus ¶
type ImageListStatus struct { }
ImageListStatus reflects the most recently observed status of the ImageList.
func (*ImageListStatus) DeepCopy ¶
func (in *ImageListStatus) DeepCopy() *ImageListStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageListStatus.
func (*ImageListStatus) DeepCopyInto ¶
func (in *ImageListStatus) DeepCopyInto(out *ImageListStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Workspace ¶
type Workspace struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec WorkspaceSpec `json:"spec,omitempty"` Status WorkspaceStatus `json:"status,omitempty"` }
Workspace describes a workspace in CrownLabs.
func (*Workspace) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workspace.
func (*Workspace) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Workspace) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WorkspaceList ¶
type WorkspaceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Workspace `json:"items"` }
WorkspaceList contains a list of Workspace objects.
func (*WorkspaceList) DeepCopy ¶
func (in *WorkspaceList) DeepCopy() *WorkspaceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceList.
func (*WorkspaceList) DeepCopyInto ¶
func (in *WorkspaceList) DeepCopyInto(out *WorkspaceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkspaceList) DeepCopyObject ¶
func (in *WorkspaceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WorkspaceResourceQuota ¶
type WorkspaceResourceQuota struct { // The maximum amount of CPU required by this Workspace. CPU resource.Quantity `json:"cpu"` // The maximum amount of RAM memory required by this Workspace. Memory resource.Quantity `json:"memory"` // +kubebuilder:validation:Minimum:=1 // The maximum number of concurrent instances required by this Workspace. Instances uint32 `json:"instances"` }
WorkspaceResourceQuota defines the resource quota for each Workspace.
func (*WorkspaceResourceQuota) DeepCopy ¶
func (in *WorkspaceResourceQuota) DeepCopy() *WorkspaceResourceQuota
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceResourceQuota.
func (*WorkspaceResourceQuota) DeepCopyInto ¶
func (in *WorkspaceResourceQuota) DeepCopyInto(out *WorkspaceResourceQuota)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkspaceSpec ¶
type WorkspaceSpec struct { // The human-readable name of the Workspace. PrettyName string `json:"prettyName"` // The amount of resources associated with this workspace, and inherited by enrolled tenants. Quota WorkspaceResourceQuota `json:"quota"` }
WorkspaceSpec is the specification of the desired state of the Workspace.
func (*WorkspaceSpec) DeepCopy ¶
func (in *WorkspaceSpec) DeepCopy() *WorkspaceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceSpec.
func (*WorkspaceSpec) DeepCopyInto ¶
func (in *WorkspaceSpec) DeepCopyInto(out *WorkspaceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkspaceStatus ¶
type WorkspaceStatus struct { // The namespace containing all CrownLabs related objects of the Workspace. // This is the namespace that groups multiple related templates, together // with all the accessory resources (e.g. RBACs) created by the tenant // operator. Namespace v1alpha2.NameCreated `json:"namespace,omitempty"` // The list of the subscriptions to external services (e.g. Keycloak, // ...), indicating for each one whether it succeeded or an error // occurred. Subscriptions map[string]v1alpha2.SubscriptionStatus `json:"subscription,omitempty"` // Whether all subscriptions and resource creations succeeded or an error // occurred. In case of errors, the other status fields provide additional // information about which problem occurred. Ready bool `json:"ready,omitempty"` }
WorkspaceStatus reflects the most recently observed status of the Workspace.
func (*WorkspaceStatus) DeepCopy ¶
func (in *WorkspaceStatus) DeepCopy() *WorkspaceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceStatus.
func (*WorkspaceStatus) DeepCopyInto ¶
func (in *WorkspaceStatus) DeepCopyInto(out *WorkspaceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.