Documentation ¶
Index ¶
- func FilterActions(fake *testing.Fake, verb string, resources ...string) []testing.Action
- func PrependGenerateNameCreateReactor(fake *testing.Fake, resourceName string)
- type PutAction
- type PutActionImpl
- func NewPutAction[T any](resource schema.GroupVersionResource, namespace, name string, options T) PutActionImpl[T]
- func NewPutSubresourceAction[T any](resource schema.GroupVersionResource, namespace, subresource, name string, ...) PutActionImpl[T]
- func NewRootPutAction[T any](resource schema.GroupVersionResource, name string, options T) PutActionImpl[T]
- func NewRootPutSubresourceAction[T any](resource schema.GroupVersionResource, subresource, name string, options T) PutActionImpl[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterActions ¶
FilterActions returns the actions which satisfy the passed verb and optionally the resource and subresource name.
func PrependGenerateNameCreateReactor ¶
PrependGenerateNameCreateReactor prepends a reactor to the specified resource that generates a name starting from the meta.generateName field.
Types ¶
type PutActionImpl ¶
type PutActionImpl[T any] struct { testing.ActionImpl Name string Options T }
func NewPutAction ¶
func NewPutAction[T any](resource schema.GroupVersionResource, namespace, name string, options T) PutActionImpl[T]
func NewPutSubresourceAction ¶
func NewPutSubresourceAction[T any](resource schema.GroupVersionResource, namespace, subresource, name string, options T) PutActionImpl[T]
func NewRootPutAction ¶
func NewRootPutAction[T any](resource schema.GroupVersionResource, name string, options T) PutActionImpl[T]
func NewRootPutSubresourceAction ¶
func NewRootPutSubresourceAction[T any](resource schema.GroupVersionResource, subresource, name string, options T) PutActionImpl[T]
func (PutActionImpl[T]) DeepCopy ¶
func (a PutActionImpl[T]) DeepCopy() testing.Action
func (PutActionImpl[T]) GetName ¶
func (a PutActionImpl[T]) GetName() string
func (PutActionImpl[T]) GetOptions ¶
func (a PutActionImpl[T]) GetOptions() T
Click to show internal directories.
Click to hide internal directories.