Documentation ¶
Index ¶
- func NewKeeper(serverAddr string, bucketName ...string) *xOssminiV2Keeper
- type OssminiV2Client
- func (oclient *OssminiV2Client) Bucket(bucketName string) *OssminiV2Client
- func (oclient *OssminiV2Client) Complete(srcpath string) (string, error)
- func (oclient *OssminiV2Client) Exchange(ticket string) (string, error)
- func (oclient *OssminiV2Client) Fetch(srcpath string) ([]byte, error)
- func (oclient *OssminiV2Client) Remove(srcpath string) error
- func (oclient *OssminiV2Client) Secret(appId, appSecret string) *OssminiV2Client
- func (oclient *OssminiV2Client) Staging(filename string, imageBytes []byte) (string, error)
- func (oclient *OssminiV2Client) StagingSecret(appId, appSecret string) *OssminiV2Client
- func (oclient *OssminiV2Client) Submit(filename string, imageBytes []byte) (string, error)
- func (oclient *OssminiV2Client) UseSSL() *OssminiV2Client
- type OssminiV2Keeper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OssminiV2Client ¶
type OssminiV2Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(serverAddr string, bucketName ...string) *OssminiV2Client
func (*OssminiV2Client) Bucket ¶
func (oclient *OssminiV2Client) Bucket(bucketName string) *OssminiV2Client
func (*OssminiV2Client) Complete ¶
func (oclient *OssminiV2Client) Complete(srcpath string) (string, error)
func (*OssminiV2Client) Exchange ¶
func (oclient *OssminiV2Client) Exchange(ticket string) (string, error)
func (*OssminiV2Client) Fetch ¶
func (oclient *OssminiV2Client) Fetch(srcpath string) ([]byte, error)
func (*OssminiV2Client) Remove ¶
func (oclient *OssminiV2Client) Remove(srcpath string) error
func (*OssminiV2Client) Secret ¶
func (oclient *OssminiV2Client) Secret(appId, appSecret string) *OssminiV2Client
func (*OssminiV2Client) Staging ¶
func (oclient *OssminiV2Client) Staging(filename string, imageBytes []byte) (string, error)
func (*OssminiV2Client) StagingSecret ¶
func (oclient *OssminiV2Client) StagingSecret(appId, appSecret string) *OssminiV2Client
func (*OssminiV2Client) Submit ¶
func (oclient *OssminiV2Client) Submit(filename string, imageBytes []byte) (string, error)
func (*OssminiV2Client) UseSSL ¶
func (oclient *OssminiV2Client) UseSSL() *OssminiV2Client
Click to show internal directories.
Click to hide internal directories.