client

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAwsS3Client

func NewAwsS3Client(c *s3cli_config.S3Cli) (*s3.Client, error)

func NewAwsS3ClientWithApiOptions

func NewAwsS3ClientWithApiOptions(
	c *s3cli_config.S3Cli,
	apiOptions []func(stack *middleware.Stack) error,
) (*s3.Client, error)

Types

type BlobProperties

type BlobProperties struct {
	ETag          string    `json:"etag,omitempty"`
	LastModified  time.Time `json:"last_modified,omitempty"`
	ContentLength int64     `json:"content_length,omitempty"`
}

type S3CompatibleClient

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

func New

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

New returns an S3CompatibleClient

func (*S3CompatibleClient) Copy

func (c *S3CompatibleClient) Copy(srcBlob string, dstBlob string) error

func (*S3CompatibleClient) Delete

func (c *S3CompatibleClient) Delete(dest string) error

func (*S3CompatibleClient) DeleteRecursive

func (c *S3CompatibleClient) DeleteRecursive(prefix string) error

func (*S3CompatibleClient) EnsureStorageExists

func (c *S3CompatibleClient) EnsureStorageExists() error

func (*S3CompatibleClient) Exists

func (c *S3CompatibleClient) Exists(dest string) (bool, error)

func (*S3CompatibleClient) Get

func (c *S3CompatibleClient) Get(src string, dest string) error

func (*S3CompatibleClient) List

func (c *S3CompatibleClient) List(prefix string) ([]string, error)

func (*S3CompatibleClient) Properties

func (c *S3CompatibleClient) Properties(dest string) error

func (*S3CompatibleClient) Put

func (c *S3CompatibleClient) Put(src string, dest string) error

func (*S3CompatibleClient) Sign

func (c *S3CompatibleClient) Sign(objectID string, action string, expiration time.Duration) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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