clients

package
v0.0.0-...-1be12d6 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 91 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetScheme

func SetScheme(crScheme *runtime.Scheme) error

SetScheme returns mutated apiClient's scheme.

Types

type Settings

Settings provides the struct to talk with relevant API.

func GetTestClients

func GetTestClients(tcp TestClientParams) *Settings

GetTestClients returns a fake clientset for testing.

func New

func New(kubeconfig string) *Settings

New returns a *Settings with the given kubeconfig.

func (*Settings) GetAPIClient

func (settings *Settings) GetAPIClient() (*Settings, error)

GetAPIClient implements the cluster.APIClientGetter interface.

type TestClientParams

type TestClientParams struct {
	K8sMockObjects []runtime.Object
	GVK            []schema.GroupVersionKind
}

TestClientParams provides the struct to store the parameters for the test client.

Jump to

Keyboard shortcuts

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