connect

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagTenant                  = "tenant"
	FlagProject                 = "project"
	FlagEnvironment             = "environment"
	FlagEnableTenantDeployments = "enable-tenant-deployments"
	FlagAliasEnvironment        = "env"
)

Variables

This section is empty.

Functions

func ConfigureFlags

func ConfigureFlags(cmd *cobra.Command, connectFlags *ConnectFlags)

func ConnectRun

func ConnectRun(opts *ConnectOptions) error

func NewCmdConnect

func NewCmdConnect(f factory.Factory) *cobra.Command

func PromptForEnablingTenantedDeployments

func PromptForEnablingTenantedDeployments(opts *ConnectOptions, getProjectCallback shared.GetProjectCallback) error

func PromptMissing

func PromptMissing(opts *ConnectOptions) error

Types

type ConnectFlags

type ConnectFlags struct {
	Tenant                  *flag.Flag[string]
	Project                 *flag.Flag[string]
	Environments            *flag.Flag[[]string]
	EnableTenantDeployments *flag.Flag[bool]
}

func NewConnectFlags

func NewConnectFlags() *ConnectFlags

type ConnectOptions

type ConnectOptions struct {
	*cmd.Dependencies
	*ConnectFlags
	GetAllTenantsCallback         shared.GetAllTenantsCallback
	GetAllProjectsCallback        shared.GetAllProjectsCallback
	GetProjectCallback            shared.GetProjectCallback
	GetProjectProgressionCallback shared.GetProjectProgression
}

func NewConnectOptions

func NewConnectOptions(connectFlags *ConnectFlags, dependencies *cmd.Dependencies) *ConnectOptions

Jump to

Keyboard shortcuts

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