internal

package
v0.0.0-...-e0fcc3b Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CacheSubfolder = "ssh-bridge"
)

Variables

View Source
var (
	CacheDirectory string
)

Functions

func ConvertKey

func ConvertKey(Key interface{}, password string) (interface{}, error)

func LoadConfig

func LoadConfig() error

Types

type C

type C = layout.Context

C quick alias for Context.

type Consumer

type Consumer func(sshAgent agent.Agent)

type CustomAgent

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

func NewAgent

func NewAgent(load loadKeysFunction) *CustomAgent

func (*CustomAgent) Add

func (k *CustomAgent) Add(key agent.AddedKey) error

func (*CustomAgent) AddInternal

func (k *CustomAgent) AddInternal(key interface{}, comment string, priority int, password string) error

func (*CustomAgent) Extension

func (k *CustomAgent) Extension(extensionType string, contents []byte) ([]byte, error)

func (*CustomAgent) List

func (k *CustomAgent) List() ([]*agent.Key, error)

func (*CustomAgent) Lock

func (k *CustomAgent) Lock(passphrase []byte) error

func (*CustomAgent) Remove

func (k *CustomAgent) Remove(key ssh.PublicKey) error

func (*CustomAgent) RemoveAll

func (k *CustomAgent) RemoveAll() error

func (*CustomAgent) Sign

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

func (*CustomAgent) SignWithFlags

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

func (*CustomAgent) Signers

func (k *CustomAgent) Signers() ([]ssh.Signer, error)

func (*CustomAgent) Unlock

func (k *CustomAgent) Unlock(passphrase []byte) error

type D

type D = layout.Dimensions

D quick alias for Dimensions.

type PlainKey

type PlainKey struct {
	Key      interface{}
	Comment  string
	Priority int
	Password string
}

type Prompt

type Prompt struct {
	Text   []string
	Output chan string
	// contains filtered or unexported fields
}

func NewPrompt

func NewPrompt(config PromptConfig) Prompt

func (*Prompt) Update

func (p *Prompt) Update()

type PromptConfig

type PromptConfig struct {
	HideInput bool
	InputHint string
}

type Supplier

type Supplier interface {
	Init() error
	Keys() ([]PlainKey, error)
}

Jump to

Keyboard shortcuts

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