Documentation ¶
Index ¶
- func EscapeProper(s string) string
- func ParseAuthHeaders(req *http.Request) map[string]string
- type V2ResponseSigner
- func (v *V2ResponseSigner) Check(req *http.Request, resp *http.Response, secret string) *signers.AuthenticationError
- func (v *V2ResponseSigner) CreateSignable(req *http.Request, authHeaders map[string]string, ...) []byte
- func (v *V2ResponseSigner) SetTrailer(rw http.ResponseWriter)
- func (v *V2ResponseSigner) SignResponse(req *http.Request, rw *signers.SignableResponseWriter, secret string) (string, *signers.AuthenticationError)
- func (v *V2ResponseSigner) SignResponseDirect(req *http.Request, rw *signers.SignableResponseWriter, secret string) *signers.AuthenticationError
- type V2Signer
- func (v *V2Signer) Check(req *http.Request, secret string) *signers.AuthenticationError
- func (v *V2Signer) CreateSignable(req *http.Request, authHeaders map[string]string, bodyhash string) []byte
- func (v *V2Signer) GenerateAuthorization(req *http.Request, authHeaders map[string]string, signature string) (string, *signers.AuthenticationError)
- func (v *V2Signer) GetIdentificationRegex() *regexp.Regexp
- func (v *V2Signer) GetResponseSigner() signers.ResponseSigner
- func (v *V2Signer) HashBody(req *http.Request) (string, *signers.AuthenticationError)
- func (v *V2Signer) HashBytes(b []byte) string
- func (v *V2Signer) ParseAuthHeaders(req *http.Request) map[string]string
- func (v *V2Signer) Sign(req *http.Request, authHeaders map[string]string, secret string) (string, *signers.AuthenticationError)
- func (v *V2Signer) SignDirect(req *http.Request, authHeaders map[string]string, secret string) *signers.AuthenticationError
- func (v *V2Signer) Version() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeProper ¶
Types ¶
type V2ResponseSigner ¶
func NewV2ResponseSigner ¶
func NewV2ResponseSigner(digest func() hash.Hash) *V2ResponseSigner
func (*V2ResponseSigner) Check ¶
func (v *V2ResponseSigner) Check(req *http.Request, resp *http.Response, secret string) *signers.AuthenticationError
func (*V2ResponseSigner) CreateSignable ¶
func (v *V2ResponseSigner) CreateSignable(req *http.Request, authHeaders map[string]string, rw *signers.SignableResponseWriter) []byte
func (*V2ResponseSigner) SetTrailer ¶
func (v *V2ResponseSigner) SetTrailer(rw http.ResponseWriter)
func (*V2ResponseSigner) SignResponse ¶
func (v *V2ResponseSigner) SignResponse(req *http.Request, rw *signers.SignableResponseWriter, secret string) (string, *signers.AuthenticationError)
func (*V2ResponseSigner) SignResponseDirect ¶
func (v *V2ResponseSigner) SignResponseDirect(req *http.Request, rw *signers.SignableResponseWriter, secret string) *signers.AuthenticationError
type V2Signer ¶
type V2Signer struct { *signers.Digester *signers.Identifiable // contains filtered or unexported fields }
func NewV2Signer ¶
func NewV2Signer(digest func() hash.Hash) (*V2Signer, *signers.AuthenticationError)
func (*V2Signer) CreateSignable ¶
func (*V2Signer) GenerateAuthorization ¶
func (*V2Signer) GetIdentificationRegex ¶
func (*V2Signer) GetResponseSigner ¶
func (v *V2Signer) GetResponseSigner() signers.ResponseSigner
func (*V2Signer) ParseAuthHeaders ¶
func (*V2Signer) SignDirect ¶
Click to show internal directories.
Click to hide internal directories.