Documentation ¶
Index ¶
- type ClientBuilder
- type SimpleControllerClientBuilder
- func (b SimpleControllerClientBuilder) Client(name string) (kubernetes.Interface, error)
- func (b SimpleControllerClientBuilder) ClientGoClient(name string) (kubernetes.Interface, error)
- func (b SimpleControllerClientBuilder) ClientGoClientOrDie(name string) kubernetes.Interface
- func (b SimpleControllerClientBuilder) ClientOrDie(name string) kubernetes.Interface
- func (b SimpleControllerClientBuilder) Config(name string) (*restclient.Config, error)
- func (b SimpleControllerClientBuilder) ConfigOrDie(name string) *restclient.Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientBuilder ¶
type ClientBuilder interface { Config(name string) (*restclient.Config, error) ConfigOrDie(name string) *restclient.Config Client(name string) (kubernetes.Interface, error) ClientOrDie(name string) kubernetes.Interface ClientGoClient(name string) (kubernetes.Interface, error) ClientGoClientOrDie(name string) kubernetes.Interface }
ClientBuilder allows you to get clients and configs for controllers
type SimpleControllerClientBuilder ¶
type SimpleControllerClientBuilder struct { // ClientConfig is a skeleton config to clone and use as the basis for each controller client ClientConfig *restclient.Config }
SimpleControllerClientBuilder returns a fixed client with different user agents
func (SimpleControllerClientBuilder) Client ¶
func (b SimpleControllerClientBuilder) Client(name string) (kubernetes.Interface, error)
Client builds a new client for clientBuilder
func (SimpleControllerClientBuilder) ClientGoClient ¶
func (b SimpleControllerClientBuilder) ClientGoClient(name string) (kubernetes.Interface, error)
ClientGoClient builds a go client
func (SimpleControllerClientBuilder) ClientGoClientOrDie ¶
func (b SimpleControllerClientBuilder) ClientGoClientOrDie(name string) kubernetes.Interface
ClientGoClientOrDie builds a go client or die's
func (SimpleControllerClientBuilder) ClientOrDie ¶
func (b SimpleControllerClientBuilder) ClientOrDie(name string) kubernetes.Interface
ClientOrDie builds a client or die's
func (SimpleControllerClientBuilder) Config ¶
func (b SimpleControllerClientBuilder) Config(name string) (*restclient.Config, error)
Config lets you configure the client builder
func (SimpleControllerClientBuilder) ConfigOrDie ¶
func (b SimpleControllerClientBuilder) ConfigOrDie(name string) *restclient.Config
ConfigOrDie either configures or die's while configuring
Click to show internal directories.
Click to hide internal directories.