Documentation ¶
Index ¶
- Constants
- func CreateSecurityGroup(ctx context.Context, sess *session.Session, name string, vpcId *string, ...) (*string, error)
- func DefaultPublicSubnets(ctx context.Context, sess *session.Session) ([]*string, *string, error)
- func DefaultSubnets(ctx context.Context, sess *session.Session) ([]*string, *string, error)
- func ECSTaskPublicIPs(sess *session.Session, tasks []*ecs.Task) ([]string, error)
- func Error(err error) error
- func GetSession(c *SessionConfig) (*session.Session, error)
- func OptionalInt64(v int64) *int64
- func RegisterTaskDefinition(def *ecs.RegisterTaskDefinitionInput, ecsSvc *ecs.ECS, log hclog.Logger) (*ecs.TaskDefinition, error)
- func ValidateEcsMemCPUPair(mem, cpu int) error
- type SessionConfig
Constants ¶
View Source
const ( ENIStatusAttached = "ATTACHED" ENIAttachmentType = "ElasticNetworkInterface" )
Variables ¶
This section is empty.
Functions ¶
func CreateSecurityGroup ¶
func DefaultPublicSubnets ¶ added in v0.3.0
func DefaultSubnets ¶
func ECSTaskPublicIPs ¶ added in v0.3.0
func Error ¶ added in v0.3.2
Error takes an error and turns an ozzo-validation.Errors into a gRPC status error with field violations populated. If the error is nil or not an ozzo-validation error, it is returned as-is.
Note that validate.Validate doesn't return a validate.Errors. Only validation on structs and other containers will return the proper structure that will be wrapped by this call. This should be used against request structures.
func GetSession ¶ added in v0.1.3
func GetSession(c *SessionConfig) (*session.Session, error)
func OptionalInt64 ¶ added in v0.3.2
func RegisterTaskDefinition ¶ added in v0.6.0
func RegisterTaskDefinition( def *ecs.RegisterTaskDefinitionInput, ecsSvc *ecs.ECS, log hclog.Logger, ) (*ecs.TaskDefinition, error)
func ValidateEcsMemCPUPair ¶ added in v0.4.2
Types ¶
type SessionConfig ¶ added in v0.1.3
type SessionConfig struct { Region string Logger hclog.Logger }
Click to show internal directories.
Click to hide internal directories.