disconnect

package
v0.10.1 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: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagTenant  = "tenant"
	FlagProject = "project"
)

Variables

This section is empty.

Functions

func ConfigureFlags

func ConfigureFlags(c *cobra.Command, disconnectFlags *DisconnectFlags)

func DisconnectRun

func DisconnectRun(opts *DisconnectOptions) error

func NewCmdDisconnect

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

func PromptForProject

func PromptForProject(opts *DisconnectOptions, selectedTenant *tenants.Tenant) (*projects.Project, error)

func PromptMissing

func PromptMissing(opts *DisconnectOptions) error

Types

type DisconnectFlags

type DisconnectFlags struct {
	Tenant  *flag.Flag[string]
	Project *flag.Flag[string]
	*question.ConfirmFlags
}

func NewDisconnectFlags

func NewDisconnectFlags() *DisconnectFlags

type DisconnectOptions

type DisconnectOptions struct {
	*cmd.Dependencies
	*DisconnectFlags
	GetAllTenantsCallback  shared.GetAllTenantsCallback
	GetTenantCallback      shared.GetTenantCallback
	GetAllProjectsCallback shared.GetAllProjectsCallback
	GetProjectCallback     shared.GetProjectCallback
}

func NewDisconnectOptions

func NewDisconnectOptions(disconnectFlags *DisconnectFlags, dependencies *cmd.Dependencies) *DisconnectOptions

Jump to

Keyboard shortcuts

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