awscloud

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AWSECRLogin

func AWSECRLogin(registry string, credentials AWSCredentials) error

func GetAWSAccessKeyID

func GetAWSAccessKeyID() (string, error)

func GetAWSRegionSet

func GetAWSRegionSet() (string, error)

func GetAWSSecretAccessKey

func GetAWSSecretAccessKey() (string, error)

func GetCredentialsAsEnvVarsMap

func GetCredentialsAsEnvVarsMap(cred AWSCredentials) map[string]string

func GetECRPublishAddress

func GetECRPublishAddress(registry, repository string) string

func GetECSTaskDefinition

func GetECSTaskDefinition(client *ecs.Client, taskDefName string) (*ecs.DescribeTaskDefinitionOutput, error)

func GetImageURL

func GetImageURL(repository, tag string) string

func UpdateECSService

func UpdateECSService(client *ecs.Client, opt ECSUpdateServiceOptions) error

func UpdateECSTaskContainerDefinition

func UpdateECSTaskContainerDefinition(client *ecs.Client,
	taskDef *ecs.DescribeTaskDefinitionOutput, opt ECSTaskDefContainerDefUpdateOptions) (string,
	error)

Types

type AWSCredentials

type AWSCredentials struct {
	AccessKeyID     string
	SecretAccessKey string
	Region          string
}

func GetCredentials

func GetCredentials() (AWSCredentials, error)

type ECSTaskDefContainerDefUpdateOptions

type ECSTaskDefContainerDefUpdateOptions struct {
	ImageURL string
	Version  string
}

type ECSUpdateServiceOptions

type ECSUpdateServiceOptions struct {
	Service            string
	Cluster            string
	ForceNewDeployment bool
	TaskDefARN         string
}

Jump to

Keyboard shortcuts

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