s3

package
v0.0.0-...-4bf6eee Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(accessKey, secretKey string, options ...Options) (*Client, error)

func (*Client) FileList

func (s *Client) FileList(bucket, path string) ([]Object, error)

func (*Client) FileListV2

func (s *Client) FileListV2(bucket, path string) ([]Object, error)
func (s *Client) Link(bucket, key string, expire time.Duration) (string, error)

type Object

type Object struct {
	Key  string
	Size int64
}

type Options

type Options struct {
	EndPoint         string
	Region           string
	CustomHost       string
	RemoveBucket     bool
	S3ForcePathStyle *bool
}

Jump to

Keyboard shortcuts

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