aws

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathStyle = s3client.PathStyle
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	S3Clienter
	// contains filtered or unexported fields
}

func NewBucket

func NewBucket(region, name string, client S3Clienter) *Bucket

func (*Bucket) GetS3URL

func (b *Bucket) GetS3URL(path string) (string, error)

type S3Clienter

type S3Clienter interface {
	UploadPart(ctx context.Context, req *s3client.UploadPartRequest, payload []byte) (s3client.MultipartUploadResponse, error)
	CheckPartUploaded(ctx context.Context, req *s3client.UploadPartRequest) (bool, error)
	Checker(ctx context.Context, state *healthcheck.CheckState) error
	Head(key string) (*s3.HeadObjectOutput, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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