mocks

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	CtrlClientObjects    []runtime.Object
	KubeClientObjects    []runtime.Object
	DynamicClientObjects []runtime.Object
	StorageInstance      templates.Client
	// contains filtered or unexported fields
}

Configuration provides a way to mock clients.

func (*Configuration) Client

func (cfg *Configuration) Client() client.Client

func (*Configuration) DynamicClient

func (cfg *Configuration) DynamicClient() dynamic.Interface

DynamicClient returns kubernetes dynamic client. It's used to work with CRDs for which we don't have go types like ClusterIssuer.

func (*Configuration) KubernetesClient

func (cfg *Configuration) KubernetesClient() kubernetes.Interface

KubernetesClient returns kubernetes typed client. It's used to work with standard kubernetes types.

func (*Configuration) Storage

func (cfg *Configuration) Storage() templates.Client

Jump to

Keyboard shortcuts

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