s3

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(bucketName string, s3secret SecretS3, ssl bool) (*Client, error)

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, key string) error

func (*Client) Get added in v0.3.0

func (c *Client) Get(ctx context.Context, key string, wr io.Writer) error

func (*Client) GetURL

func (c *Client) GetURL(ctx context.Context, key string) (string, error)

func (*Client) Put

func (c *Client) Put(ctx context.Context, key string, data io.Reader, size int64) error

func (*Client) Stat

func (c *Client) Stat(ctx context.Context, key string) (bool, error)

type SecretS3

type SecretS3 struct {
	Endpoint        string `json:"endpoint"`
	Region          string `json:"region"`
	AccessKeyID     string `json:"accessKeyID"`
	AccessSecretKey string `json:"accessSecretKey"`
}

Jump to

Keyboard shortcuts

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