Documentation
¶
Index ¶
- type Client
- func (client Client) Copy(ctx context.Context, from, to string) (err error)
- func (client Client) Delete(ctx context.Context, path string) error
- func (client Client) DeleteObjects(ctx context.Context, paths []string) (err error)
- func (client Client) Get(ctx context.Context, path string) (file *os.File, err error)
- func (client Client) GetEndpoint(ctx context.Context) string
- func (client Client) GetStream(ctx context.Context, path string) (io.ReadCloser, error)
- func (client Client) GetURL(ctx context.Context, path string) (url string, err error)
- func (client Client) List(ctx context.Context, path string) ([]*oss.Object, error)
- func (client Client) Put(ctx context.Context, urlPath string, reader io.Reader) (*oss.Object, error)
- 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 /
Click to show internal directories.
Click to hide internal directories.