aws

package
v0.0.0-...-810d5f5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBucket

func CreateBucket(session *session.Session, bucketName, acl string) (*s3.CreateBucketOutput, error)

CreateBucket to create a new bucket

func CreateBucketIfNotExists

func CreateBucketIfNotExists(session *session.Session, bucketName, acl string) (*s3.CreateBucketOutput, error)

createBucketIfNotExists to either create a bucket, or return nil, nil if the bucket already exists

func GetParameter

func GetParameter(session *session.Session, name string, withDecryption bool) (string, error)

GetParameter to fetch a value from AWS parameter store

func GetPrivateKeyFromParameter

func GetPrivateKeyFromParameter(session *session.Session, name string) (*ecdsa.PrivateKey, error)

GetPrivateKeyFromParameter to fetch and decode a private key from AWS parameter store

func RestartTasksMatchingServiceName

func RestartTasksMatchingServiceName(session *session.Session, cluster, matchName string) error

RestartTasksMatchingServiceName to restart tasks created by services containing `matchName` in their names using `StopTask`

func UploadToBucket

func UploadToBucket(session *session.Session, fileContent io.ReadSeeker, fileName, bucketName string) (*s3manager.UploadOutput, error)

UploadToBucket to put a file in a bucket

func WaitUntilBucketExists

func WaitUntilBucketExists(session *session.Session, bucketName string) error

WaitUntilBucketExists to return nil if a bucket exists, or hang for the timeout interval then error

Types

This section is empty.

Jump to

Keyboard shortcuts

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