Documentation ¶
Overview ¶
Package controller is used to provide the core functionalities of machine-controller-manager
Index ¶
- type ClientBuilder
- type SimpleClientBuilder
- func (b SimpleClientBuilder) Client(name string) (clientset.Interface, error)
- func (b SimpleClientBuilder) ClientOrDie(name string) clientset.Interface
- func (b SimpleClientBuilder) Config(name string) (*restclient.Config, error)
- func (b SimpleClientBuilder) 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 returns a new restclient.Config with the given user agent name. Config(name string) (*restclient.Config, error) // ConfigOrDie return a new restclient.Config with the given user agent // name, or logs a fatal error. ConfigOrDie(name string) *restclient.Config // Client returns a new clientset.Interface with the given user agent // name. Client(name string) (clientset.Interface, error) // ClientOrDie returns a new clientset.Interface with the given user agent // name or logs a fatal error, destroying the computer and killing the // operator and programmer. ClientOrDie(name string) clientset.Interface }
ClientBuilder allows you to get clients and configs for controllers
type SimpleClientBuilder ¶
type SimpleClientBuilder struct { // ClientConfig is a skeleton config to clone and use as the basis for each controller client ClientConfig *restclient.Config }
SimpleClientBuilder returns a fixed client with different user agents
func (SimpleClientBuilder) Client ¶
func (b SimpleClientBuilder) Client(name string) (clientset.Interface, error)
Client returns a new clientset.Interface with the given user agent name.
func (SimpleClientBuilder) ClientOrDie ¶
func (b SimpleClientBuilder) ClientOrDie(name string) clientset.Interface
ClientOrDie returns a new clientset.Interface with the given user agent name or logs a fatal error, destroying the computer and killing the operator and programmer.
func (SimpleClientBuilder) Config ¶
func (b SimpleClientBuilder) Config(name string) (*restclient.Config, error)
Config returns a new restclient.Config with the given user agent name.
func (SimpleClientBuilder) ConfigOrDie ¶
func (b SimpleClientBuilder) ConfigOrDie(name string) *restclient.Config
ConfigOrDie return a new restclient.Config with the given user agent name, or logs a fatal error.