Documentation ¶
Index ¶
- Constants
- func AddClient(ctx *CliContext, basePath string, name string, clientName string) error
- func Cleanup() error
- func CloudInit(ctx *CliContext, projectName string, env string) 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, name 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 RemoveClient(ctx *CliContext, basePath string, name string, clientName string) error
- func Run(ctx *CliContext, basePath string) error
- func SaveConfig(config Config) error
- func ServiceGenerate(ctx *CliContext, basePath string, name string, migrate bool) error
- func ServiceGenerateMany(ctx *CliContext, basePath string, names []string, migrate bool) error
- func ToolMigrate(ctx *CliContext, basePath string, serviceName string, command string, ...) error
- type CliContext
- type Config
Constants ¶
View Source
const CLOUD_URL = "http://localhost:43057"
const CLOUD_URL = "https://cloud.mify.io"
Variables ¶
This section is empty.
Functions ¶
func AddClient ¶
func AddClient(ctx *CliContext, basePath string, name string, clientName string) 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 CreateService(ctx *CliContext, basePath string, language string, name string) error
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 RemoveClient ¶
func RemoveClient(ctx *CliContext, basePath string, name string, clientName string) error
func Run ¶
func Run(ctx *CliContext, basePath string) error
func SaveConfig ¶
func ServiceGenerate ¶
func ServiceGenerate(ctx *CliContext, basePath string, name string, migrate bool) error
func ServiceGenerateMany ¶
func ServiceGenerateMany(ctx *CliContext, basePath string, names []string, migrate bool) error
func ToolMigrate ¶
Types ¶
type CliContext ¶
type CliContext struct { Logger *log.Logger Ctx context.Context Cancel context.CancelFunc Config Config WorkspacePath string IsVerbose bool UserInput userinput.UserInput // contains filtered or unexported fields }
func NewContext ¶
func NewContext(config Config, workspacePath string, isVerbose bool) *CliContext
func (CliContext) GetCtx ¶
func (c CliContext) GetCtx() context.Context
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.