Documentation ¶
Index ¶
- type Client
- func (c *Client) Upload(p UploadPayload) (string, error)
- func (c *Client) UploadBase64(b64File string) (string, error)
- func (c *Client) UploadFromReader(data io.Reader, fileName string, contentType *string) (string, error)
- func (c *Client) UploadMultipartFile(h *multipart.FileHeader) (string, error)
- type ClientConfig
- type UploadPayload
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(c ClientConfig) (*Client, error)
func (*Client) Upload ¶
func (c *Client) Upload(p UploadPayload) (string, error)
Uploads data from provided upload payload and then returns the object key.
func (*Client) UploadBase64 ¶
Decodes the provided base64 string and uploads it to s3 and then returns the object key.
func (*Client) UploadFromReader ¶
func (c *Client) UploadFromReader(data io.Reader, fileName string, contentType *string) (string, error)
Uploads data from provided reader and then returns the object key.
func (*Client) UploadMultipartFile ¶
func (c *Client) UploadMultipartFile(h *multipart.FileHeader) (string, error)
Uploads data from provided reader and then returns the object key.
type ClientConfig ¶
Click to show internal directories.
Click to hide internal directories.