connector

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 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 Connector

type Connector struct {
	Host        string `json:"host"`
	User        string `json:"user"`
	Port        string `json:"port"`
	Password    []byte `json:"password"`
	Key         string `json:"ssh_key"`
	Explanation string `json:"explanation"`
	Position    int    `json:"-"`
}

func (*Connector) Clone

func (h *Connector) Clone() *Connector

func (Connector) CommandBase

func (h Connector) CommandBase() string

func (*Connector) Equals

func (h *Connector) Equals(host *Connector) bool

func (Connector) SshConnection

func (h Connector) SshConnection(password string)

type ConnectorCollection

type ConnectorCollection struct {
	Connectors []*Connector `json:"hosts"`
}

func (*ConnectorCollection) Add

func (*ConnectorCollection) Count

func (s *ConnectorCollection) Count() int

func (*ConnectorCollection) Has

func (*ConnectorCollection) Index

func (s *ConnectorCollection) Index(position int) *Connector

func (*ConnectorCollection) PrintTable

func (s *ConnectorCollection) PrintTable()

func (*ConnectorCollection) ResetPosition

func (s *ConnectorCollection) ResetPosition() *ConnectorCollection

func (*ConnectorCollection) ToTopPosition

func (s *ConnectorCollection) ToTopPosition(h *Connector) *ConnectorCollection

Jump to

Keyboard shortcuts

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