Documentation
¶
Index ¶
- Variables
- type KeyID
- type PrivateKeySigner
- type PrivateKeySignerInput
- type SSHAgentSigner
- func (s *SSHAgentSigner) DefaultAlgorithm() string
- func (s *SSHAgentSigner) KeyFingerprint() string
- func (s *SSHAgentSigner) MatchKey() (ssh.PublicKey, error)
- func (s *SSHAgentSigner) Sign(dateHeader string, isManta bool) (string, error)
- func (s *SSHAgentSigner) SignRaw(toSign string) (string, string, error)
- type SSHAgentSignerInput
- type Signer
- type TestSigner
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnsetEnvVar = pkgerrors.New("environment variable SSH_AUTH_SOCK not set")
)
Functions ¶
This section is empty.
Types ¶
type PrivateKeySigner ¶
type PrivateKeySigner struct {
// contains filtered or unexported fields
}
func NewPrivateKeySigner ¶
func NewPrivateKeySigner(input PrivateKeySignerInput) (*PrivateKeySigner, error)
func (*PrivateKeySigner) DefaultAlgorithm ¶
func (s *PrivateKeySigner) DefaultAlgorithm() string
func (*PrivateKeySigner) KeyFingerprint ¶
func (s *PrivateKeySigner) KeyFingerprint() string
type PrivateKeySignerInput ¶
type SSHAgentSigner ¶
type SSHAgentSigner struct {
// contains filtered or unexported fields
}
func NewSSHAgentSigner ¶
func NewSSHAgentSigner(input SSHAgentSignerInput) (*SSHAgentSigner, error)
func (*SSHAgentSigner) DefaultAlgorithm ¶
func (s *SSHAgentSigner) DefaultAlgorithm() string
func (*SSHAgentSigner) KeyFingerprint ¶
func (s *SSHAgentSigner) KeyFingerprint() string
type SSHAgentSignerInput ¶
type Signer ¶
type Signer interface { DefaultAlgorithm() string KeyFingerprint() string Sign(dateHeader string, isManta bool) (string, error) SignRaw(toSign string) (string, string, error) }
func NewTestSigner ¶
NewTestSigner constructs a new instance of test signer
type TestSigner ¶
type TestSigner struct{}
TestSigner represents an authentication key signer which we can use for testing purposes only. This will largely be a stub to send through client unit tests.
func (*TestSigner) DefaultAlgorithm ¶
func (s *TestSigner) DefaultAlgorithm() string
func (*TestSigner) KeyFingerprint ¶
func (s *TestSigner) KeyFingerprint() string
Click to show internal directories.
Click to hide internal directories.