oss

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.7.0

type Config struct {
	Endpoint        string
	BucketName      string
	AccessKeyID     string
	AccessKeySecret string
}

type OSS

type OSS struct {
	// contains filtered or unexported fields
}

func New

func New(c Config) *OSS

func (*OSS) PostInfo

func (o *OSS) PostInfo(dir string) (*PolicyToken, error)

func (*OSS) PutInfo

func (o *OSS) PutInfo(key, contentType, callback, callbackVar string) (*PutInfo, error)

type PolicyToken

type PolicyToken struct {
	AccessKeyId string
	Host        string
	Expire      int64
	Signature   string
	Policy      string
	Directory   string
	Callback    string
}

type PostPolicy

type PostPolicy struct {
	Expiration string          `json:"expiration"`
	Conditions [][]interface{} `json:"conditions"`
}

type PutInfo

type PutInfo struct {
	SignedURL string
}

Jump to

Keyboard shortcuts

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