cli

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplaySummary

func DisplaySummary(commandCtx *context.Context)

func PostRunSaveMetadata

func PostRunSaveMetadata(ctx *context.Context) error

func PreRunLoadMetadata

func PreRunLoadMetadata(ctx *context.Context) error

Types

type CloudController

type CloudController struct {
	URL          string `mapstructure:"url"`
	Username     string `mapstructure:"username"`
	Password     string `mapstructure:"password"`
	ClientID     string `mapstructure:"client_id"`
	ClientSecret string `mapstructure:"client_secret"`
}

func (CloudController) Validate

func (c CloudController) Validate() error

type CompiledEnv

type CompiledEnv struct {
	Name     string
	Version  string
	GitSha   string
	GitDirty bool
}
var Env CompiledEnv

type Config

type Config struct {
	ConfigDir        string
	ConfigFile       string
	Name             string
	DomainsToReplace map[string]string
	DomainsToAdd     []string        `mapstructure:"domains_to_add"`
	ExportDir        string          `mapstructure:"export_dir"`
	IncludedOrgs     []string        `mapstructure:"include_orgs"`
	ExcludedOrgs     []string        `mapstructure:"exclude_orgs"`
	SourceApi        CloudController `mapstructure:"source_api"`
	TargetApi        CloudController `mapstructure:"target_api"`
	ConcurrencyLimit int             `mapstructure:"concurrency_limit"`
	DisplayProgress  bool            `mapstructure:"display_progress"`
	Debug            bool
}

func New

func New(configDir string, configFile string) *Config

func NewDefaultConfig

func NewDefaultConfig() (*Config, error)

type FieldError

type FieldError struct {
	Field string
	Msg   string
}

func (FieldError) Error

func (f FieldError) Error() string

Jump to

Keyboard shortcuts

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