pkg

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMuxAgent

func NewMuxAgent(targets []Agent, addTarget Agent) agent.Agent

Types

type Agent

type Agent struct {
	agent.Agent
	// contains filtered or unexported fields
}

func MustNewAgent

func MustNewAgent(path string) Agent

type MuxAgent

type MuxAgent struct {
	AddTarget Agent
	Targets   []Agent
}

func (*MuxAgent) Add

func (m *MuxAgent) Add(key agent.AddedKey) error

Add implements agent.Agent

func (*MuxAgent) List

func (m *MuxAgent) List() ([]*agent.Key, error)

List implements agent.Agent

func (*MuxAgent) Lock

func (m *MuxAgent) Lock(passphrase []byte) error

Lock implements agent.Agent

func (*MuxAgent) Remove

func (m *MuxAgent) Remove(key ssh.PublicKey) error

Remove implements agent.Agent

func (*MuxAgent) RemoveAll

func (m *MuxAgent) RemoveAll() error

RemoveAll implements agent.Agent

func (*MuxAgent) Sign

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

Sign implements agent.Agent

func (*MuxAgent) Signers

func (m *MuxAgent) Signers() ([]ssh.Signer, error)

Signers implements agent.Agent

func (*MuxAgent) Unlock

func (m *MuxAgent) Unlock(passphrase []byte) error

Unlock implements agent.Agent

Jump to

Keyboard shortcuts

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