aws

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfServiceExcistsInScope added in v0.1.2

func CheckIfServiceExcistsInScope(scope, service string, e *ec2.Client) (exists bool, err error)

func CheckNameLen added in v0.1.2

func CheckNameLen(name string) error

func Decrypt added in v0.1.2

func Decrypt(dataCrypt string, a *AWS) (scope string, v vpc.VPC, k key.Key, sg security.Group, slackId string, err error)

func Encrypt added in v0.1.2

func Encrypt(scope string, v vpc.VPC, k key.Key, sg security.Group, slackId string) (encrypted string, err error)

func GetPublicDNS added in v0.2.5

func GetPublicDNS(server, scope string, a *AWS) (publicDNS string, err error)

Types

type AWS

type AWS struct {
	// contains filtered or unexported fields
}

func (AWS) AddServerToScope added in v0.3.0

func (c AWS) AddServerToScope(scope, serverName string, v vpclib.VPC, k key.Key, sg security.Group, slackId string) (message string)

func (AWS) AddServiceToServer added in v0.1.2

func (c AWS) AddServiceToServer(scope, serverName string, v vpclib.VPC, k key.Key, sg security.Group, slackId string, service Service) (message string)

func (AWS) CreateDatabase added in v0.6.0

func (c AWS) CreateDatabase(scope, artifactId string, v vpclib.VPC, sg security.Group, slackId string) (endpoint string)

func (AWS) CreateScope added in v0.3.0

func (c AWS) CreateScope(scope string) (cryptData string)

func (AWS) GetEC2 added in v0.6.2

func (a AWS) GetEC2() *ec2.Client

func (AWS) GetELB added in v0.1.2

func (a AWS) GetELB() *elbv2.Client

func (AWS) GetRDS added in v0.6.2

func (a AWS) GetRDS() *rds.Client

func (*AWS) NewEC2

func (a *AWS) NewEC2(c aws.Config)

func (*AWS) NewELB

func (a *AWS) NewELB(c aws.Config)

func (*AWS) NewRDS added in v0.6.0

func (a *AWS) NewRDS(c aws.Config)

type Health added in v0.5.0

type Health struct {
	Name string `form:"service_name" json:"service_name" xml:"service_name"`
	Tag  string `form:"service_tag" json:"service_tag" xml:"service_tag"`
	Type string `form:"service_type" json:"service_type" xml:"service_type"`
}

type Service added in v0.1.2

type Service struct {
	Port             int    `form:"port" json:"port" xml:"port" binding:"required"`
	Path             string `form:"path" json:"path" xml:"path" binding:"required"`
	Icon             string `form:"icon" json:"icon" xml:"icon"`
	ELBListenerArn   string `form:"elb_listener_arn" json:"elb_listener_arn" xml:"elb_listener_arn" binding:"required"`
	ELBSecurityGroup string `form:"elb_securitygroup_id" json:"elb_securitygroup_id" xml:"elb_securitygroup_id"`
	UpdateProp       string `form:"semantic_update_service_properties" json:"semantic_update_service_properties" xml:"semantic_update_service_properties"`
	ArtifactId       string `form:"artifact_id" json:"artifact_id" xml:"artifact_id" binding:"required"`
	LocalOverride    string `form:"local_override_properties" json:"local_override_properties" xml:"local_override_properties"`
	Health           Health `form:"health" json:"health" xml:"health"`
	Key              string `form:"key" json:"key" xml:"key"`
}

type Stack added in v0.1.2

type Stack struct {
	// contains filtered or unexported fields
}

func NewStack added in v0.1.2

func NewStack() Stack

func (Stack) Empty added in v0.1.2

func (s Stack) Empty() bool

func (Stack) First added in v0.1.2

func (s Stack) First() func()

func (Stack) Last added in v0.1.2

func (s Stack) Last() func()

func (Stack) Len added in v0.1.2

func (s Stack) Len() int

func (*Stack) Pop added in v0.1.2

func (s *Stack) Pop() func()

func (*Stack) Push added in v0.1.2

func (s *Stack) Push(fun func())

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

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