controller

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 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) (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

Client builds a new client for clientBuilder

func (SimpleControllerClientBuilder) ClientGoClient

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

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