Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Logger *logging.Logger
)
View Source
var (
Manager = NewSshManager()
)
View Source
var Version string
Functions ¶
func CleanResult ¶
func NewLogger ¶
func NewLogger(options *LogOptions) *logging.Logger
Types ¶
type Host ¶
type Host struct { sync.Mutex Id int Hostname string ManageIp string Mrtg string Port uint Err chan error StdIn chan string StdOut chan string StdErr chan string Running chan bool Stopped chan bool LastResult string Buckets []*Bucket Timeout time.Duration DialTimeout time.Duration FirstCmdTimeout time.Duration // contains filtered or unexported fields }
type SshManager ¶
type SshManager struct { sync.Mutex User string Key string Sudo bool Password []string Workers int InitCmd string HostMap map[string]*Host Sig chan os.Signal Log *log.Logger // contains filtered or unexported fields }
func NewSshManager ¶
func NewSshManager() *SshManager
func (*SshManager) Close ¶
func (manager *SshManager) Close()
func (*SshManager) Listenning ¶
func (manager *SshManager) Listenning()
func (*SshManager) ListenningSig ¶
func (manager *SshManager) ListenningSig()
func (*SshManager) Prepare ¶
func (manager *SshManager) Prepare()
func (*SshManager) SetSudoPassword ¶
func (m *SshManager) SetSudoPassword(p string)
Click to show internal directories.
Click to hide internal directories.