Documentation ¶
Index ¶
- func GenerateCreateNames(name string, ct int) []string
- func ObjectKeysFromNames(namespace string, names []string) []client.ObjectKey
- func ObjectKeysFromObjectStructSlice[O utilclient.Object[OStruct], S ~[]OStruct, OStruct any](objs S) []client.ObjectKey
- type Expectations
- func (e *Expectations) CreationObserved(ctrlKey, createdKey client.ObjectKey)
- func (e *Expectations) Delete(ctrlKey client.ObjectKey)
- func (e *Expectations) DeletionObserved(ctrlKey, deletedKey client.ObjectKey)
- func (e *Expectations) ExpectCreations(ctrlKey client.ObjectKey, createdKeys []client.ObjectKey)
- func (e *Expectations) ExpectCreationsAndDeletions(ctrlKey client.ObjectKey, createdKeys, deletedKeys []client.ObjectKey)
- func (e *Expectations) ExpectDeletions(ctrlKey client.ObjectKey, deletedKeys []client.ObjectKey)
- func (e *Expectations) Satisfied(ctrlKey client.ObjectKey) bool
- type NewOption
- type NewOptions
- type WithTimeout
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCreateNames ¶
func ObjectKeysFromNames ¶
func ObjectKeysFromObjectStructSlice ¶
func ObjectKeysFromObjectStructSlice[O utilclient.Object[OStruct], S ~[]OStruct, OStruct any](objs S) []client.ObjectKey
Types ¶
type Expectations ¶
type Expectations struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...NewOption) *Expectations
func (*Expectations) CreationObserved ¶
func (e *Expectations) CreationObserved(ctrlKey, createdKey client.ObjectKey)
func (*Expectations) Delete ¶
func (e *Expectations) Delete(ctrlKey client.ObjectKey)
func (*Expectations) DeletionObserved ¶
func (e *Expectations) DeletionObserved(ctrlKey, deletedKey client.ObjectKey)
func (*Expectations) ExpectCreations ¶
func (e *Expectations) ExpectCreations(ctrlKey client.ObjectKey, createdKeys []client.ObjectKey)
func (*Expectations) ExpectCreationsAndDeletions ¶
func (e *Expectations) ExpectCreationsAndDeletions(ctrlKey client.ObjectKey, createdKeys, deletedKeys []client.ObjectKey)
func (*Expectations) ExpectDeletions ¶
func (e *Expectations) ExpectDeletions(ctrlKey client.ObjectKey, deletedKeys []client.ObjectKey)
type NewOption ¶
type NewOption interface {
ApplyToNew(o *NewOptions)
}
type NewOptions ¶
func (*NewOptions) ApplyOptions ¶
func (o *NewOptions) ApplyOptions(opts []NewOption)
func (*NewOptions) ApplyToNew ¶
func (o *NewOptions) ApplyToNew(o2 *NewOptions)
type WithTimeout ¶
func (WithTimeout) ApplyToNew ¶
func (w WithTimeout) ApplyToNew(o *NewOptions)
Click to show internal directories.
Click to hide internal directories.