namedpipe

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamedPipe

type NamedPipe struct {
	agent.ExtendedAgent
	Debug bool
	Name  string
}

func (*NamedPipe) RunAgent

func (a *NamedPipe) RunAgent() error

type NamedPipeClient

type NamedPipeClient struct {
	Debug bool
	// contains filtered or unexported fields
}

func (*NamedPipeClient) Add

func (a *NamedPipeClient) Add(key agent.AddedKey) error

Add adds a private key to the agent.

func (*NamedPipeClient) Close

func (a *NamedPipeClient) Close() error

func (*NamedPipeClient) Extension

func (a *NamedPipeClient) Extension(extensionType string, contents []byte) ([]byte, error)

func (*NamedPipeClient) List

func (a *NamedPipeClient) List() ([]*agent.Key, error)

func (*NamedPipeClient) Lock

func (a *NamedPipeClient) Lock(passphrase []byte) error

Lock locks the agent. Sign and Remove will fail, and List will empty an empty list.

func (*NamedPipeClient) Remove

func (a *NamedPipeClient) Remove(key ssh.PublicKey) error

Remove removes all identities with the given public key.

func (*NamedPipeClient) RemoveAll

func (a *NamedPipeClient) RemoveAll() error

RemoveAll removes all identities.

func (*NamedPipeClient) Sign

func (a *NamedPipeClient) Sign(key ssh.PublicKey, data []byte) (*ssh.Signature, error)

Sign has the agent sign the data using a protocol 2 key as defined in [PROTOCOL.agent] section 2.6.2.

func (*NamedPipeClient) SignWithFlags

func (a *NamedPipeClient) SignWithFlags(key ssh.PublicKey, data []byte, flags agent.SignatureFlags) (*ssh.Signature, error)

func (*NamedPipeClient) Signers

func (a *NamedPipeClient) Signers() ([]ssh.Signer, error)

Signers returns signers for all the known keys.

func (*NamedPipeClient) Unlock

func (a *NamedPipeClient) Unlock(passphrase []byte) error

Unlock undoes the effect of Lock

Jump to

Keyboard shortcuts

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