Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAWSAccountID ¶
GetAWSAccountID returns id
Types ¶
type BaseConfig ¶
type BaseConfig struct {
Region string `yaml:"region"`
Cluster string `yaml:"cluster"`
AccountID string `yaml:"-"`
}
BaseConfig baseconfig
type Config ¶
type Config struct {
Role string `yaml:"role,omitempty"`
*BaseConfig `yaml:",inline"`
Rules []*Rule `yaml:"rules"`
}
Config config
func LoadConfig ¶
LoadConfig loads config
func (*Config) GetRuleByName ¶
GetRuleByName gets rule by name
type ContainerOverride ¶
type ContainerOverride struct {
Name string `yaml:"name"`
Command []string `yaml:"command,flow"` // ,flow
Environment map[string]string `yaml:"environment,omitempty"`
}
ContainerOverride overrids container
type Rule ¶
type Rule struct {
Name string `yaml:"name"`
Description string `yaml:"description,omitempty"`
ScheduleExpression string `yaml:"scheduleExpression"`
Disabled bool `yaml:"disabled,omitempty"` // ENABLE | DISABLE
*Target `yaml:",inline"`
*BaseConfig `yaml:",inline,omitempty"`
}
Rule the rule
func (*Rule) PutRuleInput ¶
func (r *Rule) PutRuleInput() *cloudwatchevents.PutRuleInput
PutRuleInput puts rule input
func (*Rule) PutTargetsInput ¶
func (r *Rule) PutTargetsInput() *cloudwatchevents.PutTargetsInput
PutTargetsInput puts targets input
type Target ¶
type Target struct {
TargetID string `yaml:"targetId,omitempty"`
TaskDefinition string `yaml:"taskDefinition"`
TaskCount int64 `yaml:"taskCount,omitempty"`
ContainerOverrides []*ContainerOverride `yaml:"containerOverrides,omitempty"`
Role string `yaml:"role,omitempty"`
}
Target cluster
Source Files
¶
Click to show internal directories.
Click to hide internal directories.