client

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// Client config
	Config *rest.Config

	// Kubernetes built-in client
	KubeClient kubernetes.Interface

	// etok generated client
	EtokClient etokclient.Interface

	// Controller-runtime client
	RuntimeClient runtimeclient.Client
}

Client is a collection of kubernetes clients along with some convenience methods.

func (*Client) ConfigMapsClient

func (c *Client) ConfigMapsClient(namespace string) typedv1.ConfigMapInterface

func (*Client) PodsClient

func (c *Client) PodsClient(namespace string) typedv1.PodInterface

func (*Client) RunsClient

func (c *Client) RunsClient(namespace string) etoktyped.RunInterface

func (*Client) SecretsClient

func (c *Client) SecretsClient(namespace string) typedv1.SecretInterface

func (*Client) ServiceAccountsClient

func (c *Client) ServiceAccountsClient(namespace string) typedv1.ServiceAccountInterface

func (*Client) WorkspacesClient

func (c *Client) WorkspacesClient(namespace string) etoktyped.WorkspaceInterface

type ClientCreator

type ClientCreator interface {
	Create(string) (*Client, error)
}

ClientCreator impls are objs for deferred creation of kubernetes clients

func NewClientCreator

func NewClientCreator() ClientCreator

func NewFakeClientCreator

func NewFakeClientCreator(objs ...runtime.Object) ClientCreator

type FakeClientCreator

type FakeClientCreator struct {
	// contains filtered or unexported fields
}

Implements ClientCreator

func (*FakeClientCreator) Create

func (f *FakeClientCreator) Create(kubeCtx string) (*Client, error)

func (*FakeClientCreator) PrependReactor

func (f *FakeClientCreator) PrependReactor(verb, resource string, reaction testing.ReactionFunc)

Add a reactor to the list of reactors to be prepended.

type RuntimeClient added in v0.0.6

type RuntimeClient struct {
	// K8s client config
	Config *rest.Config

	// Controller-runtime client
	runtimeclient.Client
}

RuntimeClient is a collection of kubernetes clients along with some convenience methods.

type RuntimeClientCreator added in v0.0.6

type RuntimeClientCreator interface {
	CreateRuntimeClient(string) (*Client, error)
}

RuntimeClientCreator impls are objs for deferred creation of kubernetes clients

func NewRuntimeClientCreator added in v0.0.6

func NewRuntimeClientCreator() RuntimeClientCreator

Jump to

Keyboard shortcuts

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