Documentation ¶
Index ¶
- func Modify(ua *toolchainv1alpha1.UserAccount, modifiers ...UaModifier)
- func NewUserAccountFromMur(mur *toolchainv1alpha1.MasterUserRecord, modifiers ...UaModifier) *toolchainv1alpha1.UserAccount
- type Assertion
- func (a *Assertion) DoesNotExist() *Assertion
- func (a *Assertion) Exists() *Assertion
- func (a *Assertion) Get() *toolchainv1alpha1.UserAccount
- func (a *Assertion) HasAnnotationWithValue(key, value string) *Assertion
- func (a *Assertion) HasConditions(expected ...toolchainv1alpha1.Condition) *Assertion
- func (a *Assertion) HasFinalizer(finalizer string) *Assertion
- func (a *Assertion) HasLabelWithValue(key, value string) *Assertion
- func (a *Assertion) HasNoConditions() *Assertion
- func (a *Assertion) HasNoFinalizer() *Assertion
- func (a *Assertion) HasSpec(spec toolchainv1alpha1.UserAccountSpec) *Assertion
- func (a *Assertion) MatchMasterUserRecord(mur *toolchainv1alpha1.MasterUserRecord) *Assertion
- type UaModifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Modify ¶
func Modify(ua *toolchainv1alpha1.UserAccount, modifiers ...UaModifier)
func NewUserAccountFromMur ¶
func NewUserAccountFromMur(mur *toolchainv1alpha1.MasterUserRecord, modifiers ...UaModifier) *toolchainv1alpha1.UserAccount
Types ¶
type Assertion ¶
type Assertion struct {
// contains filtered or unexported fields
}
func AssertThatUserAccount ¶
func (*Assertion) DoesNotExist ¶
func (*Assertion) Get ¶
func (a *Assertion) Get() *toolchainv1alpha1.UserAccount
func (*Assertion) HasAnnotationWithValue ¶
HasAnnotationWithValue verifies that the UserAccount has an annotation with the given key and value
func (*Assertion) HasConditions ¶
func (a *Assertion) HasConditions(expected ...toolchainv1alpha1.Condition) *Assertion
func (*Assertion) HasFinalizer ¶
func (*Assertion) HasLabelWithValue ¶
HasLabelWithValue verifies that the UserAccount has a label with the given key and value
func (*Assertion) HasNoConditions ¶
func (*Assertion) HasNoFinalizer ¶
func (*Assertion) HasSpec ¶
func (a *Assertion) HasSpec(spec toolchainv1alpha1.UserAccountSpec) *Assertion
func (*Assertion) MatchMasterUserRecord ¶
func (a *Assertion) MatchMasterUserRecord(mur *toolchainv1alpha1.MasterUserRecord) *Assertion
type UaModifier ¶
type UaModifier func(ua *toolchainv1alpha1.UserAccount)
func DeletedUa ¶
func DeletedUa() UaModifier
DeletedUa creates a UaModifier to set the deletion timestamp on the UserAccount
func DisabledUa ¶
func DisabledUa(disabled bool) UaModifier
DisabledUa creates a UaModifier to change the disabled spec value
func ResourceVersion ¶
func ResourceVersion(resVer string) UaModifier
func StatusCondition ¶
func StatusCondition(con toolchainv1alpha1.Condition) UaModifier
func WithFinalizer ¶
func WithFinalizer() UaModifier
WithFinalizer creates a UaModifier to add an finalizer on the UserAccount
Click to show internal directories.
Click to hide internal directories.