zk

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ClusterMetadataParentZNode defines the znode to store metadata for the ZookeeperCluster objects
	ClusterMetadataParentZNode = "/zookeeper/operator-cluster-metadata"
)

Variables

This section is empty.

Functions

func DeleteMetadata added in v0.2.0

func DeleteMetadata(cluster *v1alpha1.ZookeeperCluster) error

DeleteMetadata deletes all zNodes created by the zookeeper cluster

func UpdateMetadata added in v0.2.0

func UpdateMetadata(cluster *v1alpha1.ZookeeperCluster) error

UpdateMetadata update the metadata of the specified cluster

Types

type Client

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

func NewZkClient

func NewZkClient(cluster *v1alpha1.ZookeeperCluster) (*Client, error)

NewZkClient creates a new zookeeper client connected to the specified cluster

func (*Client) Close

func (c *Client) Close()

Close closes the zookeeper connection

Jump to

Keyboard shortcuts

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