package
Version:
v0.0.0-...-d80f745
Opens a new window with list of versions in this module.
Published: Dec 9, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Endpoint string
Location string
}
type SignInfo struct {
Auth string
Sha256 string
Date string
Token string
ExpireAt time.Time
}
type Signer struct {
sync.Mutex
}
使用临时用户生成签名的上传凭证
func NewSigner(user, pass string, c Config) *Signer
func (s *Signer) Sign(path string, mimeType string) (*SignInfo, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.