Help us shape the future of Go! Take the 2026 Go Developer Survey

appspec

package
v1.99.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version    = "0.0"
	TargetType = "AWS::ECS::Service"
)

Functions

This section is empty.

Types

type AppSpec

type AppSpec struct {
	Version   *string     `yaml:"version"`
	Resources []*Resource `yaml:"Resources,omitempty"`
	Hooks     []*Hook     `yaml:"Hooks,omitempty"`
}

func New

func New() *AppSpec

func NewWithService added in v0.18.0

func NewWithService(sv *types.Service, tdArn string) (*AppSpec, error)

func (*AppSpec) String

func (a *AppSpec) String() string

type AwsVpcConfiguration added in v0.18.0

type AwsVpcConfiguration struct {
	AssignPublicIp types.AssignPublicIp `yaml:"AssignPublicIp,omitempty"`
	SecurityGroups []string             `yaml:"SecurityGroups,omitempty"`
	Subnets        []string             `yaml:"Subnets,omitempty"`
}

type CapacityProviderStrategy added in v1.6.0

type CapacityProviderStrategy struct {
	CapacityProvider *string `yaml:"CapacityProvider,omitempty"`
	Base             int32   `yaml:"Base,omitempty"`
	Weight           int32   `yaml:"Weight,omitempty"`
}

type Hook added in v0.18.0

type Hook struct {
	BeforeInstall         string `yaml:"BeforeInstall,omitempty"`
	AfterInstall          string `yaml:"AfterInstall,omitempty"`
	AfterAllowTestTraffic string `yaml:"AfterAllowTestTraffic,omitempty"`
	BeforeAllowTraffic    string `yaml:"BeforeAllowTraffic,omitempty"`
	AfterAllowTraffic     string `yaml:"AfterAllowTraffic,omitempty"`
}

type LoadBalancerInfo

type LoadBalancerInfo struct {
	ContainerName *string `yaml:"ContainerName"`
	ContainerPort *int32  `yaml:"ContainerPort"`
}

type NetworkConfiguration added in v0.18.0

type NetworkConfiguration struct {
	AwsvpcConfiguration *AwsVpcConfiguration `yaml:"AwsvpcConfiguration,omitempty"`
}

type Properties

type Properties struct {
	TaskDefinition           *string                     `yaml:"TaskDefinition,omitempty"`
	LoadBalancerInfo         *LoadBalancerInfo           `yaml:"LoadBalancerInfo,omitempty"`
	PlatformVersion          *string                     `yaml:"PlatformVersion,omitempty"`
	NetworkConfiguration     *NetworkConfiguration       `yaml:"NetworkConfiguration,omitempty"`
	CapacityProviderStrategy []*CapacityProviderStrategy `yaml:"CapacityProviderStrategy,omitempty"`
}

type Resource

type Resource struct {
	TargetService *TargetService `yaml:"TargetService,omitempty"`
}

type TargetService

type TargetService struct {
	Type       *string     `yaml:"Type,omitempty"`
	Properties *Properties `yaml:"Properties,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL