lib

package
v0.2.54 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Log(msg string)
	Log2(msg string, now time.Time)
	LogCmd(cmd *exec.Cmd)
	SetStatus(status TaskStatus)
}

type SshAgent

type SshAgent struct {
	Keys   []SshAgentKey
	Logger Logger

	SocketFile string
	// contains filtered or unexported fields
}

func (*SshAgent) Close

func (a *SshAgent) Close() error

func (*SshAgent) Listen

func (a *SshAgent) Listen() error

type SshAgentKey

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

type TaskStatus

type TaskStatus string
const (
	TaskWaitingStatus  TaskStatus = "waiting"
	TaskStartingStatus TaskStatus = "starting"
	TaskRunningStatus  TaskStatus = "running"
	TaskStoppingStatus TaskStatus = "stopping"
	TaskStoppedStatus  TaskStatus = "stopped"
	TaskSuccessStatus  TaskStatus = "success"
	TaskFailStatus     TaskStatus = "error"
)

func (TaskStatus) IsFinished

func (s TaskStatus) IsFinished() bool

Jump to

Keyboard shortcuts

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