testing

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterActions

func FilterActions(fake *testing.Fake, verb string, resources ...string) []testing.Action

FilterActions returns the actions which satisfy the passed verb and optionally the resource and subresource name.

func PrependGenerateNameCreateReactor

func PrependGenerateNameCreateReactor(fake *testing.Fake, resourceName string)

PrependGenerateNameCreateReactor prepends a reactor to the specified resource that generates a name starting from the meta.generateName field.

Types

type PutAction

type PutAction[T any] interface {
	testing.Action
	GetName() string
	GetOptions() T
}

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

Jump to

Keyboard shortcuts

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