Documentation ¶
Index ¶
- func AssetBinPath(name string) string
- func CreateObjects(objects []client.Object) error
- func DeleteObjects(objects []client.Object) error
- func GetChangedObjects(changes []Change) ([]client.Object, error)
- func GetClient() client.Client
- func GetScheme() *runtime.Scheme
- func ProjectDir() string
- func RunSpecsInEnvironment(t *testing.T, desc string)
- type Change
- type DelegatingClient
- type Environment
- func (e *Environment) GetClient() client.Client
- func (e *Environment) GetConfig() *rest.Config
- func (e *Environment) GetScheme() *runtime.Scheme
- func (e *Environment) InstallCRDs(options envtest.CRDInstallOptions) ([]client.Object, error)
- func (e *Environment) NewManager() (*Manager, error)
- func (e *Environment) Start() (err error)
- func (e *Environment) Stop() error
- type EventData
- type Manager
- type Recorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssetBinPath ¶ added in v0.3.0
func CreateObjects ¶ added in v0.3.0
func DeleteObjects ¶ added in v0.3.0
func GetChangedObjects ¶ added in v0.3.0
func ProjectDir ¶ added in v0.3.0
func ProjectDir() string
func RunSpecsInEnvironment ¶ added in v0.3.0
Types ¶
type Change ¶ added in v0.3.0
type Change struct { schema.GroupVersionKind types.NamespacedName Type string }
func GetChanges ¶ added in v0.3.0
func GetChanges(c interface{}) []Change
type DelegatingClient ¶ added in v1.0.0
type DelegatingClient struct { client.Reader client.StatusClient client.Writer // contains filtered or unexported fields }
func (*DelegatingClient) RESTMapper ¶ added in v1.0.0
func (d *DelegatingClient) RESTMapper() meta.RESTMapper
RESTMapper returns the rest mapper this client is using.
func (*DelegatingClient) Scheme ¶ added in v1.0.0
func (d *DelegatingClient) Scheme() *runtime.Scheme
Scheme returns the scheme this client is using.
type Environment ¶ added in v0.3.0
type Environment struct { ControlPlane *envtest.ControlPlane CRDInstallOptions envtest.CRDInstallOptions // contains filtered or unexported fields }
var Env *Environment
Env is a global environment for testing. nolint: gochecknoglobals
func (*Environment) GetClient ¶ added in v0.3.0
func (e *Environment) GetClient() client.Client
func (*Environment) GetConfig ¶ added in v0.3.0
func (e *Environment) GetConfig() *rest.Config
func (*Environment) GetScheme ¶ added in v0.3.0
func (e *Environment) GetScheme() *runtime.Scheme
func (*Environment) InstallCRDs ¶ added in v1.0.0
func (e *Environment) InstallCRDs(options envtest.CRDInstallOptions) ([]client.Object, error)
func (*Environment) NewManager ¶ added in v0.3.0
func (e *Environment) NewManager() (*Manager, error)
func (*Environment) Start ¶ added in v0.3.0
func (e *Environment) Start() (err error)
func (*Environment) Stop ¶ added in v0.3.0
func (e *Environment) Stop() error
type Manager ¶ added in v0.3.0
func NewManager ¶ added in v0.3.0
func (*Manager) Initialize ¶ added in v0.3.0
func (*Manager) WaitForEvent ¶ added in v0.3.6
Click to show internal directories.
Click to hide internal directories.