s3

package
v0.0.0-...-e876575 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

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

func NewApi

func NewApi(client *s3.Client) *Api

func (*Api) GetObject

func (api *Api) GetObject(bucket, key string) (*GetObjectOutput, error)

type Bucket

type Bucket struct {
}

type BucketObject

type BucketObject struct {
	ETag         string
	Key          string
	LastModified time.Time
	Owner        string
	Size         int64
}

type BucketObjectRepository

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

func NewBucketObjectRepository

func NewBucketObjectRepository(cfg aws.Config, bucket string) BucketObjectRepository

func (*BucketObjectRepository) Get

func (m *BucketObjectRepository) Get(key string) (string, error)

func (*BucketObjectRepository) List

func (m *BucketObjectRepository) List() ([]BucketObject, error)

type BucketRepository

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

func NewBucketRepository

func NewBucketRepository(cfg aws.Config) BucketRepository

func (*BucketRepository) List

func (r *BucketRepository) List() (*Bucket, error)

type GetObjectOutput

type GetObjectOutput struct {
	Bucket   string
	Key      string
	Metadata map[string]string
	Contents io.ReadCloser
}

Jump to

Keyboard shortcuts

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