Documentation
¶
Index ¶
- Variables
- func AssetBinPath(name string) string
- func CompareMultiStrings(strs ...string) int
- func MapObjects(input []runtime.Object, fn func(runtime.Object)) []runtime.Object
- func NewEnvironment() testenv.Interface
- func ProjectDir() string
- func RestoreNamespace(m *Map, input []runtime.Object) []runtime.Object
- func RunSpecs(t *testing.T, desc string)
- func SetRandomNamespace(m *Map, input []runtime.Object) []runtime.Object
- func SortObjects(objects []runtime.Object)
- type Client
- func (c *Client) Create(ctx context.Context, obj runtime.Object, opts ...client.CreateOptionFunc) error
- func (c *Client) GetChangedObjects() []runtime.Object
- func (c *Client) Patch(ctx context.Context, obj runtime.Object, patch client.Patch, ...) error
- func (c *Client) Reset()
- func (c *Client) Update(ctx context.Context, obj runtime.Object, opts ...client.UpdateOptionFunc) error
- type Map
- type ObjectSlice
Constants ¶
This section is empty.
Variables ¶
View Source
var Scheme = runtime.NewScheme()
Scheme stores necessary schemes for testing. nolint: gochecknoglobals
Functions ¶
func AssetBinPath ¶ added in v0.2.0
func CompareMultiStrings ¶ added in v0.2.0
func MapObjects ¶ added in v0.2.0
func NewEnvironment ¶ added in v0.2.0
func ProjectDir ¶ added in v0.2.0
func ProjectDir() string
func RestoreNamespace ¶ added in v0.2.0
func SetRandomNamespace ¶ added in v0.2.0
func SortObjects ¶ added in v0.2.0
Types ¶
type Client ¶ added in v0.2.0
func (*Client) GetChangedObjects ¶ added in v0.2.0
type ObjectSlice ¶ added in v0.2.0
func (ObjectSlice) Len ¶ added in v0.2.0
func (o ObjectSlice) Len() int
func (ObjectSlice) Less ¶ added in v0.2.0
func (o ObjectSlice) Less(i, j int) bool
func (ObjectSlice) Swap ¶ added in v0.2.0
func (o ObjectSlice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.