Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGVR ¶
func GetGVR() schema.GroupVersionResource
GetGVR returns resource quotas's GroupVersionResource which could be used for Clean function.
Types ¶
type Builder ¶
type Builder struct { // Resource Quota definition Definition *corev1.ResourceQuota // Created resource quota object Object *corev1.ResourceQuota // contains filtered or unexported fields }
Builder provides struct for resource quotas containing connection to the cluster.
func List ¶
func List(apiClient *clients.Settings, nsname string, options ...metav1.ListOptions) ([]*Builder, error)
List returns resource quota inventory in the given namespace.
func NewBuilder ¶
NewBuilder creates a new resource quota builder.
func (*Builder) WithQuotaSpec ¶
func (builder *Builder) WithQuotaSpec(quotaSpec corev1.ResourceQuotaSpec) *Builder
WithQuotaSpec sets the resource quota spec.
Click to show internal directories.
Click to hide internal directories.