ssh

package module
v0.0.0-...-7b6bcf9 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2020 License: MIT Imports: 8 Imported by: 0

README

GoDoc Go Report Card

ssh


Copyright (c) 2020 Institut National de l'Audiovisuel

Documentation

Overview

Package ssh AFAIRE.

Package ssh AFAIRE.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client AFAIRE.

func (*Client) Connect

func (c *Client) Connect() (*Connection, error)

Connect AFAIRE.

type ClientOptions

type ClientOptions struct {
	Host       string
	Port       int
	Username   string
	Password   string
	KeyFile    string
	Passphrase string
	Timeout    time.Duration
}

ClientOptions AFAIRE.

func (*ClientOptions) NewClient

func (co *ClientOptions) NewClient() *Client

NewClient AFAIRE.

type Clients

type Clients map[string]map[string]*Client

Clients AFAIRE.

func NewClients

func NewClients(cos []*ClientOptions) Clients

NewClients AFAIRE.

func (Clients) Connect

func (c Clients) Connect(host, username string) (*Connection, error)

Connect AFAIRE.

type Connection

type Connection struct {
	// contains filtered or unexported fields
}

Connection AFAIRE.

func (*Connection) Disconnect

func (c *Connection) Disconnect()

Disconnect AFAIRE.

func (*Connection) NewSession

func (c *Connection) NewSession() (*ssh.Session, error)

NewSession AFAIRE.

func (*Connection) ReadStream

func (c *Connection) ReadStream(cmd string, timeout time.Duration) (*Stream, error)

ReadStream AFAIRE.

type Stream

type Stream struct {
	// contains filtered or unexported fields
}

Stream AFAIRE.

func (*Stream) Done

func (s *Stream) Done() <-chan bool

Done AFAIRE.

func (*Stream) Err

func (s *Stream) Err() error

Err AFAIRE.

func (*Stream) Stderr

func (s *Stream) Stderr() <-chan string

Stderr AFAIRE.

func (*Stream) Stdout

func (s *Stream) Stdout() <-chan string

Stdout AFAIRE.

Jump to

Keyboard shortcuts

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