Documentation
¶
Index ¶
- type Client
- func (n *Client) CopyFile(ctx context.Context, sourceKey string, destinationKey string, overwrite bool) error
- func (n *Client) DeleteFile(ctx context.Context, key string) error
- func (n *Client) DownloadFile(ctx context.Context, key string) (io.ReadCloser, string, int64, error)
- func (n *Client) GenerateImageURL(key string, width int) string
- func (n *Client) GenerateUploadToken(ctx context.Context, fileName string, dir string, ...) ([3]string, error)
- func (n *Client) IsFileExists(ctx context.Context, key string) (bool, error)
- func (n *Client) MoveFile(ctx context.Context, sourceKey string, destinationKey string, overwrite bool) error
- func (n *Client) UploadFile(ctx context.Context, file io.Reader, key string) (string, error)
- func (n *Client) UploadLocalFile(ctx context.Context, file string, key string) (string, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { urlhandler.Handler // contains filtered or unexported fields }
func (*Client) DownloadFile ¶
func (*Client) GenerateUploadToken ¶
func (*Client) IsFileExists ¶
func (*Client) UploadFile ¶
Click to show internal directories.
Click to hide internal directories.