Documentation
¶
Index ¶
- Constants
- func DialSession(session Session) (net.Conn, error)
- func Execute(opts ExecOptions) error
- func FormatSessionSummary(session Session) string
- func MarkSessionAlive(session *Session)
- func PingSession(session Session) bool
- func RemoveFIFORecord(sessionName, fifoName string) error
- func RemoveSession(name string) error
- func SaveFIFORecord(record FIFORecord) error
- func SaveSession(session Session) error
- func SessionExists(name string) bool
- func TouchSession(name string) error
- type Daemon
- type Event
- type ExecOptions
- type FIFOEndpoint
- type FIFORecord
- type FIFOWorker
- type HostHealth
- type Request
- type Session
Constants ¶
View Source
const DefaultSessionName = "default"
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute(opts ExecOptions) error
func FormatSessionSummary ¶
func MarkSessionAlive ¶
func MarkSessionAlive(session *Session)
func PingSession ¶
func RemoveFIFORecord ¶
func RemoveSession ¶
func SaveFIFORecord ¶
func SaveFIFORecord(record FIFORecord) error
func SaveSession ¶
func SessionExists ¶
func TouchSession ¶
Types ¶
type Daemon ¶
type Daemon struct {
Name string
Config conf.Config
ConfigPath string
Hosts []string
ControlMasterOverride *bool
// contains filtered or unexported fields
}
type ExecOptions ¶
type FIFOEndpoint ¶
type FIFOEndpoint struct {
Scope string
Hosts []string
Command string
StdinPath string
CmdPath string
OutPath string
}
func BuildFIFOEndpoints ¶
func BuildFIFOEndpoints(session Session, fifoName string) ([]FIFOEndpoint, string, error)
type FIFORecord ¶
type FIFORecord struct {
SessionName string `json:"session_name"`
Name string `json:"name"`
Dir string `json:"dir"`
PID int `json:"pid"`
Hosts []string `json:"hosts"`
}
func ListFIFORecords ¶
func ListFIFORecords() ([]FIFORecord, error)
func LoadFIFORecord ¶
func LoadFIFORecord(sessionName, fifoName string) (FIFORecord, error)
type FIFOWorker ¶
type FIFOWorker struct {
SessionName string
FIFOName string
Endpoints []FIFOEndpoint
}
func (*FIFOWorker) Run ¶
func (w *FIFOWorker) Run() error
type HostHealth ¶
type Session ¶
type Session struct {
Name string `json:"name"`
Hosts []string `json:"hosts"`
PID int `json:"pid"`
Network string `json:"network"`
Address string `json:"address"`
ConfigPath string `json:"config_path"`
CreatedAt time.Time `json:"created_at"`
LastUsedAt time.Time `json:"last_used_at"`
HostHealth map[string]HostHealth `json:"host_health,omitempty"`
Stale bool `json:"-"`
AliveChecked bool `json:"-"`
}
func ListSessions ¶
func LoadSession ¶
func ResolveSession ¶
Click to show internal directories.
Click to hide internal directories.