ossminiv2

package
v1.16.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKeeper

func NewKeeper(serverAddr string, bucketName ...string) *xOssminiV2Keeper

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

type OssminiV2Keeper

type OssminiV2Keeper interface {
	Staging(string, []byte) (string, error)
	Submit(string, []byte) (string, error)
	Exchange(string) (string, error)
	Complete(string) (string, error)
	Fetch(string) ([]byte, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL