cluster

package
v1.23.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 16 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 NewClusterAndStart added in v1.23.0

func NewClusterAndStart(ctx context.Context, config *rest.Config, options ...cluster.Option) (*Cluster, error)

func (*Cluster) Config

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

func (*Cluster) Discovery

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.CachedDiscoveryInterface
	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