Documentation ¶
Index ¶
- func NewSpace(namespace, name string, options ...Option) *toolchainv1alpha1.Space
- func NewSpaceWithGeneratedName(namespace, prefix string, options ...Option) *toolchainv1alpha1.Space
- func NewSpaces(size int, namespace, nameFmt string, options ...Option) []runtime.Object
- func Provisioning() toolchainv1alpha1.Condition
- func ProvisioningFailed(msg string) toolchainv1alpha1.Condition
- func ProvisioningPending(msg string) toolchainv1alpha1.Condition
- func Ready() toolchainv1alpha1.Condition
- func Retargeting() toolchainv1alpha1.Condition
- func RetargetingFailed(msg string) toolchainv1alpha1.Condition
- func Terminating() toolchainv1alpha1.Condition
- func TerminatingFailed(msg string) toolchainv1alpha1.Condition
- func UnableToCreateNSTemplateSet(msg string) toolchainv1alpha1.Condition
- func UnableToUpdateNSTemplateSet(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) DoesNotHaveLabel(key string) *Assertion
- func (a *Assertion) Exists() *Assertion
- func (a *Assertion) Get() *toolchainv1alpha1.Space
- func (a *Assertion) HasAnnotationWithValue(key, value string) *Assertion
- func (a *Assertion) HasConditions(expected ...toolchainv1alpha1.Condition) *Assertion
- func (a *Assertion) HasDisableInheritance(disableInheritance bool) *Assertion
- func (a *Assertion) HasFinalizer() *Assertion
- func (a *Assertion) HasLabelWithValue(key, value string) *Assertion
- func (a *Assertion) HasMatchingTierLabelForTier(tier *toolchainv1alpha1.NSTemplateTier) *Assertion
- func (a *Assertion) HasNoConditions() *Assertion
- func (a *Assertion) HasNoFinalizers() *Assertion
- func (a *Assertion) HasNoSpecTargetCluster() *Assertion
- func (a *Assertion) HasNoStatusTargetCluster() *Assertion
- func (a *Assertion) HasParentSpace(parentSpaceName string) *Assertion
- func (a *Assertion) HasSpecTargetCluster(targetCluster string) *Assertion
- func (a *Assertion) HasSpecTargetClusterRoles(roles []string) *Assertion
- func (a *Assertion) HasStateLabel(stateValue string) *Assertion
- func (a *Assertion) HasStatusProvisionedNamespaces(provisionedNamespaces []toolchainv1alpha1.SpaceNamespace) *Assertion
- func (a *Assertion) HasStatusTargetCluster(targetCluster string) *Assertion
- func (a *Assertion) HasTier(tierName string) *Assertion
- type Option
- func CreatedBefore(before time.Duration) Option
- func WithAnnotation(key, value string) Option
- func WithCondition(c toolchainv1alpha1.Condition) Option
- func WithCreationTimestamp(t time.Time) Option
- func WithCreatorLabel(creator string) Option
- func WithDefaultTier() Option
- func WithDeletionTimestamp() Option
- func WithDisableInheritance(disableInheritance bool) Option
- func WithFinalizer() Option
- func WithGenerateName(namePrefix string) Option
- func WithLabel(key, value string) Option
- func WithName(name string) Option
- func WithSpecParentSpace(name string) Option
- func WithSpecTargetCluster(name string) Option
- func WithSpecTargetClusterRoles(roles []string) Option
- func WithStateLabel(stateValue string) Option
- func WithStatusProvisionedNamespaces(provisionedNamespaces []toolchainv1alpha1.SpaceNamespace) Option
- func WithStatusTargetCluster(name string) Option
- func WithTierHashLabelFor(tier *toolchainv1alpha1.NSTemplateTier) Option
- func WithTierName(tierName string) Option
- func WithTierNameAndHashLabelFor(tier *toolchainv1alpha1.NSTemplateTier) Option
- func WithoutSpecTargetCluster() Option
- type SpacesAssertion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSpaceWithGeneratedName ¶
func NewSpaceWithGeneratedName(namespace, prefix string, options ...Option) *toolchainv1alpha1.Space
func Provisioning ¶
func Provisioning() toolchainv1alpha1.Condition
func ProvisioningFailed ¶
func ProvisioningFailed(msg string) toolchainv1alpha1.Condition
func ProvisioningPending ¶
func ProvisioningPending(msg string) toolchainv1alpha1.Condition
func Ready ¶
func Ready() toolchainv1alpha1.Condition
func Retargeting ¶
func Retargeting() toolchainv1alpha1.Condition
func RetargetingFailed ¶
func RetargetingFailed(msg string) toolchainv1alpha1.Condition
func Terminating ¶
func Terminating() toolchainv1alpha1.Condition
func TerminatingFailed ¶
func TerminatingFailed(msg string) toolchainv1alpha1.Condition
func UnableToCreateNSTemplateSet ¶
func UnableToCreateNSTemplateSet(msg string) toolchainv1alpha1.Condition
func UnableToUpdateNSTemplateSet ¶
func UnableToUpdateNSTemplateSet(msg string) toolchainv1alpha1.Condition
func Updating ¶
func Updating() toolchainv1alpha1.Condition
Types ¶
type Assertion ¶
type Assertion struct {
// contains filtered or unexported fields
}
func AssertThatSpace ¶
AssertThatSpace helper func to begin with the assertions on a Space
func AssertThatSubSpace ¶
func AssertThatSubSpace(t test.T, client runtimeclient.Client, spaceRequest *toolchainv1alpha1.SpaceRequest, parentSpace *toolchainv1alpha1.Space) *Assertion
func (*Assertion) DoesNotExist ¶
func (*Assertion) DoesNotHaveAnnotation ¶
func (*Assertion) DoesNotHaveLabel ¶
func (*Assertion) Get ¶
func (a *Assertion) Get() *toolchainv1alpha1.Space
func (*Assertion) HasAnnotationWithValue ¶
func (*Assertion) HasConditions ¶
func (a *Assertion) HasConditions(expected ...toolchainv1alpha1.Condition) *Assertion
func (*Assertion) HasDisableInheritance ¶
func (*Assertion) HasFinalizer ¶
func (*Assertion) HasLabelWithValue ¶
func (*Assertion) HasMatchingTierLabelForTier ¶
func (a *Assertion) HasMatchingTierLabelForTier(tier *toolchainv1alpha1.NSTemplateTier) *Assertion
func (*Assertion) HasNoConditions ¶
func (*Assertion) HasNoFinalizers ¶
func (*Assertion) HasNoSpecTargetCluster ¶
func (*Assertion) HasNoStatusTargetCluster ¶
func (*Assertion) HasParentSpace ¶
func (*Assertion) HasSpecTargetCluster ¶
func (*Assertion) HasSpecTargetClusterRoles ¶
func (*Assertion) HasStateLabel ¶
func (*Assertion) HasStatusProvisionedNamespaces ¶
func (a *Assertion) HasStatusProvisionedNamespaces(provisionedNamespaces []toolchainv1alpha1.SpaceNamespace) *Assertion
func (*Assertion) HasStatusTargetCluster ¶
type Option ¶
type Option func(space *toolchainv1alpha1.Space)
func CreatedBefore ¶
func WithAnnotation ¶
func WithCondition ¶
func WithCondition(c toolchainv1alpha1.Condition) Option
func WithCreationTimestamp ¶
func WithCreatorLabel ¶
func WithDefaultTier ¶
func WithDefaultTier() Option
func WithDeletionTimestamp ¶
func WithDeletionTimestamp() Option
func WithDisableInheritance ¶
func WithFinalizer ¶
func WithFinalizer() Option
func WithGenerateName ¶
func WithSpecParentSpace ¶
func WithSpecTargetCluster ¶
func WithStateLabel ¶
func WithStatusProvisionedNamespaces ¶
func WithStatusProvisionedNamespaces(provisionedNamespaces []toolchainv1alpha1.SpaceNamespace) Option
func WithStatusTargetCluster ¶
func WithTierHashLabelFor ¶
func WithTierHashLabelFor(tier *toolchainv1alpha1.NSTemplateTier) Option
func WithTierName ¶
func WithTierNameAndHashLabelFor ¶
func WithTierNameAndHashLabelFor(tier *toolchainv1alpha1.NSTemplateTier) Option
func WithoutSpecTargetCluster ¶
func WithoutSpecTargetCluster() Option
type SpacesAssertion ¶
type SpacesAssertion struct {
// contains filtered or unexported fields
}
Assertions on multiple Spaces at once
func AssertThatSpaces ¶
func AssertThatSpaces(t test.T, client runtimeclient.Client) *SpacesAssertion
func (*SpacesAssertion) HaveCount ¶
func (a *SpacesAssertion) HaveCount(count int) *SpacesAssertion
Click to show internal directories.
Click to hide internal directories.