Documentation ¶
Index ¶
- type ClientBuilder
- type SimpleControllerClientBuilder
- func (b SimpleControllerClientBuilder) Client(name string) (clientset.Interface, error)
- func (b SimpleControllerClientBuilder) ClientGoClient(name string) (clientgoclientset.Interface, error)
- func (b SimpleControllerClientBuilder) ClientGoClientOrDie(name string) clientgoclientset.Interface
- func (b SimpleControllerClientBuilder) ClientOrDie(name string) clientset.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) (clientset.Interface, error) ClientOrDie(name string) clientset.Interface ClientGoClient(name string) (clientgoclientset.Interface, error) ClientGoClientOrDie(name string) clientgoclientset.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) (clientset.Interface, error)
Client builds a new client for clientBuilder
func (SimpleControllerClientBuilder) ClientGoClient ¶
func (b SimpleControllerClientBuilder) ClientGoClient(name string) (clientgoclientset.Interface, error)
ClientGoClient builds a go client
func (SimpleControllerClientBuilder) ClientGoClientOrDie ¶
func (b SimpleControllerClientBuilder) ClientGoClientOrDie(name string) clientgoclientset.Interface
ClientGoClientOrDie builds a go client or die's
func (SimpleControllerClientBuilder) ClientOrDie ¶
func (b SimpleControllerClientBuilder) ClientOrDie(name string) clientset.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.