aws

package
v0.0.0-...-daf2a86 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWriteCanceled = errors.New("cloud: blob write canceled")
)

Functions

This section is empty.

Types

type DynamoStore

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

func NewDefaultDynamoStore

func NewDefaultDynamoStore(tableName string, optFns ...func(*config.LoadOptions) error) (*DynamoStore, error)

func NewDynamoStore

func NewDynamoStore(cfg aws.Config, tableName string) (*DynamoStore, error)

func (*DynamoStore) Delete

func (s *DynamoStore) Delete(key string) error

func (*DynamoStore) Exists

func (s *DynamoStore) Exists(key string) (bool, error)

func (*DynamoStore) Get

func (s *DynamoStore) Get(key string) (*cloud.KVPair, error)

func (*DynamoStore) Put

func (s *DynamoStore) Put(key string, value []byte, options *cloud.WriteOptions) error

type S3Store

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

func NewDefaultS3Store

func NewDefaultS3Store(bucket string) *S3Store

func NewS3Store

func NewS3Store(endpoint, accessKey, secret, region, bucket string) *S3Store

func (*S3Store) Delete

func (s *S3Store) Delete(name string) error

func (*S3Store) Get

func (s *S3Store) Get(name string) (cloud.GetReader, error)

func (*S3Store) List

func (s *S3Store) List() ([]string, error)

func (*S3Store) Put

func (s *S3Store) Put(name string) (cloud.PutWriter, error)

func (*S3Store) Size

func (s *S3Store) Size(name string) (int64, error)

type SimpleEmailService

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

func NewDefaultSimpleEmailService

func NewDefaultSimpleEmailService() (*SimpleEmailService, error)

func NewSimpleEmailService

func NewSimpleEmailService(cfg aws.Config) (*SimpleEmailService, error)

func (*SimpleEmailService) Send

func (s *SimpleEmailService) Send(address, senderAddress, subject, message string) error

Jump to

Keyboard shortcuts

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