Documentation
¶
Index ¶
- func EscapeProper(s string) string
- func ParseAuthHeadersDice(req *http.Request) map[string]string
- func V1SignUrlless(req *http.Request, id string, secret string) string
- type LiftSigner
- func (v *LiftSigner) Check(req *http.Request, secret string) *signers.AuthenticationError
- func (v *LiftSigner) CreateSignable(req *http.Request, authHeaders map[string]string) []byte
- func (v *LiftSigner) GenerateAuthorization(req *http.Request, authHeaders map[string]string, signature string) (string, *signers.AuthenticationError)
- func (v *LiftSigner) GetIdentificationRegex() *regexp.Regexp
- func (v *LiftSigner) GetResponseSigner() signers.ResponseSigner
- func (v *LiftSigner) HashBody(req *http.Request) (string, *signers.AuthenticationError)
- func (v *LiftSigner) Sign(req *http.Request, authHeaders map[string]string, secret string) (string, *signers.AuthenticationError)
- func (v *LiftSigner) SignDirect(req *http.Request, authHeaders map[string]string, secret string) *signers.AuthenticationError
- func (v *LiftSigner) Version() int
- type SearchResponseSigner
- func (v *SearchResponseSigner) Check(req *http.Request, resp *http.Response, secret string) *signers.AuthenticationError
- func (v *SearchResponseSigner) CreateSignable(body string, nonce string) []byte
- func (v *SearchResponseSigner) SetTrailer(rw http.ResponseWriter)
- func (v *SearchResponseSigner) SignResponse(req *http.Request, rw *signers.SignableResponseWriter, secret string) (string, *signers.AuthenticationError)
- func (v *SearchResponseSigner) SignResponseDirect(req *http.Request, rw *signers.SignableResponseWriter, secret string) *signers.AuthenticationError
- type SearchSigner
- func (v *SearchSigner) Check(r *http.Request, secret string) *signers.AuthenticationError
- func (v *SearchSigner) GenerateAuthorization(r *http.Request, authHeaders map[string]string, signature string) (string, *signers.AuthenticationError)
- func (v *SearchSigner) GetIdentificationRegex() *regexp.Regexp
- func (v *SearchSigner) GetResponseSigner() signers.ResponseSigner
- func (v *SearchSigner) HashBody(r *http.Request) (string, *signers.AuthenticationError)
- func (v *SearchSigner) ParseAuthHeaders(req *http.Request) map[string]string
- func (v *SearchSigner) Sign(r *http.Request, authHeaders map[string]string, secret string) (string, *signers.AuthenticationError)
- func (v *SearchSigner) SignDirect(r *http.Request, authHeaders map[string]string, secret string) *signers.AuthenticationError
- func (v *SearchSigner) Version() int
- type V2DiceLegacyResponseSigner
- func (v *V2DiceLegacyResponseSigner) Check(req *http.Request, resp *http.Response, secret string) *signers.AuthenticationError
- func (v *V2DiceLegacyResponseSigner) CreateSignable(req *http.Request, authHeaders map[string]string, ...) []byte
- func (v *V2DiceLegacyResponseSigner) SetTrailer(rw http.ResponseWriter)
- func (v *V2DiceLegacyResponseSigner) SignResponse(req *http.Request, rw *signers.SignableResponseWriter, secret string) (string, *signers.AuthenticationError)
- func (v *V2DiceLegacyResponseSigner) SignResponseDirect(req *http.Request, rw *signers.SignableResponseWriter, secret string) *signers.AuthenticationError
- type V2SignerDiceLegacy
- func (v *V2SignerDiceLegacy) Check(req *http.Request, secret string) *signers.AuthenticationError
- func (v *V2SignerDiceLegacy) CreateSignable(req *http.Request, authHeaders map[string]string, bodyhash string) []byte
- func (v *V2SignerDiceLegacy) GenerateAuthorization(req *http.Request, authHeaders map[string]string, signature string) (string, *signers.AuthenticationError)
- func (v *V2SignerDiceLegacy) GetIdentificationRegex() *regexp.Regexp
- func (v *V2SignerDiceLegacy) GetResponseSigner() signers.ResponseSigner
- func (v *V2SignerDiceLegacy) HashBody(req *http.Request) (string, *signers.AuthenticationError)
- func (v *V2SignerDiceLegacy) HashBytes(b []byte) string
- func (v *V2SignerDiceLegacy) ParseAuthHeaders(req *http.Request) map[string]string
- func (v *V2SignerDiceLegacy) Sign(req *http.Request, authHeaders map[string]string, secret string) (string, *signers.AuthenticationError)
- func (v *V2SignerDiceLegacy) SignDirect(req *http.Request, authHeaders map[string]string, secret string) *signers.AuthenticationError
- func (v *V2SignerDiceLegacy) Version() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeProper ¶
Types ¶
type LiftSigner ¶
type LiftSigner struct { *signers.Digester *signers.Identifiable }
func NewLiftSigner ¶
func NewLiftSigner() (*LiftSigner, *signers.AuthenticationError)
func (*LiftSigner) Check ¶
func (v *LiftSigner) Check(req *http.Request, secret string) *signers.AuthenticationError
func (*LiftSigner) CreateSignable ¶
See guidelines at https://docs.acquia.com/lift/omni/api/hmac
func (*LiftSigner) GenerateAuthorization ¶
func (v *LiftSigner) GenerateAuthorization(req *http.Request, authHeaders map[string]string, signature string) (string, *signers.AuthenticationError)
func (*LiftSigner) GetIdentificationRegex ¶
func (v *LiftSigner) GetIdentificationRegex() *regexp.Regexp
func (*LiftSigner) GetResponseSigner ¶
func (v *LiftSigner) GetResponseSigner() signers.ResponseSigner
func (*LiftSigner) HashBody ¶
func (v *LiftSigner) HashBody(req *http.Request) (string, *signers.AuthenticationError)
func (*LiftSigner) Sign ¶
func (v *LiftSigner) Sign(req *http.Request, authHeaders map[string]string, secret string) (string, *signers.AuthenticationError)
func (*LiftSigner) SignDirect ¶
func (v *LiftSigner) SignDirect(req *http.Request, authHeaders map[string]string, secret string) *signers.AuthenticationError
func (*LiftSigner) Version ¶
func (v *LiftSigner) Version() int
type SearchResponseSigner ¶
func NewSearchResponseSigner ¶
func NewSearchResponseSigner(digest func() hash.Hash) *SearchResponseSigner
func (*SearchResponseSigner) Check ¶
func (v *SearchResponseSigner) Check(req *http.Request, resp *http.Response, secret string) *signers.AuthenticationError
func (*SearchResponseSigner) CreateSignable ¶
func (v *SearchResponseSigner) CreateSignable(body string, nonce string) []byte
func (*SearchResponseSigner) SetTrailer ¶
func (v *SearchResponseSigner) SetTrailer(rw http.ResponseWriter)
func (*SearchResponseSigner) SignResponse ¶
func (v *SearchResponseSigner) SignResponse(req *http.Request, rw *signers.SignableResponseWriter, secret string) (string, *signers.AuthenticationError)
func (*SearchResponseSigner) SignResponseDirect ¶
func (v *SearchResponseSigner) SignResponseDirect(req *http.Request, rw *signers.SignableResponseWriter, secret string) *signers.AuthenticationError
type SearchSigner ¶
type SearchSigner struct { *signers.Digester *signers.Identifiable // contains filtered or unexported fields }
func NewSearchSigner ¶
func NewSearchSigner(digest func() hash.Hash) (*SearchSigner, *signers.AuthenticationError)
func (*SearchSigner) Check ¶
func (v *SearchSigner) Check(r *http.Request, secret string) *signers.AuthenticationError
func (*SearchSigner) GenerateAuthorization ¶
func (v *SearchSigner) GenerateAuthorization(r *http.Request, authHeaders map[string]string, signature string) (string, *signers.AuthenticationError)
func (*SearchSigner) GetIdentificationRegex ¶
func (v *SearchSigner) GetIdentificationRegex() *regexp.Regexp
func (*SearchSigner) GetResponseSigner ¶
func (v *SearchSigner) GetResponseSigner() signers.ResponseSigner
func (*SearchSigner) HashBody ¶
func (v *SearchSigner) HashBody(r *http.Request) (string, *signers.AuthenticationError)
func (*SearchSigner) ParseAuthHeaders ¶
func (v *SearchSigner) ParseAuthHeaders(req *http.Request) map[string]string
func (*SearchSigner) Sign ¶
func (v *SearchSigner) Sign(r *http.Request, authHeaders map[string]string, secret string) (string, *signers.AuthenticationError)
func (*SearchSigner) SignDirect ¶
func (v *SearchSigner) SignDirect(r *http.Request, authHeaders map[string]string, secret string) *signers.AuthenticationError
func (*SearchSigner) Version ¶
func (v *SearchSigner) Version() int
type V2DiceLegacyResponseSigner ¶
func NewV2DiceLegacyResponseSigner ¶
func NewV2DiceLegacyResponseSigner(digest func() hash.Hash) *V2DiceLegacyResponseSigner
func (*V2DiceLegacyResponseSigner) Check ¶
func (v *V2DiceLegacyResponseSigner) Check(req *http.Request, resp *http.Response, secret string) *signers.AuthenticationError
func (*V2DiceLegacyResponseSigner) CreateSignable ¶
func (v *V2DiceLegacyResponseSigner) CreateSignable(req *http.Request, authHeaders map[string]string, rw *signers.SignableResponseWriter) []byte
func (*V2DiceLegacyResponseSigner) SetTrailer ¶
func (v *V2DiceLegacyResponseSigner) SetTrailer(rw http.ResponseWriter)
func (*V2DiceLegacyResponseSigner) SignResponse ¶
func (v *V2DiceLegacyResponseSigner) SignResponse(req *http.Request, rw *signers.SignableResponseWriter, secret string) (string, *signers.AuthenticationError)
func (*V2DiceLegacyResponseSigner) SignResponseDirect ¶
func (v *V2DiceLegacyResponseSigner) SignResponseDirect(req *http.Request, rw *signers.SignableResponseWriter, secret string) *signers.AuthenticationError
type V2SignerDiceLegacy ¶
type V2SignerDiceLegacy struct { *signers.Digester *signers.Identifiable // contains filtered or unexported fields }
func NewV2SignerDiceLegacy ¶
func NewV2SignerDiceLegacy(digest func() hash.Hash) (*V2SignerDiceLegacy, *signers.AuthenticationError)
func (*V2SignerDiceLegacy) Check ¶
func (v *V2SignerDiceLegacy) Check(req *http.Request, secret string) *signers.AuthenticationError
func (*V2SignerDiceLegacy) CreateSignable ¶
func (*V2SignerDiceLegacy) GenerateAuthorization ¶
func (v *V2SignerDiceLegacy) GenerateAuthorization(req *http.Request, authHeaders map[string]string, signature string) (string, *signers.AuthenticationError)
func (*V2SignerDiceLegacy) GetIdentificationRegex ¶
func (v *V2SignerDiceLegacy) GetIdentificationRegex() *regexp.Regexp
func (*V2SignerDiceLegacy) GetResponseSigner ¶
func (v *V2SignerDiceLegacy) GetResponseSigner() signers.ResponseSigner
func (*V2SignerDiceLegacy) HashBody ¶
func (v *V2SignerDiceLegacy) HashBody(req *http.Request) (string, *signers.AuthenticationError)
func (*V2SignerDiceLegacy) HashBytes ¶
func (v *V2SignerDiceLegacy) HashBytes(b []byte) string
func (*V2SignerDiceLegacy) ParseAuthHeaders ¶
func (v *V2SignerDiceLegacy) ParseAuthHeaders(req *http.Request) map[string]string
func (*V2SignerDiceLegacy) Sign ¶
func (v *V2SignerDiceLegacy) Sign(req *http.Request, authHeaders map[string]string, secret string) (string, *signers.AuthenticationError)
func (*V2SignerDiceLegacy) SignDirect ¶
func (v *V2SignerDiceLegacy) SignDirect(req *http.Request, authHeaders map[string]string, secret string) *signers.AuthenticationError
func (*V2SignerDiceLegacy) Version ¶
func (v *V2SignerDiceLegacy) Version() int
Click to show internal directories.
Click to hide internal directories.