builders

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcrqBuilder

type AcrqBuilder struct {
	// contains filtered or unexported fields
}

AcrqBuilder is a builder for creating a ApplicationAwareClusterResourceQuota.

func NewAcrqBuilder

func NewAcrqBuilder() *AcrqBuilder

NewQuotaBuilder creates a new instance of ApplicationAwareClusterResourceQuota.

func (*AcrqBuilder) Build

Build creates and returns the ApplicationAwareClusterResourceQuota.

func (*AcrqBuilder) WithAnnotationSelector

func (qb *AcrqBuilder) WithAnnotationSelector(annotationSelector map[string]string) *AcrqBuilder

WithNamespace sets the namespace for the ApplicationAwareClusterResourceQuota.

func (*AcrqBuilder) WithLabelSelector

func (qb *AcrqBuilder) WithLabelSelector(selector *v13.LabelSelector) *AcrqBuilder

WithNamespace sets the namespace for the ApplicationAwareClusterResourceQuota.

func (*AcrqBuilder) WithName

func (qb *AcrqBuilder) WithName(name string) *AcrqBuilder

WithName sets the name for the ApplicationAwareClusterResourceQuota.

func (*AcrqBuilder) WithResource

func (qb *AcrqBuilder) WithResource(resourceName v1.ResourceName, val resource.Quantity) *AcrqBuilder

WithRequestsMemory sets requests/limits for the ApplicationAwareClusterResourceQuota.

func (*AcrqBuilder) WithScopes

func (qb *AcrqBuilder) WithScopes(scopes []v1.ResourceQuotaScope) *AcrqBuilder

WithScopes sets scopes for the ApplicationAwareClusterResourceQuota.

func (*AcrqBuilder) WithScopesSelector

func (qb *AcrqBuilder) WithScopesSelector(scopeSelector *v1.ScopeSelector) *AcrqBuilder

WithScopesSelector sets scopeSelector for the ApplicationAwareClusterResourceQuota.

type ArqBuilder

type ArqBuilder struct {
	// contains filtered or unexported fields
}

ArqBuilder is a builder for creating a ApplicationAwareResourceQuota.

func NewArqBuilder

func NewArqBuilder() *ArqBuilder

NewArqBuilder creates a new instance of ArqBuilder.

func (*ArqBuilder) Build

Build creates and returns the ApplicationAwareResourceQuota.

func (*ArqBuilder) WithName

func (qb *ArqBuilder) WithName(name string) *ArqBuilder

WithName sets the name for the ApplicationAwareResourceQuota.

func (*ArqBuilder) WithNamespace

func (qb *ArqBuilder) WithNamespace(namespace string) *ArqBuilder

WithNamespace sets the namespace for the ApplicationAwareResourceQuota.

func (*ArqBuilder) WithResource

func (qb *ArqBuilder) WithResource(resourceName v1.ResourceName, val resource.Quantity) *ArqBuilder

WithRequestsMemory sets requests/limits for the ApplicationAwareResourceQuota.

func (*ArqBuilder) WithScopes

func (qb *ArqBuilder) WithScopes(scopes []v1.ResourceQuotaScope) *ArqBuilder

WithScopes sets scopes for the ApplicationAwareResourceQuota.

func (*ArqBuilder) WithSyncStatusHardEmptyStatusUsed

func (qb *ArqBuilder) WithSyncStatusHardEmptyStatusUsed() *ArqBuilder

WithName sets the name for the ApplicationAwareResourceQuota.

type QuotaBuilder

type QuotaBuilder struct {
	// contains filtered or unexported fields
}

QuotaBuilder is a builder for creating a ResourceQuota.

func NewQuotaBuilder

func NewQuotaBuilder() *QuotaBuilder

NewQuotaBuilder creates a new instance of QuotaBuilder.

func (*QuotaBuilder) Build

func (qb *QuotaBuilder) Build() *v1.ResourceQuota

Build creates and returns the ResourceQuota.

func (*QuotaBuilder) WithLabel

func (qb *QuotaBuilder) WithLabel(key string, val string) *QuotaBuilder

func (*QuotaBuilder) WithName

func (qb *QuotaBuilder) WithName(name string) *QuotaBuilder

WithName sets the name for the ResourceQuota.

func (*QuotaBuilder) WithNamespace

func (qb *QuotaBuilder) WithNamespace(namespace string) *QuotaBuilder

WithNamespace sets the namespace for the ResourceQuota.

func (*QuotaBuilder) WithResource

func (qb *QuotaBuilder) WithResource(resourceName v1.ResourceName, requestMemory resource.Quantity) *QuotaBuilder

WithRequestsMemory sets requests/limits for the ResourceQuota.

func (*QuotaBuilder) WithSyncStatusHard

func (qb *QuotaBuilder) WithSyncStatusHard() *QuotaBuilder

WithName sets the name for the ResourceQuota.

func (*QuotaBuilder) WithZeroUsage

func (qb *QuotaBuilder) WithZeroUsage() *QuotaBuilder

WithName sets the name for the ResourceQuota.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL