client

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: MPL-2.0 Imports: 12 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

	// Stok generated client
	StokClient stokclient.Interface
}

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) stoktyped.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) stoktyped.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.

Jump to

Keyboard shortcuts

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