Documentation ¶
Index ¶
- Constants
- Variables
- func ExportEnvFile(file string) error
- func MarshalJSON(s interface{}) ([]byte, error)
- func MarshalJSONString(s interface{}) string
- func NormalizePlatform(p *ecs.RuntimePlatform, isFargate bool) (arch, os string)
- type App
- func (d *App) AppSpec(opt AppSpecOption) error
- func (d *App) Create(opt CreateOption) error
- func (d *App) DebugLog(v ...interface{})
- func (d *App) Delete(opt DeleteOption) error
- func (d *App) Deploy(opt DeployOption) error
- func (d *App) DeployByCodeDeploy(ctx context.Context, taskDefinitionArn string, count *int64, sv *ecs.Service, ...) error
- func (d *App) Deregister(opt DeregisterOption) error
- func (d *App) DescribeService(ctx context.Context) (*ecs.Service, error)
- func (d *App) DescribeServiceDeployments(ctx context.Context, startedAt time.Time) (int, error)
- func (d *App) DescribeServiceStatus(ctx context.Context, events int) (*ecs.Service, error)
- func (d *App) DescribeServicesInput() *ecs.DescribeServicesInput
- func (d *App) DescribeTaskDefinition(ctx context.Context, tdArn string) (*TaskDefinitionInput, error)
- func (d *App) DescribeTaskStatus(ctx context.Context, task *ecs.Task, watchContainer *ecs.ContainerDefinition) error
- func (d *App) DescribeTasksInput(task *ecs.Task) *ecs.DescribeTasksInput
- func (d *App) Diff(opt DiffOption) error
- func (d *App) Exec(opt ExecOption) error
- func (d *App) FindRollbackTarget(ctx context.Context, taskDefinitionArn string) (string, error)
- func (d *App) GetLogEvents(ctx context.Context, logGroup string, logStream string, startedAt time.Time, ...) (*string, error)
- func (d *App) GetLogEventsInput(logGroup string, logStream string, startAt int64, nextToken *string) *cloudwatchlogs.GetLogEventsInput
- func (d *App) GetLogInfo(task *ecs.Task, c *ecs.ContainerDefinition) (string, string)
- func (d *App) Init(opt InitOption) error
- func (d *App) LoadServiceDefinition(path string) (*ecs.Service, error)
- func (d *App) LoadTaskDefinition(path string) (*TaskDefinitionInput, error)
- func (d *App) Log(v ...interface{})
- func (d *App) LogJSON(v interface{})
- func (d *App) Name() string
- func (d *App) Register(opt RegisterOption) error
- func (d *App) RegisterTaskDefinition(ctx context.Context, td *TaskDefinitionInput) (*TaskDefinition, error)
- func (d *App) Render(opt RenderOption) error
- func (d *App) Revesions(opt RevisionsOption) error
- func (d *App) Rollback(opt RollbackOption) error
- func (d *App) RollbackByCodeDeploy(ctx context.Context, sv *ecs.Service, tdArn string, opt RollbackOption) error
- func (d *App) Run(opt RunOption) error
- func (d *App) RunTask(ctx context.Context, tdArn string, ov *ecs.TaskOverride, opt *RunOption) (*ecs.Task, error)
- func (d *App) Start() (context.Context, context.CancelFunc)
- func (d *App) Status(opt StatusOption) error
- func (d *App) Tasks(opt TasksOption) error
- func (d *App) UpdateServiceAttributes(ctx context.Context, sv *ecs.Service, opt DeployOption) error
- func (d *App) UpdateServiceTasks(ctx context.Context, taskDefinitionArn string, count *int64, opt DeployOption) error
- func (d *App) Verify(opt VerifyOption) error
- func (d *App) Wait(opt WaitOption) error
- func (d *App) WaitForCodeDeploy(ctx context.Context, sv *ecs.Service) error
- func (d *App) WaitRunTask(ctx context.Context, task *ecs.Task, watchContainer *ecs.ContainerDefinition, ...) error
- func (d *App) WaitServiceStable(ctx context.Context, startedAt time.Time) error
- type AppSpecOption
- type Config
- type ConfigPlugin
- type CreateOption
- type DeleteOption
- type DeployOption
- type DeregisterOption
- type DiffOption
- type DryRunnable
- type ExecOption
- type InitOption
- type RegisterOption
- type RenderOption
- type RevisionsOption
- type RollbackOption
- type RunOption
- type StatusOption
- type TaskDefinition
- type TaskDefinitionInput
- type TasksOption
- type VerifyOption
- type WaitOption
Constants ¶
View Source
const ( DefaultClusterName = "default" DefaultTimeout = 10 * time.Minute )
View Source
const (
CodeDeployConsoleURLFmt = "https://%s.console.aws.amazon.com/codesuite/codedeploy/deployments/%s?region=%s"
)
View Source
const DefaultDesiredCount = -1
View Source
const SessionManagerPluginBinary = "session-manager-plugin"
Variables ¶
View Source
var CreateFileMode = os.FileMode(0644)
View Source
var TerminalWidth = 90
Functions ¶
func ExportEnvFile ¶ added in v1.4.0
ExportEnvFile exports envfile to environment variables.
func MarshalJSON ¶ added in v0.11.0
func MarshalJSONString ¶ added in v0.16.0
func MarshalJSONString(s interface{}) string
func NormalizePlatform ¶ added in v1.99.0
func NormalizePlatform(p *ecs.RuntimePlatform, isFargate bool) (arch, os string)
Types ¶
type App ¶ added in v0.0.2
type App struct { Service string Cluster string Debug bool ExtStr map[string]string ExtCode map[string]string // contains filtered or unexported fields }
func (*App) AppSpec ¶ added in v0.99.7
func (d *App) AppSpec(opt AppSpecOption) error
func (*App) Create ¶ added in v0.2.0
func (d *App) Create(opt CreateOption) error
func (*App) Delete ¶ added in v0.4.0
func (d *App) Delete(opt DeleteOption) error
func (*App) Deploy ¶ added in v0.1.0
func (d *App) Deploy(opt DeployOption) error
func (*App) DeployByCodeDeploy ¶ added in v0.12.0
func (*App) Deregister ¶ added in v1.7.0
func (d *App) Deregister(opt DeregisterOption) error
func (*App) DescribeService ¶ added in v0.16.0
func (*App) DescribeServiceDeployments ¶ added in v0.0.2
func (*App) DescribeServiceStatus ¶ added in v0.1.0
func (*App) DescribeServicesInput ¶ added in v0.0.2
func (d *App) DescribeServicesInput() *ecs.DescribeServicesInput
func (*App) DescribeTaskDefinition ¶ added in v0.8.1
func (*App) DescribeTaskStatus ¶ added in v0.15.0
func (*App) DescribeTasksInput ¶ added in v0.5.0
func (d *App) DescribeTasksInput(task *ecs.Task) *ecs.DescribeTasksInput
func (*App) Diff ¶ added in v0.16.0
func (d *App) Diff(opt DiffOption) error
func (*App) Exec ¶ added in v1.5.0
func (d *App) Exec(opt ExecOption) error
func (*App) FindRollbackTarget ¶ added in v0.1.0
func (*App) GetLogEvents ¶ added in v0.5.0
func (*App) GetLogEventsInput ¶ added in v0.5.0
func (d *App) GetLogEventsInput(logGroup string, logStream string, startAt int64, nextToken *string) *cloudwatchlogs.GetLogEventsInput
func (*App) GetLogInfo ¶ added in v0.5.0
func (*App) Init ¶ added in v0.11.0
func (d *App) Init(opt InitOption) error
func (*App) LoadServiceDefinition ¶ added in v0.2.0
func (*App) LoadTaskDefinition ¶ added in v0.0.2
func (d *App) LoadTaskDefinition(path string) (*TaskDefinitionInput, error)
func (*App) Register ¶ added in v0.10.0
func (d *App) Register(opt RegisterOption) error
func (*App) RegisterTaskDefinition ¶ added in v0.0.2
func (d *App) RegisterTaskDefinition(ctx context.Context, td *TaskDefinitionInput) (*TaskDefinition, error)
func (*App) Render ¶ added in v1.2.0
func (d *App) Render(opt RenderOption) error
func (*App) Revesions ¶ added in v1.7.0
func (d *App) Revesions(opt RevisionsOption) error
func (*App) Rollback ¶ added in v0.1.0
func (d *App) Rollback(opt RollbackOption) error
func (*App) RollbackByCodeDeploy ¶ added in v1.5.0
func (*App) Status ¶ added in v0.1.0
func (d *App) Status(opt StatusOption) error
func (*App) Tasks ¶ added in v1.5.0
func (d *App) Tasks(opt TasksOption) error
func (*App) UpdateServiceAttributes ¶ added in v0.13.3
func (*App) UpdateServiceTasks ¶ added in v0.13.3
func (*App) Verify ¶ added in v1.2.0
func (d *App) Verify(opt VerifyOption) error
Verify verifies service / task definitions related resources are valid.
func (*App) Wait ¶ added in v0.9.0
func (d *App) Wait(opt WaitOption) error
func (*App) WaitForCodeDeploy ¶ added in v0.99.1
func (*App) WaitRunTask ¶ added in v0.5.0
type AppSpecOption ¶ added in v0.99.7
type Config ¶ added in v0.0.2
type Config struct { RequiredVersion string `yaml:"required_version,omitempty"` Region string `yaml:"region"` Cluster string `yaml:"cluster"` Service string `yaml:"service"` ServiceDefinitionPath string `yaml:"service_definition"` TaskDefinitionPath string `yaml:"task_definition"` Timeout time.Duration `yaml:"timeout"` Plugins []ConfigPlugin `yaml:"plugins,omitempty"` AppSpec *appspec.AppSpec `yaml:"appspec,omitempty"` FilterCommand string `yaml:"filter_command,omitempty"` // contains filtered or unexported fields }
Config represents a configuration.
func NewDefaultConfig ¶ added in v0.1.0
func NewDefaultConfig() *Config
NewDefaultConfig creates a default configuration.
func (*Config) ValidateVersion ¶ added in v1.3.0
ValidateVersion validates a version satisfies required_version.
type ConfigPlugin ¶ added in v0.14.0
type ConfigPlugin struct { Name string `yaml:"name"` Config map[string]interface{} `yaml:"config"` }
func (ConfigPlugin) Setup ¶ added in v0.14.0
func (p ConfigPlugin) Setup(c *Config) error
type CreateOption ¶ added in v0.2.0
func (CreateOption) DryRunString ¶ added in v0.13.3
func (opt CreateOption) DryRunString() string
type DeleteOption ¶ added in v0.4.0
func (DeleteOption) DryRunString ¶ added in v0.13.3
func (opt DeleteOption) DryRunString() string
type DeployOption ¶ added in v0.2.0
type DeployOption struct { DryRun *bool DesiredCount *int64 SkipTaskDefinition *bool ForceNewDeployment *bool NoWait *bool SuspendAutoScaling *bool RollbackEvents *string UpdateService *bool LatestTaskDefinition *bool }
func (DeployOption) DryRunString ¶ added in v0.13.3
func (opt DeployOption) DryRunString() string
type DeregisterOption ¶ added in v1.7.0
func (DeregisterOption) DryRunString ¶ added in v1.7.0
func (opt DeregisterOption) DryRunString() string
type DiffOption ¶ added in v0.16.0
type DiffOption struct {
Unified *bool
}
type DryRunnable ¶ added in v0.13.3
type DryRunnable interface {
DryRunString() bool
}
type ExecOption ¶ added in v1.5.0
type InitOption ¶ added in v0.11.0
type RegisterOption ¶ added in v0.10.0
func (RegisterOption) DryRunString ¶ added in v0.13.3
func (opt RegisterOption) DryRunString() string
type RenderOption ¶ added in v1.2.0
type RevisionsOption ¶ added in v1.7.0
type RollbackOption ¶ added in v0.2.0
type RollbackOption struct { DryRun *bool DeregisterTaskDefinition *bool NoWait *bool RollbackEvents *string }
func (RollbackOption) DryRunString ¶ added in v0.13.3
func (opt RollbackOption) DryRunString() string
type RunOption ¶ added in v0.5.0
type RunOption struct { DryRun *bool TaskDefinition *string NoWait *bool TaskOverrideStr *string TaskOverrideFile *string SkipTaskDefinition *bool Count *int64 WatchContainer *string LatestTaskDefinition *bool PropagateTags *string Tags *string WaitUntil *string Revision *int64 }
func (RunOption) DryRunString ¶ added in v0.13.3
type StatusOption ¶ added in v0.2.0
type StatusOption struct {
Events *int
}
type TaskDefinition ¶
type TaskDefinition = ecs.TaskDefinition
type TaskDefinitionInput ¶ added in v1.5.0
type TaskDefinitionInput = ecs.RegisterTaskDefinitionInput
type TasksOption ¶ added in v1.5.0
type VerifyOption ¶ added in v1.2.0
VerifyOption represents options for Verify()
type WaitOption ¶ added in v0.9.0
type WaitOption struct { }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.