add

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package add contains the logic to initiate an outgoing peering to a remote cluster

Index

Constants

View Source
const (
	// LiqoctlAddShortHelp contains the short help string for liqoctl add command.
	LiqoctlAddShortHelp = "Enable a peering with a remote cluster"
	// LiqoctlAddLongHelp contains the Long help string for liqoctl add command.
	LiqoctlAddLongHelp = `` /* 172-byte string literal not displayed */

	// AuthURLFlagName contains the name of auth-url flag.
	AuthURLFlagName = "auth-url"
	// ClusterNameFlagName contains the name of cluster name flag.
	ClusterNameFlagName = "name"
	// ClusterIDFlagName contains the name of cluster-id flag.
	ClusterIDFlagName = "id"
	// ClusterTokenFlagName contains the name for the token flag.
	ClusterTokenFlagName = "token"
	// UseCommand contains the verb of the add command.
	UseCommand = "add"
	// ClusterResourceName contains the name of the resource added in liqoctl add.
	ClusterResourceName = "cluster"
	// ClusterLiqoNamespaceFlagName contains the default namespace where Liqo is installed.
	ClusterLiqoNamespaceFlagName = "namespace"
	// ClusterLiqoNamespace contains the default namespace where Liqo is installed.
	ClusterLiqoNamespace = "liqo"

	// SuccessfulMessage is printed when ad add cluster command has succeeded.
	SuccessfulMessage = `` /* 921-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func HandleAddCommand

func HandleAddCommand(ctx context.Context, t *ClusterArgs) error

HandleAddCommand handles the add command, configuring all the resources required to configure an outgoing peering.

Types

type ClusterArgs

type ClusterArgs struct {
	ClusterName    string
	ClusterToken   string
	ClusterAuthURL string
	ClusterID      string
	Namespace      string
}

ClusterArgs encapsulates arguments required to enable an outgoing peering to a remote cluster.

Jump to

Keyboard shortcuts

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