use

package
v3.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MPL-2.0 Imports: 26 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// LoftDirectClusterEndpoint is a cluster annotation that tells the loft cli to use this endpoint instead of
	// the default loft server address to connect to this cluster.
	LoftDirectClusterEndpoint = "loft.sh/direct-cluster-endpoint"

	// LoftDirectClusterEndpointInsecure is a cluster annotation that tells the loft cli to allow untrusted certificates
	LoftDirectClusterEndpointInsecure = "loft.sh/direct-cluster-endpoint-insecure"

	// LoftDirectClusterEndpointCaData is a cluster annotation that tells the loft cli which cluster ca data to use
	LoftDirectClusterEndpointCaData = "loft.sh/direct-cluster-endpoint-ca-data"
)

Variables

This section is empty.

Functions

func ApplyDirectClusterEndpointOptions

func ApplyDirectClusterEndpointOptions(options kubeconfig.ContextOptions, cluster *managementv1.Cluster, path string, log log.Logger) kubeconfig.ContextOptions

func CreateClusterContextOptions

func CreateClusterContextOptions(baseClient client.Client, config string, cluster *managementv1.Cluster, spaceName string, disableClusterGateway, setActive bool, log log.Logger) (kubeconfig.ContextOptions, error)

func CreateManagementContextOptions

func CreateManagementContextOptions(baseClient client.Client, config string, setActive bool, log log.Logger) (kubeconfig.ContextOptions, error)

func CreateSpaceInstanceOptions

func CreateSpaceInstanceOptions(ctx context.Context, baseClient client.Client, config string, projectName string, spaceInstance *managementv1.SpaceInstance, disableClusterGateway, setActive bool, log log.Logger) (kubeconfig.ContextOptions, error)

func CreateVClusterContextOptions

func CreateVClusterContextOptions(baseClient client.Client, config string, cluster *managementv1.Cluster, spaceName, virtualClusterName string, disableClusterGateway, setActive bool, log log.Logger) (kubeconfig.ContextOptions, error)

func CreateVirtualClusterInstanceOptions

func CreateVirtualClusterInstanceOptions(ctx context.Context, baseClient client.Client, config string, projectName string, virtualClusterInstance *managementv1.VirtualClusterInstance, disableClusterGateway, setActive bool, log log.Logger) (kubeconfig.ContextOptions, error)

func NewClusterCmd

func NewClusterCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewClusterCmd creates a new command

func NewManagementCmd

func NewManagementCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewManagementCmd creates a new command

func NewSpaceCmd

func NewSpaceCmd(globalFlags *flags.GlobalFlags, defaults *pdefaults.Defaults) *cobra.Command

NewSpaceCmd creates a new command

func NewUseCmd

func NewUseCmd(globalFlags *flags.GlobalFlags, defaults *pdefaults.Defaults) *cobra.Command

NewUseCmd creates a new cobra command

func NewVirtualClusterCmd

func NewVirtualClusterCmd(globalFlags *flags.GlobalFlags, defaults *pdefaults.Defaults) *cobra.Command

NewVirtualClusterCmd creates a new command

Types

type ClusterCmd

type ClusterCmd struct {
	*flags.GlobalFlags

	Print                        bool
	DisableDirectClusterEndpoint bool
	// contains filtered or unexported fields
}

ClusterCmd holds the cmd flags

func (*ClusterCmd) Run

func (cmd *ClusterCmd) Run(ctx context.Context, args []string) error

Run executes the command

type ManagementCmd

type ManagementCmd struct {
	*flags.GlobalFlags

	Print bool
	// contains filtered or unexported fields
}

ManagementCmd holds the cmd flags

func (*ManagementCmd) Run

func (cmd *ManagementCmd) Run(args []string) error

type SpaceCmd

type SpaceCmd struct {
	*flags.GlobalFlags

	Cluster                      string
	Project                      string
	Print                        bool
	SkipWait                     bool
	DisableDirectClusterEndpoint bool
	// contains filtered or unexported fields
}

SpaceCmd holds the cmd flags

func (*SpaceCmd) Run

func (cmd *SpaceCmd) Run(ctx context.Context, args []string) error

Run executes the command

type VirtualClusterCmd

type VirtualClusterCmd struct {
	*flags.GlobalFlags

	Space                        string
	Cluster                      string
	Project                      string
	SkipWait                     bool
	Print                        bool
	PrintToken                   bool
	DisableDirectClusterEndpoint bool

	Out io.Writer
	Log log.Logger
}

VirtualClusterCmd holds the cmd flags

func (*VirtualClusterCmd) Run

func (cmd *VirtualClusterCmd) Run(ctx context.Context, args []string) error

Run executes the command

Jump to

Keyboard shortcuts

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