Documentation
¶
Index ¶
- type C
- type Client
- func (c *Client) BasePath() string
- func (c *Client) BaseURL() *url.URL
- func (c *Client) Copy(ctx C, from, to string) error
- func (c *Client) Delete(ctx C, p string) error
- func (c *Client) GetBytes(ctx C, p string) ([]byte, error)
- func (c *Client) GetInto(ctx C, p string, w io.Writer) error
- func (c *Client) GetJSON(ctx C, p string, v interface{}) error
- func (c *Client) ListAll(ctx C) ([]*minio.ObjectInfo, error)
- func (c *Client) PresignGet(ctx C, p string, exp time.Duration) (*url.URL, error)
- func (c *Client) PresignPut(ctx C, p string, exp time.Duration) (*url.URL, error)
- func (c *Client) Put(ctx C, p string, r io.Reader, n int64, contentType string) error
- func (c *Client) PutBytes(ctx C, p string, data []byte) error
- func (c *Client) PutFile(ctx C, p, fp string) error
- func (c *Client) PutJSON(ctx C, p string, v interface{}) error
- func (c *Client) Stat(ctx C, p string) (*minio.ObjectInfo, error)
- type Config
- type Credential
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
}
Client gives a client for accessing an S3-compatible storage service.
func NewClient ¶
func NewClient(config *Config, cred *Credential) (*Client, error)
NewClient creates a new client for accessing a storage endpoint with a base path prefix.
func (*Client) ListAll ¶
func (c *Client) ListAll(ctx C) ([]*minio.ObjectInfo, error)
ListAll lists all objects in the bucket.
func (*Client) PresignGet ¶
PresignGet presigns a URL for a future GET. The URL expires in d.
func (*Client) PresignPut ¶
PresignPut presigns a URL for a future PUT. The URL expires in d.
type Config ¶
Config contains the configuration for connecting to an S3-compatible storage service.
type Credential ¶
Credential contains the credentials required for accessing S3-compatible storage.
Click to show internal directories.
Click to hide internal directories.