signer

package
Version: v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

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

Source Files

Jump to

Keyboard shortcuts

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