Documentation ¶
Index ¶
- func CreateAwsConfig() aws.Config
- func ListEngines() []string
- func RegisterDeploymentEngine(id string, engineConstructor func(config aws.Config) DeploymentEngine)
- type BaseDeploymentConfig
- func (d BaseDeploymentConfig) Id() string
- func (d BaseDeploymentConfig) PostDeployCommand() []string
- func (d BaseDeploymentConfig) PreDeployCommand() []string
- func (d *BaseDeploymentConfig) SetVersion(version string)
- func (d BaseDeploymentConfig) Type() string
- func (d BaseDeploymentConfig) Version() string
- type Deployment
- type DeploymentEngine
- type ECSDeploymentEngine
- type EcsDeployment
- type LambdaDeployment
- type LambdaDeploymentEngine
- func (engine *LambdaDeploymentEngine) CheckVersion(config Deployment) (string, error)
- func (engine *LambdaDeploymentEngine) Deploy(config Deployment, p func(string, ...any)) error
- func (engine *LambdaDeploymentEngine) ResolveConfigStruct() Deployment
- func (engine *LambdaDeploymentEngine) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAwsConfig ¶
func ListEngines ¶
func ListEngines() []string
func RegisterDeploymentEngine ¶
func RegisterDeploymentEngine(id string, engineConstructor func(config aws.Config) DeploymentEngine)
Types ¶
type BaseDeploymentConfig ¶
type BaseDeploymentConfig struct { Id_ string `mapstructure:"id"` Type_ string `mapstructure:"type"` Version_ string `mapstructure:"version"` PreDeployCommand_ []string `mapstructure:"pre-deploy-command,omitempty"` PostDeployCommand_ []string `mapstructure:"post-deploy-command,omitempty"` }
func (BaseDeploymentConfig) Id ¶
func (d BaseDeploymentConfig) Id() string
func (BaseDeploymentConfig) PostDeployCommand ¶
func (d BaseDeploymentConfig) PostDeployCommand() []string
func (BaseDeploymentConfig) PreDeployCommand ¶ added in v0.2.3
func (d BaseDeploymentConfig) PreDeployCommand() []string
func (*BaseDeploymentConfig) SetVersion ¶ added in v0.2.0
func (d *BaseDeploymentConfig) SetVersion(version string)
func (BaseDeploymentConfig) Type ¶
func (d BaseDeploymentConfig) Type() string
func (BaseDeploymentConfig) Version ¶
func (d BaseDeploymentConfig) Version() string
type Deployment ¶
type DeploymentEngine ¶
type DeploymentEngine interface { Type() string ResolveConfigStruct() Deployment Deploy(deploymentConfig Deployment, printer func(string, ...any)) error CheckVersion(deploymentConfig Deployment) (string, error) }
func GetEngine ¶
func GetEngine(id string) (DeploymentEngine, error)
type ECSDeploymentEngine ¶
func (*ECSDeploymentEngine) CheckVersion ¶
func (engine *ECSDeploymentEngine) CheckVersion(config Deployment) (string, error)
func (*ECSDeploymentEngine) Deploy ¶
func (engine *ECSDeploymentEngine) Deploy(config Deployment, p func(string, ...any)) error
func (*ECSDeploymentEngine) ResolveConfigStruct ¶
func (engine *ECSDeploymentEngine) ResolveConfigStruct() Deployment
func (*ECSDeploymentEngine) Type ¶
func (engine *ECSDeploymentEngine) Type() string
type EcsDeployment ¶
type EcsDeployment struct { BaseDeploymentConfig `mapstructure:",squash"` Cluster string `mapstructure:"cluster"` VersionEnvironmentKey string `mapstructure:"version-environment-key,omitempty"` WaitForServiceStability bool `mapstructure:"wait-for-service-stability,omitempty"` WaitForMinutes int `mapstructure:"wait-for-minutes,omitempty"` ForceNewDeployment bool `mapstructure:"force-new-deployment,omitempty"` }
type LambdaDeployment ¶
type LambdaDeployment struct { BaseDeploymentConfig `mapstructure:",squash"` VersionEnvironmentKey string `mapstructure:"version-environment-key,omitempty"` Bucket string `mapstructure:"bucket,omitempty"` KeyTemplate string `mapstructure:"key,omitempty"` VersionTag string `mapstructure:"version-tag,omitempty"` }
type LambdaDeploymentEngine ¶
func (*LambdaDeploymentEngine) CheckVersion ¶
func (engine *LambdaDeploymentEngine) CheckVersion(config Deployment) (string, error)
func (*LambdaDeploymentEngine) Deploy ¶
func (engine *LambdaDeploymentEngine) Deploy(config Deployment, p func(string, ...any)) error
func (*LambdaDeploymentEngine) ResolveConfigStruct ¶
func (engine *LambdaDeploymentEngine) ResolveConfigStruct() Deployment
func (*LambdaDeploymentEngine) Type ¶
func (engine *LambdaDeploymentEngine) Type() string
Click to show internal directories.
Click to hide internal directories.