v1

package
v0.0.0-...-0416c83 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoordinationV1ClusterClient

type CoordinationV1ClusterClient struct {
	// contains filtered or unexported fields
}

func NewForConfig

func NewForConfig(c *rest.Config) (*CoordinationV1ClusterClient, error)

NewForConfig creates a new CoordinationV1ClusterClient for the given config. NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), where httpClient was generated with rest.HTTPClientFor(c).

func NewForConfigAndClient

func NewForConfigAndClient(c *rest.Config, h *http.Client) (*CoordinationV1ClusterClient, error)

NewForConfigAndClient creates a new CoordinationV1ClusterClient for the given config and http client. Note the http client provided takes precedence over the configured transport values.

func NewForConfigOrDie

func NewForConfigOrDie(c *rest.Config) *CoordinationV1ClusterClient

NewForConfigOrDie creates a new CoordinationV1ClusterClient for the given config and panics if there is an error in the config.

func (*CoordinationV1ClusterClient) Cluster

func (c *CoordinationV1ClusterClient) Cluster(clusterPath logicalcluster.Path) coordinationv1.CoordinationV1Interface

func (*CoordinationV1ClusterClient) Leases

type CoordinationV1ClusterInterface

type CoordinationV1ClusterInterface interface {
	CoordinationV1ClusterScoper
	LeasesClusterGetter
}

type CoordinationV1ClusterScoper

type CoordinationV1ClusterScoper interface {
	Cluster(logicalcluster.Path) coordinationv1.CoordinationV1Interface
}

type LeaseClusterInterface

type LeaseClusterInterface interface {
	Cluster(logicalcluster.Path) LeasesNamespacer
	List(ctx context.Context, opts metav1.ListOptions) (*coordinationv1.LeaseList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
}

LeaseClusterInterface can operate on Leases across all clusters, or scope down to one cluster and return a LeasesNamespacer.

type LeasesClusterGetter

type LeasesClusterGetter interface {
	Leases() LeaseClusterInterface
}

LeasesClusterGetter has a method to return a LeaseClusterInterface. A group's cluster client should implement this interface.

type LeasesNamespacer

type LeasesNamespacer interface {
	Namespace(string) coordinationv1client.LeaseInterface
}

LeasesNamespacer can scope to objects within a namespace, returning a coordinationv1client.LeaseInterface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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