Documentation ¶
Index ¶
- func NewNSTemplateSet(name string, options ...Option) *toolchainv1alpha1.NSTemplateSet
- func NewTierTemplateName(tier, typeName, revision string) string
- func Provisioned() toolchainv1alpha1.Condition
- func Provisioning() toolchainv1alpha1.Condition
- func SpaceRole(templateRef string, usernames ...string) toolchainv1alpha1.NSTemplateSetSpaceRole
- func Terminating() toolchainv1alpha1.Condition
- func UnableToProvision(msg string) toolchainv1alpha1.Condition
- func UnableToProvisionClusterResources(msg string) toolchainv1alpha1.Condition
- func UnableToProvisionNamespace(msg string) toolchainv1alpha1.Condition
- func UnableToTerminate(msg string) toolchainv1alpha1.Condition
- func UpdateFailed(msg string) toolchainv1alpha1.Condition
- func Updating() toolchainv1alpha1.Condition
- type Assertion
- func (a *Assertion) DoesNotExist() *Assertion
- func (a *Assertion) DoesNotHaveAnnotation(key string) *Assertion
- func (a *Assertion) DoesNotHaveFinalizer() *Assertion
- func (a *Assertion) Exists() *Assertion
- func (a *Assertion) Get() *toolchainv1alpha1.NSTemplateSet
- func (a *Assertion) HasAnnotationWithValue(key, value string) *Assertion
- func (a *Assertion) HasClusterResourcesNil() *Assertion
- func (a *Assertion) HasClusterResourcesTemplateRef(expected string) *Assertion
- func (a *Assertion) HasConditions(expected ...toolchainv1alpha1.Condition) *Assertion
- func (a *Assertion) HasDeletionTimestamp() *Assertion
- func (a *Assertion) HasFinalizer() *Assertion
- func (a *Assertion) HasNamespaceTemplateRefs(templateRefs ...string) *Assertion
- func (a *Assertion) HasNoConditions() *Assertion
- func (a *Assertion) HasNoOwnerReferences() *Assertion
- func (a *Assertion) HasSpaceRoles(expectedSpaceRoles ...toolchainv1alpha1.NSTemplateSetSpaceRole) *Assertion
- func (a *Assertion) HasSpecNamespaces(types ...string) *Assertion
- func (a *Assertion) HasTierName(tierName string) *Assertion
- type Option
- func WithAnnotation(key, value string) Option
- func WithDeletionTimestamp(ts time.Time) Option
- func WithFinalizer() Option
- func WithNotReadyCondition(reason, message string) Option
- func WithReadyCondition() Option
- func WithReferencesFor(nstemplateTier *toolchainv1alpha1.NSTemplateTier, opts ...TierOption) Option
- type TierOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNSTemplateSet ¶
func NewNSTemplateSet(name string, options ...Option) *toolchainv1alpha1.NSTemplateSet
func NewTierTemplateName ¶
NewTierTemplateName: a utility func to generate a TierTemplate name, based on the given tier, type and revision. note: the resource name must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character
func Provisioned ¶
func Provisioned() toolchainv1alpha1.Condition
func Provisioning ¶
func Provisioning() toolchainv1alpha1.Condition
func SpaceRole ¶
func SpaceRole(templateRef string, usernames ...string) toolchainv1alpha1.NSTemplateSetSpaceRole
func Terminating ¶
func Terminating() toolchainv1alpha1.Condition
func UnableToProvision ¶
func UnableToProvision(msg string) toolchainv1alpha1.Condition
func UnableToProvisionClusterResources ¶
func UnableToProvisionClusterResources(msg string) toolchainv1alpha1.Condition
func UnableToProvisionNamespace ¶
func UnableToProvisionNamespace(msg string) toolchainv1alpha1.Condition
func UnableToTerminate ¶
func UnableToTerminate(msg string) toolchainv1alpha1.Condition
func UpdateFailed ¶
func UpdateFailed(msg string) toolchainv1alpha1.Condition
func Updating ¶
func Updating() toolchainv1alpha1.Condition
Types ¶
type Assertion ¶
type Assertion struct {
// contains filtered or unexported fields
}
func AssertThatNSTemplateSet ¶
func (*Assertion) DoesNotExist ¶
func (*Assertion) DoesNotHaveAnnotation ¶
func (*Assertion) DoesNotHaveFinalizer ¶
func (*Assertion) Get ¶
func (a *Assertion) Get() *toolchainv1alpha1.NSTemplateSet
func (*Assertion) HasAnnotationWithValue ¶
func (*Assertion) HasClusterResourcesNil ¶
func (*Assertion) HasClusterResourcesTemplateRef ¶
func (*Assertion) HasConditions ¶
func (a *Assertion) HasConditions(expected ...toolchainv1alpha1.Condition) *Assertion
func (*Assertion) HasDeletionTimestamp ¶
func (*Assertion) HasFinalizer ¶
func (*Assertion) HasNamespaceTemplateRefs ¶
func (*Assertion) HasNoConditions ¶
func (*Assertion) HasNoOwnerReferences ¶
func (*Assertion) HasSpaceRoles ¶
func (a *Assertion) HasSpaceRoles(expectedSpaceRoles ...toolchainv1alpha1.NSTemplateSetSpaceRole) *Assertion
func (*Assertion) HasSpecNamespaces ¶
func (*Assertion) HasTierName ¶
type Option ¶
type Option func(*toolchainv1alpha1.NSTemplateSet)
func WithAnnotation ¶
func WithDeletionTimestamp ¶
func WithFinalizer ¶
func WithFinalizer() Option
func WithNotReadyCondition ¶
func WithReadyCondition ¶
func WithReadyCondition() Option
func WithReferencesFor ¶
func WithReferencesFor(nstemplateTier *toolchainv1alpha1.NSTemplateTier, opts ...TierOption) Option
type TierOption ¶
type TierOption func(*toolchainv1alpha1.NSTemplateTier, *toolchainv1alpha1.NSTemplateSet)
func WithSpaceRole ¶
func WithSpaceRole(role, username string) TierOption
Click to show internal directories.
Click to hide internal directories.