Documentation ¶
Index ¶
- func Md5HexDigest(body io.Reader) string
- type BaseClient
- type NamedClient
- func (nc *NamedClient) PutByBytes(src []byte, ctype string) (string, error)
- func (nc *NamedClient) PutByString(src, ctype string) (string, error)
- func (nc *NamedClient) PutByUrl(src string) (dst string, err error)
- func (nc *NamedClient) SetAuth(key, secret string) *NamedClient
- func (nc *NamedClient) SetBucket(name string) *NamedClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Md5HexDigest ¶
Types ¶
type BaseClient ¶
type NamedClient ¶
type NamedClient struct {
*BaseClient
}
func NewNamedClient ¶
func NewNamedClient() *NamedClient
func (*NamedClient) PutByBytes ¶
func (nc *NamedClient) PutByBytes(src []byte, ctype string) (string, error)
func (*NamedClient) PutByString ¶
func (nc *NamedClient) PutByString(src, ctype string) (string, error)
func (*NamedClient) SetAuth ¶
func (nc *NamedClient) SetAuth(key, secret string) *NamedClient
func (*NamedClient) SetBucket ¶
func (nc *NamedClient) SetBucket(name string) *NamedClient
Click to show internal directories.
Click to hide internal directories.