mify

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

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 CreateService(ctx *CliContext, basePath string, language string, template 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 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 SaveConfig(config Config) error

func ServiceGenerate

func ServiceGenerate(ctx *CliContext, basePath string, name string, migrate bool, force bool) error

func ServiceGenerateMany

func ServiceGenerateMany(ctx *CliContext, basePath string, names []string, migrate bool, force bool) error

func ToolMigrate

func ToolMigrate(
	ctx *CliContext, basePath string, serviceName string, command string, extraArgs []string) error

func UpdateConfig added in v0.1.4

func UpdateConfig(config Config) error

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

func (Config) Equal added in v0.1.4

func (c Config) Equal(newConfig Config) bool

Directories

Path Synopsis
cloud
tests

Jump to

Keyboard shortcuts

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