Documentation ¶
Index ¶
- type ControllerClientBuilder
- type SimpleControllerClientBuilder
- func (b SimpleControllerClientBuilder) Client(name string) (clientset.Interface, error)
- 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
- func (b SimpleControllerClientBuilder) DiscoveryClient(name string) (discovery.DiscoveryInterface, error)
- func (b SimpleControllerClientBuilder) DiscoveryClientOrDie(name string) discovery.DiscoveryInterface
- func (b SimpleControllerClientBuilder) FireflyClient(name string) (fireflyversioned.Interface, error)
- func (b SimpleControllerClientBuilder) FireflyClientOrDie(name string) fireflyversioned.Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerClientBuilder ¶
type ControllerClientBuilder interface { Config(name string) (*restclient.Config, error) ConfigOrDie(name string) *restclient.Config Client(name string) (clientset.Interface, error) ClientOrDie(name string) clientset.Interface DiscoveryClient(name string) (discovery.DiscoveryInterface, error) DiscoveryClientOrDie(name string) discovery.DiscoveryInterface FireflyClient(name string) (fireflyversioned.Interface, error) FireflyClientOrDie(name string) fireflyversioned.Interface }
ControllerClientBuilder allows you to get clients and configs for controllers Please note a copy also exists in staging/src/k8s.io/cloud-provider/cloud.go TODO: Extract this into a separate controller utilities repo (issues/68947)
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 returns a clientset.Interface built from the ClientBuilder
func (SimpleControllerClientBuilder) ClientOrDie ¶
func (b SimpleControllerClientBuilder) ClientOrDie(name string) clientset.Interface
ClientOrDie returns a clientset.interface built from the ClientBuilder with no error. If it gets an error getting the client, it will log the error and kill the process it's running in.
func (SimpleControllerClientBuilder) Config ¶
func (b SimpleControllerClientBuilder) Config(name string) (*restclient.Config, error)
Config returns a client config for a fixed client
func (SimpleControllerClientBuilder) ConfigOrDie ¶
func (b SimpleControllerClientBuilder) ConfigOrDie(name string) *restclient.Config
ConfigOrDie returns a client config if no error from previous config func. If it gets an error getting the client, it will log the error and kill the process it's running in.
func (SimpleControllerClientBuilder) DiscoveryClient ¶
func (b SimpleControllerClientBuilder) DiscoveryClient(name string) (discovery.DiscoveryInterface, error)
DiscoveryClient returns a discovery.DiscoveryInterface built from the ClientBuilder Discovery is special because it will artificially pump the burst quite high to handle the many discovery requests.
func (SimpleControllerClientBuilder) DiscoveryClientOrDie ¶
func (b SimpleControllerClientBuilder) DiscoveryClientOrDie(name string) discovery.DiscoveryInterface
DiscoveryClientOrDie returns a discovery.DiscoveryInterface built from the ClientBuilder with no error. Discovery is special because it will artificially pump the burst quite high to handle the many discovery requests. If it gets an error getting the client, it will log the error and kill the process it's running in.
func (SimpleControllerClientBuilder) FireflyClient ¶
func (b SimpleControllerClientBuilder) FireflyClient(name string) (fireflyversioned.Interface, error)
FireflyClient returns a fireflyversioned.Interface built from the ClientBuilder
func (SimpleControllerClientBuilder) FireflyClientOrDie ¶
func (b SimpleControllerClientBuilder) FireflyClientOrDie(name string) fireflyversioned.Interface
FireflyClientOrDie returns a fireflyversioned.interface built from the ClientBuilder with no error. If it gets an error getting the client, it will log the error and kill the process it's running in.