useraccount

package
v0.0.0-...-34f3205 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Modify

func Modify(ua *toolchainv1alpha1.UserAccount, modifiers ...UaModifier)

Types

type Assertion

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

func AssertThatUserAccount

func AssertThatUserAccount(t *testing.T, name string, client client.Client) *Assertion

func (*Assertion) DoesNotExist

func (a *Assertion) DoesNotExist() *Assertion

func (*Assertion) Exists

func (a *Assertion) Exists() *Assertion

func (*Assertion) Get

func (*Assertion) HasAnnotationWithValue

func (a *Assertion) HasAnnotationWithValue(key, value string) *Assertion

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 (a *Assertion) HasFinalizer(finalizer string) *Assertion

func (*Assertion) HasLabelWithValue

func (a *Assertion) HasLabelWithValue(key, value string) *Assertion

HasLabelWithValue verifies that the UserAccount has a label with the given key and value

func (*Assertion) HasNoConditions

func (a *Assertion) HasNoConditions() *Assertion

func (*Assertion) HasNoFinalizer

func (a *Assertion) HasNoFinalizer() *Assertion

func (*Assertion) HasSpec

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

Jump to

Keyboard shortcuts

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