signer

package
v0.0.0-...-d80f745 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoint string
	Location string
}

type SignInfo

type SignInfo struct {
	Auth     string
	Sha256   string
	Date     string
	Token    string
	ExpireAt time.Time
}

type Signer

type Signer struct {
	sync.Mutex
	// contains filtered or unexported fields
}

使用临时用户生成签名的上传凭证

func NewSigner

func NewSigner(user, pass string, c Config) *Signer

func (*Signer) Sign

func (s *Signer) Sign(path string, mimeType string) (*SignInfo, error)

Jump to

Keyboard shortcuts

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