client

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterClient

type ClusterClient[CT any] struct {
	// contains filtered or unexported fields
}

func NewClusterClient

func NewClusterClient[CT any](makeClient func(config []byte) (CT, error)) *ClusterClient[CT]

func (*ClusterClient[CT]) Cluster

func (c *ClusterClient[CT]) Cluster(cluster string) (CT, error)

func (*ClusterClient[CT]) DeleteCluster

func (c *ClusterClient[CT]) DeleteCluster(cluster string)

func (*ClusterClient[CT]) UpdateCluster

func (c *ClusterClient[CT]) UpdateCluster(cluster string, config []byte) error

type ClusterClientInterface

type ClusterClientInterface[CT any] interface {
	// Cluster returns a client of type CT bound to the given cluster.
	Cluster(name string) (CT, error)
}

type DynamicClusterInterface

type DynamicClusterInterface interface {
	// UpdateCluster updates the cluster under the given name with the provided configuration.
	UpdateCluster(name string, config []byte) error
	// DeleteCluster deletes data associated with provided cluster name.
	DeleteCluster(name string)
}

Jump to

Keyboard shortcuts

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