clients

package
v4.2.0-alpha.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder can create a variety of kubernetes client interface with its embedded rest.Config.

func NewBuilder

func NewBuilder(kubeconfig string) (*Builder, error)

NewBuilder returns a *ClientBuilder with the given kubeconfig.

func (*Builder) APIExtClientOrDie

func (cb *Builder) APIExtClientOrDie(name string) apiext.Interface

APIExtClientOrDie returns the kubernetes client interface for extended kubernetes objects.

func (*Builder) ConfigClientOrDie

func (cb *Builder) ConfigClientOrDie(name string) configclientset.Interface

ConfigClientOrDie returns the kubernetes client interface for security related kubernetes objects such as pod security policy, security context.

func (*Builder) KubeClient

func (cb *Builder) KubeClient(name string) (kubernetes.Interface, error)

KubeClient is used in onceFrom mode where we can or cannot have a cluster ready based on the configuration provided

func (*Builder) KubeClientOrDie

func (cb *Builder) KubeClientOrDie(name string) kubernetes.Interface

KubeClientOrDie returns the kubernetes client interface for general kubernetes objects.

func (*Builder) MachineConfigClient

func (cb *Builder) MachineConfigClient(name string) (mcfgclientset.Interface, error)

MachineConfigClient is used in onceFrom mode where we can or cannot have a cluster ready based on the configuration provided

func (*Builder) MachineConfigClientOrDie

func (cb *Builder) MachineConfigClientOrDie(name string) mcfgclientset.Interface

MachineConfigClientOrDie returns the kubernetes client interface for machine config.

Jump to

Keyboard shortcuts

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