storage

package
v0.0.32 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeDynamoDb

func InitializeDynamoDb(tableName string, schema *dynamodb.CreateTableInput, db dynamodbiface.DynamoDBAPI) error

InitializeDynamoDb - checks if table exists, in case it doesn't it creates it

func InitializeS3Bucket

func InitializeS3Bucket(bucketName, region string, svc s3iface.S3API) error

InitializeS3Bucket - checks if bucket exists, in case it doesn't it creates it

func NewAwsSession

func NewAwsSession(key string, secret string, region string) (*session.Session, error)

Create new AWS Session with provided API key, Secret and Region

func NewAwsSessionFromSharedConfig

func NewAwsSessionFromSharedConfig() (*session.Session, error)

Create new AWS Session using shared config (.aws/ dir and env)

func NewDynamoDbClient

func NewDynamoDbClient(key string, secret string, region string) dynamodbiface.DynamoDBAPI

Create new DynamoDB client

func NewS3Client

func NewS3Client(key string, secret string, region string) s3iface.S3API

Create new S3 client

Types

This section is empty.

Jump to

Keyboard shortcuts

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