cluster

package
v1.24.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 17 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 WithInNamespace added in v1.23.0

func WithInNamespace(ns string) 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, apply func(c cluster.Cluster) error, options ...cluster.Option) (*Cluster, error)

func NewLocalAgentClusterAndStart added in v1.23.0

func NewLocalAgentClusterAndStart(ctx context.Context, options ...cluster.Option) (*Cluster, error)

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