test_utils

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyBind = interceptor.Funcs{
	SubResource: func(c client.WithWatch, subResource string) client.SubResourceClient {
		return &FakeSubResourceClient{}
	},
}
View Source
var FailedBindingFuncs = interceptor.Funcs{
	SubResource: func(c client.WithWatch, subResource string) client.SubResourceClient {
		if subResource == "bind" {
			return &FakeSubResourceClient{
				FailAll: true,
				Msg:     "bind",
			}
		}
		return c.SubResource(subResource)
	},
}

Functions

This section is empty.

Types

type FakeSubResourceClient

type FakeSubResourceClient struct {
	FailAll bool
	Msg     string
}

func (*FakeSubResourceClient) Create

func (*FakeSubResourceClient) Get

func (*FakeSubResourceClient) Patch

func (*FakeSubResourceClient) Update

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳