Documentation
¶
Index ¶
- func HexSHA256Hash(b []byte) string
- func HmacSHA256(key []byte, data []byte) []byte
- type App
- func (app *App) ParseRequest(r *http.Request) (*Request, error)
- func (app *App) Respond(w http.ResponseWriter, code int, headers map[string]string, body []byte) error
- func (app *App) RespondError(w http.ResponseWriter, httpcode int, awscode string, err error, ...) error
- func (app *App) RespondFile(w http.ResponseWriter, code int, headers map[string]string, file *os.File) error
- func (app *App) RespondXML(w http.ResponseWriter, code int, payload any) error
- func (app *App) ValidSignatureV4(r *http.Request) (bool, *http.Request)
- type Auth
- type Bucket
- type CommonPrefix
- type CopyObjectResponse
- type Delete
- type DeleteError
- type DeleteObjectsResponse
- type DeletedObject
- type Error
- type InitiateMultipartUploadResponse
- type ListAllMyBucketsResult
- type ListBucketResult
- type ListVersionsResult
- type Metadata
- type Object
- type ObjectVersion
- type Owner
- type Request
- type VersioningConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HexSHA256Hash ¶
func HmacSHA256 ¶
Types ¶
type App ¶
type App struct {
Addr *string
Router *http.ServeMux
AccessKey *string
SecretKey *string
Mount *string
Metadata *string
}
func (*App) RespondError ¶
func (*App) RespondFile ¶
func (*App) RespondXML ¶
type CommonPrefix ¶
type CommonPrefix struct {
Prefix string
}
type CopyObjectResponse ¶
type DeleteError ¶
type DeleteObjectsResponse ¶
type DeleteObjectsResponse struct {
XMLName xml.Name `xml:"DeleteObjectsResponse"`
DeletedObjects []DeletedObject `xml:"Deleted,omitempty"`
Errors []DeleteError `xml:"Error,omitempty"`
}
type DeletedObject ¶
type ListAllMyBucketsResult ¶
type ListBucketResult ¶
type ListVersionsResult ¶
type ListVersionsResult struct {
XMLName xml.Name `xml:"ListVersionsResult"`
Name string
Prefix string
KeyMarker string
NextKeyMarker string `xml:"NextKeyMarker,omitempty"`
NextVersionIDMarker string `xml:"NextVersionIdMarker"`
VersionIDMarker string `xml:"VersionIdMarker"`
MaxKeys int
Delimiter string `xml:"Delimiter,omitempty"`
IsTruncated bool
CommonPrefixes []CommonPrefix
Version []ObjectVersion
EncodingType string `xml:"EncodingType,omitempty"`
}
type ObjectVersion ¶
type VersioningConfiguration ¶
Click to show internal directories.
Click to hide internal directories.