cluster

package
v1.21.2-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithDefaultScheme

func WithDefaultScheme(o *cluster.Options)

func WithDisableCaches

func WithDisableCaches() func(o *cluster.Options)

func WithWatchClient

func WithWatchClient(o *cluster.Options)

Types

type Cluster

type Cluster struct {
	cluster.Cluster
	// contains filtered or unexported fields
}

func NewCluster

func NewCluster(config *rest.Config, options ...cluster.Option) (*Cluster, error)

func (*Cluster) Config

func (c *Cluster) Config() *rest.Config

func (*Cluster) Discovery

func (c *Cluster) Discovery() discovery.DiscoveryInterface

func (*Cluster) Kubernetes

func (c *Cluster) Kubernetes() kubernetes.Interface

func (*Cluster) Watch

func (c *Cluster) Watch(ctx context.Context, list client.ObjectList, callback func(watch.Event) error, opts ...client.ListOption) error

type Interface

type Interface interface {
	cluster.Cluster
	Config() *rest.Config
	Kubernetes() kubernetes.Interface
	Discovery() discovery.DiscoveryInterface
	Watch(ctx context.Context, list client.ObjectList, callback func(watch.Event) error, opts ...client.ListOption) error
}

type WatchableDelegatingClient

type WatchableDelegatingClient struct {
	client.Client
	// contains filtered or unexported fields
}

func (*WatchableDelegatingClient) Watch

Jump to

Keyboard shortcuts

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