Documentation ¶
Index ¶
- type ClientBuilder
- func (cb *ClientBuilder) APIExtClientOrDie(name string) apiextclient.Interface
- func (cb *ClientBuilder) DynamicClientOrDie(name string) dynamicclient.Interface
- func (cb *ClientBuilder) KubeClientOrDie(name string) kubeclient.Interface
- func (cb *ClientBuilder) OSClientOrDie(name string) osclientset.Interface
- type ControllerContext
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.
Click to show internal directories.
Click to hide internal directories.