client

package
v0.0.317 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 26 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAwsS3Client added in v0.0.291

func NewAwsS3Client(c *config.S3Cli) (*s3.S3, error)

func Sign

func Sign(req *request.Request)

Sign requests with signature version 2.

Will sign the requests with the service config's Credentials object Signing is skipped if the credentials is the credentials.AnonymousCredentials object.

Types

type S3CompatibleClient added in v0.0.291

type S3CompatibleClient interface {
	Get(src string, dest io.WriterAt) error
	Put(src io.ReadSeeker, dest string) error
	Delete(dest string) error
	Exists(dest string) (bool, error)
	Sign(objectID string, action string, expiration time.Duration) (string, error)
}

func New

func New(s3Client *s3.S3, s3cliConfig *config.S3Cli) S3CompatibleClient

New returns an S3CompatibleClient

Jump to

Keyboard shortcuts

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