aws

package
v0.0.0-...-17268cf Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CcsAwsSession ccsAwsSession

CCSAWSSession is the global AWS session for interacting with AWS.

View Source
var ErrTerminateEC2Instances = fmt.Errorf("unable to terminate EC2 instances")

Functions

func CreateS3URL

func CreateS3URL(bucket string, keys ...string) string

CreateS3URL creates an S3 URL from a bucket and a key string.

func ParseS3URL

func ParseS3URL(s3URL string) (string, string, error)

ParseS3URL parses an S3 url into a bucket and key.

func ReadFromS3Session

func ReadFromS3Session(session *session.Session, inputKey string) ([]byte, error)

ReadFromS3Session reads a key from S3 using given AWS context.

func WriteToS3Session

func WriteToS3Session(session *session.Session, outputKey string, data []byte)

WriteToS3Session writes the given byte array to S3.

Types

This section is empty.

Jump to

Keyboard shortcuts

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