Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAWSAccountID ¶
GetAWSAccountID returns id
Types ¶
type AwsVpcConfiguration ¶ added in v0.3.0
type AwsVpcConfiguration struct {
Subnets []string `yaml:"subnets"`
SecurityGroups []string `yaml:"security_groups,omitempty"`
AssinPublicIP string `yaml:"assign_public_ip,omitempty"`
}
AwsVpcConfiguration represents AWS VPC configuration
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"`
Plugins []*Plugin `yaml:"plugins,omitempty"`
// contains filtered or unexported fields
}
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 DeadLetterConfig ¶ added in v0.4.0
type DeadLetterConfig struct {
Sqs string `yaml:"sqs"`
}
A DeadLetterConfig object that contains information about a dead-letter queue configuration.
type NetworkConfiguration ¶ added in v0.3.0
type NetworkConfiguration struct {
AwsVpcConfiguration *AwsVpcConfiguration `yaml:"aws_vpc_configuration"`
}
NetworkConfiguration represents ECS network configuration
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"`
Group string `yaml:"group,omitempty"`
LaunchType string `yaml:"launch_type,omitempty"`
PlatformVersion string `yaml:"platform_version,omitempty"`
NetworkConfiguration *NetworkConfiguration `yaml:"network_configuration,omitempty"`
DeadLetterConfig *DeadLetterConfig `yaml:"dead_letter_config,omitempty"`
PropagateTags string `yaml:"propagateTags,omitempty"`
}
Target cluster
Source Files
¶
Click to show internal directories.
Click to hide internal directories.