Documentation
¶
Index ¶
- Variables
- type CreateFunc
- type DeleteFunc
- type DifferFunc
- type OutputFields
- type PreApplyFunc
- type ReadFunc
- type Step
- func CleanupCronjobsStep(resource *config.KeepInSync) *Step
- func CleanupOnlyStep(project *config.Project) *Step
- func CleanupServicesStep(resource *config.KeepInSync) *Step
- func CleanupStep(resource *config.KeepInSync) *Step
- func CleanupTaskDefinitionsStep(resource *config.KeepInSync) *Step
- func ConsoleTaskStep(resource *config.ConsoleTask) *Step
- func CronDeploymentStep(resource *config.Project) *Step
- func CronRuleStep(resource *config.CronJob) *Step
- func CronSchedulesStep(resource *config.Project) *Step
- func CronTargetStep(resource *config.CronJob) *Step
- func CronjobStep(resource *config.CronJob, useOldEventbridgeStyle bool) *Step
- func DeploymentStep(project *config.Project) *Step
- func DeregisterTaskDefinitionsStep(resource *config.Project) *Step
- func FirelensStep(resource *config.Project) *Step
- func LogGroupStep(resource interface{}) *Step
- func NewStep(step *Step) *Step
- func NoopStep() *Step
- func PreDeployTaskStep(resource *config.PreDeployTask) *Step
- func PreDeploymentStep(resource *config.Project) *Step
- func PreflightStep(project *config.Project) *Step
- func PreloadLogGroupsStep(project *config.Project) *Step
- func PreloadSecretsStep(project *config.Project) *Step
- func PreloadStep(project *config.Project) *Step
- func ScheduleGroupStep(resource *config.Project) *Step
- func ServiceDeploymentStep(project *config.Project) *Step
- func ServiceStep(resource *config.Service) *Step
- func TaskDefinitionStep(resource config.IsTaskStruct) *Step
- func (s *Step) Applied() bool
- func (s *Step) Apply(ctx *config.Context) error
- func (s *Step) FindAllChildren(label *string) []*Step
- func (s *Step) GetAttr(key string) (interface{}, bool)
- func (s *Step) GetAttrMust(key string) interface{}
- func (s *Step) Identifier() string
- func (s *Step) Indent()
- func (s *Step) Log() *log.Entry
- func (s *Step) LookupOutput(key string) (interface{}, bool)
- func (s *Step) MarkApplied()
- func (s *Step) Name() string
- func (s *Step) Outdent()
- func (s *Step) SearchAttr(key string) (interface{}, bool)
- func (s *Step) SetAttr(key string, value interface{})
- func (s *Step) Validate() error
- type StepMetadata
- type UpdateFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFuncNotImplemented = errors.New("Function not implemented") ErrStepFailed = errors.New("step failed") ErrStepDependencyFailure = errors.New("step dependency failure") ErrStepInvalid = errors.New("step invalid") )
View Source
var (
ErrTaskDefNotCreated = errors.New("Task definition was not created")
)
Functions ¶
This section is empty.
Types ¶
type CreateFunc ¶
type CreateFunc func(*config.Context, *Step, *StepMetadata) (OutputFields, error)
type DeleteFunc ¶
type DeleteFunc func(*config.Context, *Step, *StepMetadata) (OutputFields, error)
type DifferFunc ¶
type OutputFields ¶
type OutputFields map[string]interface{}
type PreApplyFunc ¶
type PreApplyFunc func(*config.Context, *Step, *StepMetadata) error
type Step ¶
type Step struct { Label string ID string Parent *Step Create CreateFunc Read ReadFunc Update UpdateFunc // NOT IMPLEMENTED YET Delete DeleteFunc // This runs immediately before Apply and can be used to add dependencies PreApply PreApplyFunc ParallelDeps bool // this step does no "work", it only has descendants IsNoOp bool Attributes map[string]interface{} Outputs map[interface{}]OutputFields OutputFields OutputFields Dependencies []*Step Resource interface{} ExistingResource interface{} Logger *log.Entry // contains filtered or unexported fields }
func CleanupCronjobsStep ¶
func CleanupCronjobsStep(resource *config.KeepInSync) *Step
func CleanupOnlyStep ¶
func CleanupServicesStep ¶
func CleanupServicesStep(resource *config.KeepInSync) *Step
func CleanupStep ¶
func CleanupStep(resource *config.KeepInSync) *Step
func CleanupTaskDefinitionsStep ¶
func CleanupTaskDefinitionsStep(resource *config.KeepInSync) *Step
func ConsoleTaskStep ¶
func ConsoleTaskStep(resource *config.ConsoleTask) *Step
func CronDeploymentStep ¶
func CronRuleStep ¶
func CronSchedulesStep ¶ added in v0.1.0
func CronTargetStep ¶
func DeploymentStep ¶
Primary deployment step when user requests 'deploy'
func FirelensStep ¶
func LogGroupStep ¶
func LogGroupStep(resource interface{}) *Step
func NoopStep ¶
func NoopStep() *Step
Step that does no work at all. It's used to skip other steps (returned in their constructor)
func PreDeployTaskStep ¶
func PreDeployTaskStep(resource *config.PreDeployTask) *Step
func PreDeploymentStep ¶
func PreflightStep ¶
Run some preflight checks to make sure we can even deploy this thing
func PreloadLogGroupsStep ¶
func PreloadSecretsStep ¶
func PreloadStep ¶
func ScheduleGroupStep ¶ added in v0.1.0
func ServiceDeploymentStep ¶
func ServiceStep ¶
func TaskDefinitionStep ¶
func TaskDefinitionStep(resource config.IsTaskStruct) *Step
func (*Step) FindAllChildren ¶
find all children that have a specific label. Or all children if the label is nil
func (*Step) GetAttrMust ¶ added in v0.1.0
func (*Step) Identifier ¶
func (*Step) LookupOutput ¶
func (*Step) MarkApplied ¶
func (s *Step) MarkApplied()
func (*Step) SearchAttr ¶
looks in this step and any children
type UpdateFunc ¶
type UpdateFunc func(*config.Context, *Step, *StepMetadata) (OutputFields, error)
Source Files
¶
- cleanup.go
- cleanup_cronjobs.go
- cleanup_only.go
- cleanup_services.go
- cleanup_task_definitions.go
- console_task.go
- cron_deployment.go
- cron_rule.go
- cron_schedules.go
- cron_target.go
- cronjob.go
- deployment.go
- deregister_task_definitions.go
- firelens.go
- log_group.go
- noop.go
- predeploy_task.go
- predeployment.go
- preflight.go
- preload.go
- preload_log_groups.go
- preload_secrets.go
- schedule_group.go
- service.go
- service_deployment.go
- step.go
- task_definition.go
Click to show internal directories.
Click to hide internal directories.