command

package
v0.0.0-...-b394286 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Green = "\033[32m"
View Source
var Grey = "\033[90m"
View Source
var Red = "\033[31m"
View Source
var Reset = "\033[0m"

Functions

func IsErrResponse

func IsErrResponse(statusCode int) bool

func New

func New() *cobra.Command

func NewInstancesCommand

func NewInstancesCommand(log logger.Logger) *cobra.Command

func NewLogsCommand

func NewLogsCommand() *cobra.Command

func NewMetadataCommand

func NewMetadataCommand() *cobra.Command

func NewMigrationAllCommand

func NewMigrationAllCommand(log logger.Logger) *cobra.Command

func NewMigrationCommand

func NewMigrationCommand() *cobra.Command

func NewStatusCommand

func NewStatusCommand() *cobra.Command

func NewSwitchBrokerCommand

func NewSwitchBrokerCommand() *cobra.Command

func OpString

func OpString(op *runtime.Operation) string

func ResponseErr

func ResponseErr(resp *http.Response) error

func SetOutputOpt

func SetOutputOpt(cmd *cobra.Command, opt *string)

SetOutputOpt configures the optput type option on the given command

func ToJson

func ToJson(v interface{}) (string, error)

func ValidateOutputOpt

func ValidateOutputOpt(opt string) error

ValidateOutputOpt checks whether the given optput type is one of the valid values

Types

type Filters

type Filters struct {
	GlobalAccountID string
	Migrated        bool
	NotMigrated     bool
	InstanceID      string
}

type InstancesCommand

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

func (*InstancesCommand) Run

func (c *InstancesCommand) Run() error

func (*InstancesCommand) Validate

func (c *InstancesCommand) Validate() error

type LogsCommand

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

func (*LogsCommand) Run

func (c *LogsCommand) Run() error

type MetadataCommand

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

func (*MetadataCommand) Run

func (c *MetadataCommand) Run() error

type MetadataStorage

type MetadataStorage interface {
	Get(id string) (ers.MigrationMetadata, error)
	Save(m ers.MigrationMetadata) error
}

type MigrationAllCommand

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

func (*MigrationAllCommand) Run

func (c *MigrationAllCommand) Run() error

type MigrationCommand

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

func (*MigrationCommand) Run

func (c *MigrationCommand) Run() error

type Printer

type Printer interface {
	PrintObj(o interface{}) error
}

type Stats

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

func NewStats

func NewStats() *Stats

func (*Stats) Add

func (s *Stats) Add()

func (*Stats) Done

func (s *Stats) Done()

func (*Stats) Err

func (s *Stats) Err(id string, err error)

func (*Stats) Print

func (s *Stats) Print()

func (*Stats) PrintProgress

func (s *Stats) PrintProgress()

type StatusCommand

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

func (*StatusCommand) Run

func (c *StatusCommand) Run() error

type SwitchCommand

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

func (*SwitchCommand) Run

func (c *SwitchCommand) Run() error

type Worker

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

Jump to

Keyboard shortcuts

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