aws

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDynamoClient

func NewDynamoClient(workspace, region string) (*dynamodb.Client, error)

func NewS3Client

func NewS3Client(workspace, region string) (*s3.Client, error)

Types

type AwsLock

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

func NewAwsLock

func NewAwsLock(client *dynamodb.Client, workspace, table string) *AwsLock

func (*AwsLock) Lock

func (l *AwsLock) Lock() error

func (*AwsLock) Unlock

func (l *AwsLock) Unlock() error

type AwsTransport

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

func NewAwsTransport

func NewAwsTransport(client *s3.Client, workspace, bucket string) *AwsTransport

func (*AwsTransport) Reader

func (t *AwsTransport) Reader(key string) (io.ReadCloser, error)

func (*AwsTransport) Writer

func (t *AwsTransport) Writer(key string) (io.WriteCloser, error)

type AwsUploader

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

func (*AwsUploader) Close

func (u *AwsUploader) Close() error

func (*AwsUploader) Write

func (u *AwsUploader) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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