Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder can create a variety of kubernetes client interface with its embedded rest.Config.
func NewBuilder ¶
NewBuilder returns a *ClientBuilder with the given kubeconfig.
func (*Builder) APIExtClientOrDie ¶
APIExtClientOrDie returns the kubernetes client interface for extended kubernetes objects.
func (*Builder) KubeClientOrDie ¶
func (cb *Builder) KubeClientOrDie(name string) kubernetes.Interface
KubeClientOrDie returns the kubernetes client interface for general kubernetes objects.
type ControllerContext ¶
type ControllerContext struct { ClientBuilder *Builder APIExtInformerFactory apiextinformers.SharedInformerFactory KubeNamespacedInformerFactory informers.SharedInformerFactory Stop <-chan struct{} InformersStarted chan struct{} ResyncPeriod func() time.Duration }
ControllerContext stores all the informers for a variety of kubernetes objects.
func CreateControllerContext ¶
func CreateControllerContext(cb *Builder, stop <-chan struct{}, targetNamespace string) *ControllerContext
CreateControllerContext creates the ControllerContext with the ClientBuilder.
Click to show internal directories.
Click to hide internal directories.