clusterid

package
v0.3.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package clusterid contains definition and methods to manipulate the Liqo ClusterID

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterID

type ClusterID interface {
	SetupClusterID(namespace string) error
	GetClusterID() string
}

ClusterID defines the basic methods to interact with cluster identifier.

func NewClusterID

func NewClusterID(kubeconfigPath string) (ClusterID, error)

NewClusterID generates a new clusterid and returns it.

func NewClusterIDFromClient

func NewClusterIDFromClient(client kubernetes.Interface) (ClusterID, error)

NewClusterIDFromClient generates a new clusterid and returns it.

func NewStaticClusterID

func NewStaticClusterID(clusterID string) ClusterID

NewStaticClusterID returns a clusterID interface compliant object that stores a read-only clusterID.

type ClusterIDImpl

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

ClusterIDImpl implements the basic structure to safely manipulate ClusterID.

func (*ClusterIDImpl) GetClusterID

func (cId *ClusterIDImpl) GetClusterID() string

GetClusterID retrieves the clusterid.

func (*ClusterIDImpl) SetupClusterID

func (cId *ClusterIDImpl) SetupClusterID(namespace string) error

SetupClusterID sets a new clusterid.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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