Documentation ¶
Index ¶
- Constants
- Variables
- func Add(c, i int) int
- func AddQuantity(c, i resource.Quantity) resource.Quantity
- func AddToScheme(scheme *runtime.Scheme) error
- func Fits(current, incoming int) bool
- func FitsQuantity(current, incoming resource.Quantity) bool
- func GetDefaultComputeClass(ctx context.Context, c client.Client, namespace string) (string, error)
- func ResourcesToString(resources map[string]int, quantityResources map[string]resource.Quantity) string
- func Sub(c, i int) int
- func SubQuantity(c, i resource.Quantity) resource.Quantity
- func UnlimitedQuantity() resource.Quantity
- type BaseResources
- func (current *BaseResources) Add(incoming BaseResources)
- func (in *BaseResources) DeepCopy() *BaseResources
- func (in *BaseResources) DeepCopyInto(out *BaseResources)
- func (current *BaseResources) Equals(incoming BaseResources) bool
- func (current *BaseResources) Fits(incoming BaseResources) error
- func (current *BaseResources) Remove(incoming BaseResources, all bool)
- func (current *BaseResources) ToString() string
- type ClusterComputeClassInstance
- func (in *ClusterComputeClassInstance) DeepCopy() *ClusterComputeClassInstance
- func (in *ClusterComputeClassInstance) DeepCopyInto(out *ClusterComputeClassInstance)
- func (in *ClusterComputeClassInstance) DeepCopyObject() runtime.Object
- func (in *ClusterComputeClassInstance) EnsureRegion(region string) bool
- func (in *ClusterComputeClassInstance) HasRegion(region string) bool
- func (in *ClusterComputeClassInstance) NamespaceScoped() bool
- type ClusterComputeClassInstanceList
- type ClusterImageRoleAuthorizationInstance
- func (in *ClusterImageRoleAuthorizationInstance) DeepCopy() *ClusterImageRoleAuthorizationInstance
- func (in *ClusterImageRoleAuthorizationInstance) DeepCopyInto(out *ClusterImageRoleAuthorizationInstance)
- func (in *ClusterImageRoleAuthorizationInstance) DeepCopyObject() runtime.Object
- func (in *ClusterImageRoleAuthorizationInstance) NamespaceScoped() bool
- type ClusterImageRoleAuthorizationInstanceList
- func (in *ClusterImageRoleAuthorizationInstanceList) DeepCopy() *ClusterImageRoleAuthorizationInstanceList
- func (in *ClusterImageRoleAuthorizationInstanceList) DeepCopyInto(out *ClusterImageRoleAuthorizationInstanceList)
- func (in *ClusterImageRoleAuthorizationInstanceList) DeepCopyObject() runtime.Object
- type ClusterVolumeClassInstance
- func (in *ClusterVolumeClassInstance) DeepCopy() *ClusterVolumeClassInstance
- func (in *ClusterVolumeClassInstance) DeepCopyInto(out *ClusterVolumeClassInstance)
- func (in *ClusterVolumeClassInstance) DeepCopyObject() runtime.Object
- func (c *ClusterVolumeClassInstance) EnsureRegion(region string) bool
- func (c *ClusterVolumeClassInstance) HasRegion(region string) bool
- func (c *ClusterVolumeClassInstance) NamespaceScoped() bool
- type ClusterVolumeClassInstanceList
- type ComputeClassMemory
- type ImageRoleAuthorizationInstance
- type ImageRoleAuthorizationInstanceList
- type ImageRoleAuthorizationInstanceSpec
- type ImageRoleAuthorizationInstanceStatus
- type ProjectComputeClassInstance
- type ProjectComputeClassInstanceList
- type ProjectVolumeClassInstance
- type ProjectVolumeClassInstanceList
- type QuotaRequestInstance
- func (in *QuotaRequestInstance) Conditions() *[]v1.Condition
- func (in *QuotaRequestInstance) DeepCopy() *QuotaRequestInstance
- func (in *QuotaRequestInstance) DeepCopyInto(out *QuotaRequestInstance)
- func (in *QuotaRequestInstance) DeepCopyObject() runtime.Object
- func (in *QuotaRequestInstance) EnsureRegion(region string) bool
- func (in *QuotaRequestInstance) GetRegion() string
- func (in *QuotaRequestInstance) HasRegion(region string) bool
- type QuotaRequestInstanceList
- type QuotaRequestInstanceSpec
- type QuotaRequestInstanceStatus
- type QuotaRequestResources
- func (current *QuotaRequestResources) Add(incoming QuotaRequestResources)
- func (in *QuotaRequestResources) DeepCopy() *QuotaRequestResources
- func (in *QuotaRequestResources) DeepCopyInto(out *QuotaRequestResources)
- func (current *QuotaRequestResources) Equals(incoming QuotaRequestResources) bool
- func (current *QuotaRequestResources) Fits(incoming QuotaRequestResources) error
- func (current *QuotaRequestResources) Remove(incoming QuotaRequestResources, all bool)
- func (current *QuotaRequestResources) ToString() string
- type RoleAuthorizations
- type RoleRef
- type VolumeClassSize
Constants ¶
const QuotaRequestCondition = "quota-request"
const Unlimited = -1
const Version = "v1"
Variables ¶
var (
ErrExceededResources = fmt.Errorf("quota would be exceeded for resources")
)
var SchemeGroupVersion = schema.GroupVersion{ Group: internal_admin_acorn_io.Group, Version: Version, }
Functions ¶
func AddToScheme ¶
func FitsQuantity ¶ added in v0.9.0
func GetDefaultComputeClass ¶
func ResourcesToString ¶ added in v0.9.0
func ResourcesToString(resources map[string]int, quantityResources map[string]resource.Quantity) string
ResourceToString will return a string representation of the resource and value if its value is greater than 0.
func UnlimitedQuantity ¶ added in v0.9.0
NewUnlimitedQuantity creates a Quantity with an Unlimited value
Types ¶
type BaseResources ¶ added in v0.9.0
type BaseResources struct { Apps int `json:"apps"` Containers int `json:"containers"` Jobs int `json:"jobs"` Volumes int `json:"volumes"` Images int `json:"images"` VolumeStorage resource.Quantity `json:"volumeStorage"` Memory resource.Quantity `json:"memory"` CPU resource.Quantity `json:"cpu"` }
BaseResources defines resources that should be tracked at any scoped. The two main exclusions currently are Secrets and Projects as they have situations they should be not be tracked.
func (*BaseResources) Add ¶ added in v0.9.0
func (current *BaseResources) Add(incoming BaseResources)
Add will add the BaseResources of another BaseResources struct into the current one.
func (*BaseResources) DeepCopy ¶ added in v0.9.0
func (in *BaseResources) DeepCopy() *BaseResources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BaseResources.
func (*BaseResources) DeepCopyInto ¶ added in v0.9.0
func (in *BaseResources) DeepCopyInto(out *BaseResources)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BaseResources) Equals ¶ added in v0.9.0
func (current *BaseResources) Equals(incoming BaseResources) bool
Equals will check if the current BaseResources struct is equal to another. This is useful to avoid needing to do a deep equal on the entire struct.
func (*BaseResources) Fits ¶ added in v0.9.0
func (current *BaseResources) Fits(incoming BaseResources) error
Fits will check if a group of BaseResources will be able to contain another group of BaseResources. If the BaseResources are not able to fit, an aggregated error will be returned with all exceeded BaseResources. If the current BaseResources defines unlimited, then it will always fit.
func (*BaseResources) Remove ¶ added in v0.9.0
func (current *BaseResources) Remove(incoming BaseResources, all bool)
Remove will remove the BaseResources of another BaseResources struct from the current one. Calling remove will be a no-op for any resource values that are set to unlimited.
func (*BaseResources) ToString ¶ added in v0.9.0
func (current *BaseResources) ToString() string
ToString will return a string representation of the BaseResources within the struct.
type ClusterComputeClassInstance ¶
type ClusterComputeClassInstance ProjectComputeClassInstance
func (*ClusterComputeClassInstance) DeepCopy ¶
func (in *ClusterComputeClassInstance) DeepCopy() *ClusterComputeClassInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterComputeClassInstance.
func (*ClusterComputeClassInstance) DeepCopyInto ¶
func (in *ClusterComputeClassInstance) DeepCopyInto(out *ClusterComputeClassInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterComputeClassInstance) DeepCopyObject ¶
func (in *ClusterComputeClassInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterComputeClassInstance) EnsureRegion ¶
func (in *ClusterComputeClassInstance) EnsureRegion(region string) bool
EnsureRegion checks that the class supports the region. If it does not, then the region is added.
func (*ClusterComputeClassInstance) HasRegion ¶
func (in *ClusterComputeClassInstance) HasRegion(region string) bool
func (*ClusterComputeClassInstance) NamespaceScoped ¶
func (in *ClusterComputeClassInstance) NamespaceScoped() bool
type ClusterComputeClassInstanceList ¶
type ClusterComputeClassInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterComputeClassInstance `json:"items"` }
func (*ClusterComputeClassInstanceList) DeepCopy ¶
func (in *ClusterComputeClassInstanceList) DeepCopy() *ClusterComputeClassInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterComputeClassInstanceList.
func (*ClusterComputeClassInstanceList) DeepCopyInto ¶
func (in *ClusterComputeClassInstanceList) DeepCopyInto(out *ClusterComputeClassInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterComputeClassInstanceList) DeepCopyObject ¶
func (in *ClusterComputeClassInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterImageRoleAuthorizationInstance ¶ added in v0.9.0
type ClusterImageRoleAuthorizationInstance ImageRoleAuthorizationInstance
func (*ClusterImageRoleAuthorizationInstance) DeepCopy ¶ added in v0.9.0
func (in *ClusterImageRoleAuthorizationInstance) DeepCopy() *ClusterImageRoleAuthorizationInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterImageRoleAuthorizationInstance.
func (*ClusterImageRoleAuthorizationInstance) DeepCopyInto ¶ added in v0.9.0
func (in *ClusterImageRoleAuthorizationInstance) DeepCopyInto(out *ClusterImageRoleAuthorizationInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterImageRoleAuthorizationInstance) DeepCopyObject ¶ added in v0.9.0
func (in *ClusterImageRoleAuthorizationInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterImageRoleAuthorizationInstance) NamespaceScoped ¶ added in v0.9.0
func (in *ClusterImageRoleAuthorizationInstance) NamespaceScoped() bool
type ClusterImageRoleAuthorizationInstanceList ¶ added in v0.9.0
type ClusterImageRoleAuthorizationInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterImageRoleAuthorizationInstance `json:"items"` }
func (*ClusterImageRoleAuthorizationInstanceList) DeepCopy ¶ added in v0.9.0
func (in *ClusterImageRoleAuthorizationInstanceList) DeepCopy() *ClusterImageRoleAuthorizationInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterImageRoleAuthorizationInstanceList.
func (*ClusterImageRoleAuthorizationInstanceList) DeepCopyInto ¶ added in v0.9.0
func (in *ClusterImageRoleAuthorizationInstanceList) DeepCopyInto(out *ClusterImageRoleAuthorizationInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterImageRoleAuthorizationInstanceList) DeepCopyObject ¶ added in v0.9.0
func (in *ClusterImageRoleAuthorizationInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterVolumeClassInstance ¶
type ClusterVolumeClassInstance ProjectVolumeClassInstance
func (*ClusterVolumeClassInstance) DeepCopy ¶
func (in *ClusterVolumeClassInstance) DeepCopy() *ClusterVolumeClassInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterVolumeClassInstance.
func (*ClusterVolumeClassInstance) DeepCopyInto ¶
func (in *ClusterVolumeClassInstance) DeepCopyInto(out *ClusterVolumeClassInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterVolumeClassInstance) DeepCopyObject ¶
func (in *ClusterVolumeClassInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterVolumeClassInstance) EnsureRegion ¶
func (c *ClusterVolumeClassInstance) EnsureRegion(region string) bool
EnsureRegion checks that the class supports the region. If it does not, then the region is added.
func (*ClusterVolumeClassInstance) HasRegion ¶
func (c *ClusterVolumeClassInstance) HasRegion(region string) bool
func (*ClusterVolumeClassInstance) NamespaceScoped ¶
func (c *ClusterVolumeClassInstance) NamespaceScoped() bool
type ClusterVolumeClassInstanceList ¶
type ClusterVolumeClassInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterVolumeClassInstance `json:"items"` }
func (*ClusterVolumeClassInstanceList) DeepCopy ¶
func (in *ClusterVolumeClassInstanceList) DeepCopy() *ClusterVolumeClassInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterVolumeClassInstanceList.
func (*ClusterVolumeClassInstanceList) DeepCopyInto ¶
func (in *ClusterVolumeClassInstanceList) DeepCopyInto(out *ClusterVolumeClassInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterVolumeClassInstanceList) DeepCopyObject ¶
func (in *ClusterVolumeClassInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ComputeClassMemory ¶
type ComputeClassMemory struct { Min string `json:"min,omitempty"` Max string `json:"max,omitempty"` Default string `json:"default,omitempty"` RequestScaler float64 `json:"requestScaler,omitempty"` Values []string `json:"values,omitempty"` }
func (*ComputeClassMemory) DeepCopy ¶
func (in *ComputeClassMemory) DeepCopy() *ComputeClassMemory
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComputeClassMemory.
func (*ComputeClassMemory) DeepCopyInto ¶
func (in *ComputeClassMemory) DeepCopyInto(out *ComputeClassMemory)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageRoleAuthorizationInstance ¶ added in v0.9.0
type ImageRoleAuthorizationInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Spec ImageRoleAuthorizationInstanceSpec `json:"spec,omitempty"` Status ImageRoleAuthorizationInstanceStatus `json:"status,omitempty"` }
func (*ImageRoleAuthorizationInstance) DeepCopy ¶ added in v0.9.0
func (in *ImageRoleAuthorizationInstance) DeepCopy() *ImageRoleAuthorizationInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageRoleAuthorizationInstance.
func (*ImageRoleAuthorizationInstance) DeepCopyInto ¶ added in v0.9.0
func (in *ImageRoleAuthorizationInstance) DeepCopyInto(out *ImageRoleAuthorizationInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageRoleAuthorizationInstance) DeepCopyObject ¶ added in v0.9.0
func (in *ImageRoleAuthorizationInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageRoleAuthorizationInstanceList ¶ added in v0.9.0
type ImageRoleAuthorizationInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ImageRoleAuthorizationInstance `json:"items"` }
func (*ImageRoleAuthorizationInstanceList) DeepCopy ¶ added in v0.9.0
func (in *ImageRoleAuthorizationInstanceList) DeepCopy() *ImageRoleAuthorizationInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageRoleAuthorizationInstanceList.
func (*ImageRoleAuthorizationInstanceList) DeepCopyInto ¶ added in v0.9.0
func (in *ImageRoleAuthorizationInstanceList) DeepCopyInto(out *ImageRoleAuthorizationInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageRoleAuthorizationInstanceList) DeepCopyObject ¶ added in v0.9.0
func (in *ImageRoleAuthorizationInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageRoleAuthorizationInstanceSpec ¶ added in v0.9.0
type ImageRoleAuthorizationInstanceSpec struct { ImageSelector internalv1.ImageSelector `json:"imageSelector,omitempty"` Roles RoleAuthorizations `json:"roles,omitempty"` }
func (*ImageRoleAuthorizationInstanceSpec) DeepCopy ¶ added in v0.9.0
func (in *ImageRoleAuthorizationInstanceSpec) DeepCopy() *ImageRoleAuthorizationInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageRoleAuthorizationInstanceSpec.
func (*ImageRoleAuthorizationInstanceSpec) DeepCopyInto ¶ added in v0.9.0
func (in *ImageRoleAuthorizationInstanceSpec) DeepCopyInto(out *ImageRoleAuthorizationInstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageRoleAuthorizationInstanceStatus ¶ added in v0.9.0
type ImageRoleAuthorizationInstanceStatus struct {
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}
func (*ImageRoleAuthorizationInstanceStatus) DeepCopy ¶ added in v0.9.0
func (in *ImageRoleAuthorizationInstanceStatus) DeepCopy() *ImageRoleAuthorizationInstanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageRoleAuthorizationInstanceStatus.
func (*ImageRoleAuthorizationInstanceStatus) DeepCopyInto ¶ added in v0.9.0
func (in *ImageRoleAuthorizationInstanceStatus) DeepCopyInto(out *ImageRoleAuthorizationInstanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProjectComputeClassInstance ¶
type ProjectComputeClassInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Description string `json:"description,omitempty"` CPUScaler float64 `json:"cpuScaler,omitempty"` Default bool `json:"default"` Affinity *corev1.Affinity `json:"affinity,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` Memory ComputeClassMemory `json:"memory,omitempty"` SupportedRegions []string `json:"supportedRegions,omitempty"` PriorityClassName string `json:"priorityClassName,omitempty"` RuntimeClassName string `json:"runtimeClassName,omitempty"` Resources *corev1.ResourceRequirements `json:"resources,omitempty"` }
func (*ProjectComputeClassInstance) DeepCopy ¶
func (in *ProjectComputeClassInstance) DeepCopy() *ProjectComputeClassInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectComputeClassInstance.
func (*ProjectComputeClassInstance) DeepCopyInto ¶
func (in *ProjectComputeClassInstance) DeepCopyInto(out *ProjectComputeClassInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProjectComputeClassInstance) DeepCopyObject ¶
func (in *ProjectComputeClassInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProjectComputeClassInstanceList ¶
type ProjectComputeClassInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ProjectComputeClassInstance `json:"items"` }
func (*ProjectComputeClassInstanceList) DeepCopy ¶
func (in *ProjectComputeClassInstanceList) DeepCopy() *ProjectComputeClassInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectComputeClassInstanceList.
func (*ProjectComputeClassInstanceList) DeepCopyInto ¶
func (in *ProjectComputeClassInstanceList) DeepCopyInto(out *ProjectComputeClassInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProjectComputeClassInstanceList) DeepCopyObject ¶
func (in *ProjectComputeClassInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProjectVolumeClassInstance ¶
type ProjectVolumeClassInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` StorageClassName string `json:"storageClassName"` Description string `json:"description"` Default bool `json:"default,omitempty"` AllowedAccessModes v1.AccessModes `json:"allowedAccessModes,omitempty"` Size VolumeClassSize `json:"size,omitempty"` Inactive bool `json:"inactive,omitempty"` SupportedRegions []string `json:"supportedRegions,omitempty"` }
func (*ProjectVolumeClassInstance) DeepCopy ¶
func (in *ProjectVolumeClassInstance) DeepCopy() *ProjectVolumeClassInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectVolumeClassInstance.
func (*ProjectVolumeClassInstance) DeepCopyInto ¶
func (in *ProjectVolumeClassInstance) DeepCopyInto(out *ProjectVolumeClassInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProjectVolumeClassInstance) DeepCopyObject ¶
func (in *ProjectVolumeClassInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProjectVolumeClassInstanceList ¶
type ProjectVolumeClassInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ProjectVolumeClassInstance `json:"items"` }
func (*ProjectVolumeClassInstanceList) DeepCopy ¶
func (in *ProjectVolumeClassInstanceList) DeepCopy() *ProjectVolumeClassInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectVolumeClassInstanceList.
func (*ProjectVolumeClassInstanceList) DeepCopyInto ¶
func (in *ProjectVolumeClassInstanceList) DeepCopyInto(out *ProjectVolumeClassInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProjectVolumeClassInstanceList) DeepCopyObject ¶
func (in *ProjectVolumeClassInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type QuotaRequestInstance ¶
type QuotaRequestInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec QuotaRequestInstanceSpec `json:"spec,omitempty"` Status QuotaRequestInstanceStatus `json:"status,omitempty"` }
func (*QuotaRequestInstance) Conditions ¶
func (in *QuotaRequestInstance) Conditions() *[]v1.Condition
func (*QuotaRequestInstance) DeepCopy ¶
func (in *QuotaRequestInstance) DeepCopy() *QuotaRequestInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaRequestInstance.
func (*QuotaRequestInstance) DeepCopyInto ¶
func (in *QuotaRequestInstance) DeepCopyInto(out *QuotaRequestInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*QuotaRequestInstance) DeepCopyObject ¶
func (in *QuotaRequestInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*QuotaRequestInstance) EnsureRegion ¶
func (in *QuotaRequestInstance) EnsureRegion(region string) bool
EnsureRegion checks or sets the region of a QuotaRequstInstance. If a QuotaRequstInstance's region is unset, EnsureRegion sets it to the given region and returns true. Otherwise, it returns true if and only if the Volume belongs to the given region.
func (*QuotaRequestInstance) GetRegion ¶
func (in *QuotaRequestInstance) GetRegion() string
func (*QuotaRequestInstance) HasRegion ¶
func (in *QuotaRequestInstance) HasRegion(region string) bool
type QuotaRequestInstanceList ¶
type QuotaRequestInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []QuotaRequestInstance `json:"items"` }
func (*QuotaRequestInstanceList) DeepCopy ¶
func (in *QuotaRequestInstanceList) DeepCopy() *QuotaRequestInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaRequestInstanceList.
func (*QuotaRequestInstanceList) DeepCopyInto ¶
func (in *QuotaRequestInstanceList) DeepCopyInto(out *QuotaRequestInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*QuotaRequestInstanceList) DeepCopyObject ¶
func (in *QuotaRequestInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type QuotaRequestInstanceSpec ¶
type QuotaRequestInstanceSpec struct { Region string `json:"region,omitempty"` Resources QuotaRequestResources `json:"resources,omitempty"` }
func (*QuotaRequestInstanceSpec) DeepCopy ¶
func (in *QuotaRequestInstanceSpec) DeepCopy() *QuotaRequestInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaRequestInstanceSpec.
func (*QuotaRequestInstanceSpec) DeepCopyInto ¶
func (in *QuotaRequestInstanceSpec) DeepCopyInto(out *QuotaRequestInstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QuotaRequestInstanceStatus ¶
type QuotaRequestInstanceStatus struct { ObservedGeneration int64 `json:"observedGeneration,omitempty"` AllocatedResources QuotaRequestResources `json:"allocatedResources,omitempty"` FailedResources *QuotaRequestResources `json:"failedResources,omitempty"` Conditions []v1.Condition `json:"conditions,omitempty"` }
func (*QuotaRequestInstanceStatus) Condition ¶
func (in *QuotaRequestInstanceStatus) Condition(name string) v1.Condition
func (*QuotaRequestInstanceStatus) DeepCopy ¶
func (in *QuotaRequestInstanceStatus) DeepCopy() *QuotaRequestInstanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaRequestInstanceStatus.
func (*QuotaRequestInstanceStatus) DeepCopyInto ¶
func (in *QuotaRequestInstanceStatus) DeepCopyInto(out *QuotaRequestInstanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QuotaRequestResources ¶ added in v0.9.0
type QuotaRequestResources struct { BaseResources `json:",inline"` Secrets int `json:"secrets"` }
QuotaRequestResources defines resources that should can be created by an AppInstance.
func (*QuotaRequestResources) Add ¶ added in v0.9.0
func (current *QuotaRequestResources) Add(incoming QuotaRequestResources)
Add will add the QuotaRequestResources of another QuotaRequestResources struct into the current one.
func (*QuotaRequestResources) DeepCopy ¶ added in v0.9.0
func (in *QuotaRequestResources) DeepCopy() *QuotaRequestResources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaRequestResources.
func (*QuotaRequestResources) DeepCopyInto ¶ added in v0.9.0
func (in *QuotaRequestResources) DeepCopyInto(out *QuotaRequestResources)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*QuotaRequestResources) Equals ¶ added in v0.9.0
func (current *QuotaRequestResources) Equals(incoming QuotaRequestResources) bool
Equals will check if the current QuotaRequestResources struct is equal to another. This is useful to avoid needing to do a deep equal on the entire struct.
func (*QuotaRequestResources) Fits ¶ added in v0.9.0
func (current *QuotaRequestResources) Fits(incoming QuotaRequestResources) error
Fits will check if a group QuotaRequestResources will be able to contain another group of QuotaRequestResources. If the QuotaRequestResources are not able to fit, an aggregated error will be returned with all exceeded QuotaRequestResources. If the current QuotaRequestResources defines unlimited, then it will always fit.
func (*QuotaRequestResources) Remove ¶ added in v0.9.0
func (current *QuotaRequestResources) Remove(incoming QuotaRequestResources, all bool)
Remove will remove the QuotaRequestResources of another QuotaRequestResources struct from the current one. Calling remove will be a no-op for any resource values that are set to unlimited.
func (*QuotaRequestResources) ToString ¶ added in v0.9.0
func (current *QuotaRequestResources) ToString() string
ToString will return a string representation of the QuotaRequestResources within the struct.
type RoleAuthorizations ¶ added in v0.9.0
type RoleAuthorizations struct { Scopes []string `json:"scopes,omitempty"` RoleRefs []RoleRef `json:"roleRefs,omitempty"` }
func (*RoleAuthorizations) DeepCopy ¶ added in v0.9.0
func (in *RoleAuthorizations) DeepCopy() *RoleAuthorizations
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleAuthorizations.
func (*RoleAuthorizations) DeepCopyInto ¶ added in v0.9.0
func (in *RoleAuthorizations) DeepCopyInto(out *RoleAuthorizations)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RoleRef ¶ added in v0.9.0
type RoleRef struct { Name string `json:"name,omitempty"` Kind string `json:"kind,omitempty"` // ClusterRole (or Role - if not cluster-scoped) }
func (*RoleRef) DeepCopy ¶ added in v0.9.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleRef.
func (*RoleRef) DeepCopyInto ¶ added in v0.9.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeClassSize ¶
type VolumeClassSize struct { Default v1.Quantity `json:"default,omitempty"` Min v1.Quantity `json:"min,omitempty"` Max v1.Quantity `json:"max,omitempty"` }
func (*VolumeClassSize) DeepCopy ¶
func (in *VolumeClassSize) DeepCopy() *VolumeClassSize
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeClassSize.
func (*VolumeClassSize) DeepCopyInto ¶
func (in *VolumeClassSize) DeepCopyInto(out *VolumeClassSize)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.