authentication

package
v0.0.0-...-c5f9086 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2017 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivateKeySigner

type PrivateKeySigner struct {
	// contains filtered or unexported fields
}

func NewPrivateKeySigner

func NewPrivateKeySigner(keyFingerprint string, privateKeyMaterial []byte, accountName string) (*PrivateKeySigner, error)

func (*PrivateKeySigner) DefaultAlgorithm

func (s *PrivateKeySigner) DefaultAlgorithm() string

func (*PrivateKeySigner) KeyFingerprint

func (s *PrivateKeySigner) KeyFingerprint() string

func (*PrivateKeySigner) Sign

func (s *PrivateKeySigner) Sign(dateHeader string) (string, error)

func (*PrivateKeySigner) SignRaw

func (s *PrivateKeySigner) SignRaw(toSign string) (string, string, error)

type SSHAgentSigner

type SSHAgentSigner struct {
	// contains filtered or unexported fields
}

func NewSSHAgentSigner

func NewSSHAgentSigner(keyFingerprint, accountName string) (*SSHAgentSigner, error)

func (*SSHAgentSigner) DefaultAlgorithm

func (s *SSHAgentSigner) DefaultAlgorithm() string

func (*SSHAgentSigner) KeyFingerprint

func (s *SSHAgentSigner) KeyFingerprint() string

func (*SSHAgentSigner) Sign

func (s *SSHAgentSigner) Sign(dateHeader string) (string, error)

func (*SSHAgentSigner) SignRaw

func (s *SSHAgentSigner) SignRaw(toSign string) (string, string, error)

type Signer

type Signer interface {
	DefaultAlgorithm() string
	KeyFingerprint() string
	Sign(dateHeader string) (string, error)
	SignRaw(toSign string) (string, string, error)
}

Jump to

Keyboard shortcuts

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