Documentation ¶
Index ¶
- Variables
- func IsErrResponse(statusCode int) bool
- func New() *cobra.Command
- func NewInstancesCommand(log logger.Logger) *cobra.Command
- func NewLogsCommand() *cobra.Command
- func NewMetadataCommand() *cobra.Command
- func NewMigrationAllCommand(log logger.Logger) *cobra.Command
- func NewMigrationCommand() *cobra.Command
- func NewStatusCommand() *cobra.Command
- func NewSwitchBrokerCommand() *cobra.Command
- func OpString(op *runtime.Operation) string
- func ResponseErr(resp *http.Response) error
- func SetOutputOpt(cmd *cobra.Command, opt *string)
- func ToJson(v interface{}) (string, error)
- func ValidateOutputOpt(opt string) error
- type Filters
- type InstancesCommand
- type LogsCommand
- type MetadataCommand
- type MetadataStorage
- type MigrationAllCommand
- type MigrationCommand
- type Printer
- type Stats
- type StatusCommand
- type SwitchCommand
- type Worker
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 NewLogsCommand ¶
func NewMetadataCommand ¶
func NewMigrationCommand ¶
func NewStatusCommand ¶
func NewSwitchBrokerCommand ¶
func ResponseErr ¶
func SetOutputOpt ¶
SetOutputOpt configures the optput type option on the given command
func ValidateOutputOpt ¶
ValidateOutputOpt checks whether the given optput type is one of the valid values
Types ¶
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 Stats ¶
type Stats struct {
// contains filtered or unexported fields
}
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
Click to show internal directories.
Click to hide internal directories.