signer

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Overview

Package signer implements signing and signature validation for opensds multi-cloud signer.

Provides request signing for request that need to be signed with the Signature. Provides signature validation for request.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterFactory

func FilterFactory() restful.FilterFunction

Types

type Signature

type Signature struct {
	Service string
	Region  string
	Request *http.Request
	Body    string
	Query   url.Values

	SignedHeaderValues http.Header
	// contains filtered or unexported fields
}

func (*Signature) Filter

func (sign *Signature) Filter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)

Signature Authorization Filter to validate the Request Signature Authorization: algorithm Credential=accesskeyID/credential scope, SignedHeaders=SignedHeaders, Signature=signature credential scope <requestDate>/<region>/<service>/sign_request

type SignatureBase

type SignatureBase interface {
	Filter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
}

func NewSignature

func NewSignature() SignatureBase

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL