s3

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 8 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 {
	Region      string
	Bucket      string
	AccessKeyID string

	URL string
	// contains filtered or unexported fields
}

Client contains the DO configuration and methods

func NewClient

func NewClient(url, region, accessKey, secretKey, bucket string) (*Client, error)

func (*Client) DeleteFile

func (c *Client) DeleteFile(input *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)

func (*Client) FileExists

func (c *Client) FileExists(input *s3.HeadObjectInput) (bool, error)

func (*Client) GetPrivateURL

func (c *Client) GetPrivateURL(input *s3.GetObjectInput) (string, error)

func (*Client) ListBuckets

func (c *Client) ListBuckets() ([]*s3.Bucket, error)

func (*Client) ListFiles

func (c *Client) ListFiles(input *s3.ListObjectsInput) (*s3.ListObjectsOutput, error)

func (*Client) UploadFile

func (c *Client) UploadFile(input *s3.PutObjectInput) (*s3.PutObjectOutput, error)

type Config

type Config struct {
	URL         string
	Region      string
	AccessKeyID string
	Bucket      string
}

Jump to

Keyboard shortcuts

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