Help us shape the future of Go! Take the 2026 Go Developer Survey

controller

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0, BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

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

Client builds a new client for clientBuilder

func (SimpleControllerClientBuilder) ClientGoClient

ClientGoClient builds a go client

func (SimpleControllerClientBuilder) ClientGoClientOrDie

ClientGoClientOrDie builds a go client or die's

func (SimpleControllerClientBuilder) ClientOrDie

ClientOrDie builds a client or die's

func (SimpleControllerClientBuilder) Config

Config lets you configure the client builder

func (SimpleControllerClientBuilder) ConfigOrDie

ConfigOrDie either configures or die's while configuring

Jump to

Keyboard shortcuts

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