ssh

package
v0.0.0-...-3b4d8d1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessKeyInstallation

type AccessKeyInstallation struct {
	SSHAgent *Agent
	Login    string
	Password string
	Script   string
}

func (*AccessKeyInstallation) Destroy

func (key *AccessKeyInstallation) Destroy() error

func (*AccessKeyInstallation) GetGitEnv

func (key *AccessKeyInstallation) GetGitEnv() (env []string)

type Agent

type Agent struct {
	Keys   []AgentKey
	Logger task_logger.Logger

	SocketFile string
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent() Agent

func StartSSHAgent

func StartSSHAgent(key db.AccessKey, logger task_logger.Logger) (Agent, error)

func (*Agent) Close

func (a *Agent) Close() error

func (*Agent) Listen

func (a *Agent) Listen() error

type AgentKey

type AgentKey struct {
	Key        []byte
	Passphrase []byte
}

type KeyInstaller

type KeyInstaller struct{}

func (KeyInstaller) Install

func (KeyInstaller) Install(key db.AccessKey, usage db.AccessKeyRole, logger task_logger.Logger) (installation AccessKeyInstallation, err error)

Jump to

Keyboard shortcuts

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