Documentation
¶
Index ¶
- type Client
- func (client Client) Copy(from, to string) (err error)
- func (client Client) Delete(path string) error
- func (client Client) DeleteObjects(paths []string) (err error)
- func (client Client) Get(path string) (file *os.File, err error)
- func (client Client) GetEndpoint() string
- func (client Client) GetStream(path string) (io.ReadCloser, error)
- func (client Client) GetURL(path string) (url string, err error)
- func (client Client) List(path string) ([]*oss.Object, error)
- func (client Client) Put(urlPath string, reader io.Reader) (*oss.Object, error)
- func (client Client) ToRelativePath(urlPath string) string
- func (client Client) ToS3Key(urlPath string) string
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client S3 storage
func (Client) DeleteObjects ¶
DeleteObjects delete files in bulk
func (Client) GetEndpoint ¶
GetEndpoint get endpoint, FileSystem's endpoint is /
func (Client) GetStream ¶
func (client Client) GetStream(path string) (io.ReadCloser, error)
GetStream get file as stream
func (Client) ToRelativePath ¶
ToRelativePath process path to relative path
type Config ¶
type Config struct {
AccessID string
AccessKey string
Region string
Bucket string
SessionToken string
ACL types.ObjectCannedACL
Endpoint string
S3Endpoint string
CustomEndpointResolver s3.EndpointResolverV2
S3ForcePathStyle bool
CacheControl string
AwsConfig *aws.Config
RoleARN string
EnableEC2IAMRole bool
}
Config S3 client config
Click to show internal directories.
Click to hide internal directories.