builder

package
v0.0.0-...-a39b43c Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 13 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 struct {
	// contains filtered or unexported fields
}

ClientBuilder can create a variety of kubernetes client interface with its embedded rest.Config.

func NewClientBuilder

func NewClientBuilder(kubeconfig string) (*ClientBuilder, error)

NewClientBuilder returns a *ClientBuilder with the given kubeconfig.

func (*ClientBuilder) APIExtClientOrDie

func (cb *ClientBuilder) APIExtClientOrDie(name string) apiextclient.Interface

APIExtClientOrDie returns the kubernetes client interface for extended kubernetes objects.

func (*ClientBuilder) DynamicClientOrDie

func (cb *ClientBuilder) DynamicClientOrDie(name string) dynamicclient.Interface

DynamicClientOrDie returns a dynamic client interface.

func (*ClientBuilder) KubeClientOrDie

func (cb *ClientBuilder) KubeClientOrDie(name string) kubeclient.Interface

KubeClientOrDie returns the kubernetes client interface for general kubernetes objects.

func (*ClientBuilder) OSClientOrDie

func (cb *ClientBuilder) OSClientOrDie(name string) osclientset.Interface

OSClientOrDie returns a client interface for general OpenShift objects.

type ControllerContext

type ControllerContext struct {
	ClientBuilder                 *ClientBuilder
	APIExtInformerFactory         apiextinformers.SharedInformerFactory
	KubeNamespacedInformerFactory informers.SharedInformerFactory
	OSInformerFactory             osinformers.SharedInformerFactory

	Stop <-chan struct{}

	InformersStarted chan struct{}

	ResyncPeriod func() time.Duration
}

ControllerContext stores all the informers for a variety of kubernetes objects.

func NewControllerContext

func NewControllerContext(cb *ClientBuilder, stop <-chan struct{}, operandNamespace string) *ControllerContext

NewControllerContext creates the ControllerContext with the ClientBuilder.

Jump to

Keyboard shortcuts

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