Documentation
¶
Index ¶
Constants ¶
View Source
const ( AmzAlgorithm = "X-Amz-Algorithm" AmzCredential = "X-Amz-Credential" AmzSignature = "X-Amz-Signature" AmzSignedHeaders = "X-Amz-SignedHeaders" AmzExpires = "X-Amz-Expires" AmzDate = "X-Amz-Date" AuthorizationHdr = "Authorization" ContentTypeHdr = "Content-Type" )
Variables ¶
View Source
var ErrNoAuthorizationHeader = errors.New("no authorization header")
ErrNoAuthorizationHeader is returned for unauthenticated requests.
Functions ¶
func MultipartFormValue ¶
MultipartFormValue gets value by key from multipart form.
func PresignRequest ¶ added in v0.28.0
func PresignRequest(creds *credentials.Credentials, reqData RequestData, presignData PresignData) (*http.Request, error)
PresignRequest forms pre-signed request to access objects without aws credentials.
Types ¶
type AuthHeader ¶ added in v0.28.0
type Box ¶
type Box struct { AccessBox *accessbox.Box ClientTime time.Time AuthHeaders *AuthHeader }
Box contains access box and additional info.
type PresignData ¶ added in v0.28.0
type RegexpSubmatcher ¶
type RegexpSubmatcher struct {
// contains filtered or unexported fields
}
func NewRegexpMatcher ¶
func NewRegexpMatcher(re *regexp.Regexp) *RegexpSubmatcher
NewRegexpMatcher creates a new regexp sub matcher.
func (*RegexpSubmatcher) GetSubmatches ¶
func (r *RegexpSubmatcher) GetSubmatches(target string) map[string]string
GetSubmatches returns matches from provided string. Zero length indicates no match.
Click to show internal directories.
Click to hide internal directories.