Documentation
¶
Index ¶
- Variables
- func AddAuthHeader(r *http.Request, bucket string, key string, accessKey string, sk []byte) error
- type P3
- func (p *P3) DeleteObject(bucket string, key string) error
- func (p *P3) DeleteObjectByCID(cid string) error
- func (p *P3) GetObject(bucket string, key string) ([]byte, error)
- func (p *P3) GetObjectByCID(cid string) ([]byte, error)
- func (p *P3) PutObject(bucket string, key string, data []byte) (string, error)
- type PutObjectResp
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrReqDateMissing = errors.New("request date missing") ErrReqDateTooOld = errors.New("request date too old") )
Functions ¶
Types ¶
type P3 ¶
type P3 struct {
// contains filtered or unexported fields
}
func (*P3) DeleteObjectByCID ¶
type PutObjectResp ¶
type PutObjectResp struct {
CID string `json:"cid"`
}
Click to show internal directories.
Click to hide internal directories.