Documentation ¶
Index ¶
- func AddClient(ctx *CliContext, basePath string, name string, clientName string) error
- func AddPostgres(ctx *CliContext, basePath string, serviceName string) error
- func Cleanup(appContext *CliContext) error
- func CloudInit(ctx *CliContext) error
- func CloudUpdateKubeconfig(ctx *CliContext, environment string) error
- func CreateApiGateway(ctx *CliContext) error
- func CreateFrontend(ctx *CliContext, basePath string, template string, name string) error
- func CreateService(ctx *CliContext, basePath string, language string, template string, ...) error
- func CreateWorkspace(ctx *CliContext, parentDir string, name string, vcs string) error
- func DeployMany(ctx *CliContext, deployEnv string, names []string) error
- func GetConfigDirectory() string
- func NsShell(ctx *CliContext, env string, forwardProxy string, listenPort string) error
- func RemoveClient(ctx *CliContext, basePath string, name string, clientName string) error
- func RemovePostgres(ctx *CliContext, basePath string, serviceName string) error
- func Run(ctx *CliContext, basePath string) error
- func SaveConfig(config Config) error
- func ServiceGenerate(ctx *CliContext, basePath string, name string, migrate bool, force bool) error
- func ServiceGenerateMany(ctx *CliContext, basePath string, names []string, migrate bool, force bool) error
- func ToolMigrate(ctx *CliContext, basePath string, serviceName string, command string, ...) error
- func UpdateConfig(config Config) error
- type CliContext
- func (c CliContext) GetCtx() context.Context
- func (c *CliContext) GetWorkspaceDescription() *workspace.Description
- func (c *CliContext) InitStatsCollector(statsQueueFile string)
- func (c *CliContext) LoadWorkspace() error
- func (c *CliContext) MustGetMutatorContext() *mutators.MutatorContext
- func (c *CliContext) MustGetWorkspaceDescription() *workspace.Description
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddClient ¶
func AddClient(ctx *CliContext, basePath string, name string, clientName string) error
func AddPostgres ¶ added in v0.1.11
func AddPostgres(ctx *CliContext, basePath string, serviceName string) error
func Cleanup ¶
func Cleanup(appContext *CliContext) error
func CloudInit ¶
func CloudInit(ctx *CliContext) error
func CloudUpdateKubeconfig ¶
func CloudUpdateKubeconfig(ctx *CliContext, environment string) error
func CreateApiGateway ¶
func CreateApiGateway(ctx *CliContext) error
func CreateFrontend ¶
func CreateFrontend(ctx *CliContext, basePath string, template string, name string) error
func CreateService ¶
func CreateWorkspace ¶
func CreateWorkspace(ctx *CliContext, parentDir string, name string, vcs string) error
func DeployMany ¶
func DeployMany(ctx *CliContext, deployEnv string, names []string) error
func GetConfigDirectory ¶
func GetConfigDirectory() string
func NsShell ¶ added in v0.1.7
func NsShell(ctx *CliContext, env string, forwardProxy string, listenPort string) error
func RemoveClient ¶
func RemoveClient(ctx *CliContext, basePath string, name string, clientName string) error
func RemovePostgres ¶ added in v0.1.11
func RemovePostgres(ctx *CliContext, basePath string, serviceName string) error
func Run ¶
func Run(ctx *CliContext, basePath string) error
func SaveConfig ¶
func ServiceGenerate ¶
func ServiceGenerateMany ¶
func ToolMigrate ¶
func UpdateConfig ¶ added in v0.1.4
Types ¶
type CliContext ¶
type CliContext struct { Logger *log.Logger Ctx context.Context Cancel context.CancelFunc Config Config WorkspacePath string MifyVersion string IsVerbose bool UserInput userinput.UserInput StatsCollector *stats.Collector // contains filtered or unexported fields }
func NewContext ¶
func NewContext(config Config, workspacePath string, isVerbose bool, mifyVersion string) *CliContext
func (CliContext) GetCtx ¶
func (c CliContext) GetCtx() context.Context
func (*CliContext) GetWorkspaceDescription ¶ added in v0.1.7
func (c *CliContext) GetWorkspaceDescription() *workspace.Description
func (*CliContext) InitStatsCollector ¶ added in v0.1.4
func (c *CliContext) InitStatsCollector(statsQueueFile string)
func (*CliContext) LoadWorkspace ¶
func (c *CliContext) LoadWorkspace() error
func (*CliContext) MustGetMutatorContext ¶
func (c *CliContext) MustGetMutatorContext() *mutators.MutatorContext
func (*CliContext) MustGetWorkspaceDescription ¶
func (c *CliContext) MustGetWorkspaceDescription() *workspace.Description
type Config ¶
type Config struct { APIToken string `mapstructure:"MIFY_API_TOKEN"` DisableUsageStats bool `mapstructure:"MIFY_DISABLE_USAGE_STATS"` InstanceID string `mapstructure:"MIFY_INSTANCE_ID"` SSHPublicKey string `mapstructure:"SSH_PUBLIC_KEY"` }
func NewDefaultConfig ¶
func NewDefaultConfig() Config
Source Files ¶
Click to show internal directories.
Click to hide internal directories.