ibm

package
v0.0.0-...-b90ee7a Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ibm implements signing for IBM IAM

Index

Constants

This section is empty.

Variables

View Source
var SignRequestHandler = request.NamedHandler{
	Name: "ibm.SignRequestHandler", Fn: SignRequest,
}

SignRequestHandler is a named request handler the SDK will use to sign service client request with using the V4 signature.

Functions

func SignRequest

func SignRequest(req *request.Request)

SignRequest signs IBM IAM requests.

Types

type Signer

type Signer struct {
	// The authentication credentials the request will be signed against.
	// This value must be set to sign requests.
	Credentials *credentials.Credentials
}

Signer applies IBM IAM signing to given request.

func NewSigner

func NewSigner(credentials *credentials.Credentials) *Signer

NewSigner returns a Signer pointer configured with the credentials and optional option values provided. If not options are provided the Signer will use its default configuration.

func (Signer) Sign

func (ibm Signer) Sign(r *http.Request, op *request.Operation) error

Sign signs IBM IAM requests.

Jump to

Keyboard shortcuts

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