m

package
v1.0.6 Latest Latest
Warning

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

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

Documentation

Overview

Package m provides S3 models.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectCache

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

ObjectCache ...

type S3Bucket

type S3Bucket struct {
	Name   string
	Region string
}

S3Bucket ...

type S3Model

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

S3Model ...

func NewS3Model

func NewS3Model(endpointURL string, region string, pathStyle bool) *S3Model

NewS3Model ...

func (S3Model) AvailableBuckets

func (s3m S3Model) AvailableBuckets() []S3Bucket

AvailableBuckets ...

func (S3Model) Bucket

func (s3m S3Model) Bucket() string

Bucket ...

func (S3Model) Download

func (s3m S3Model) Download(object s3types.Object, destPath string) (n int64, err error)

Download ...

func (S3Model) List

func (s3m S3Model) List() (
	prefixes []string,
	keys []string,
	err error,
)

List ...

func (S3Model) ListObjects

func (s3m S3Model) ListObjects(key string) []s3types.Object

ListObjects ...

func (*S3Model) MoveDown

func (s3m *S3Model) MoveDown(prefix string) error

MoveDown ...

func (*S3Model) MoveUp

func (s3m *S3Model) MoveUp() error

MoveUp ...

func (S3Model) Prefix

func (s3m S3Model) Prefix() string

Prefix ...

func (*S3Model) SetBucket

func (s3m *S3Model) SetBucket(bucket string) error

SetBucket ...

Jump to

Keyboard shortcuts

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