devices

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter interface {
	Export(context.Context) (io.ReadCloser, Metadata, error)
	Metadata() Metadata // For logging purposes
}

func NewExporter

func NewExporter(name string, options config.Options, logger *logrus.Logger) (Exporter, error)

type Metadata

type Metadata map[string]interface{}

func (Metadata) Append added in v0.1.1

func (m Metadata) Append(add Metadata) Metadata

type NewExporterFunc

type NewExporterFunc func(config.Options, *logrus.Logger) (Exporter, error)

type SSHCommand

type SSHCommand struct {
	KeyFunc        sshutils.KeyFunc
	Name           string
	Host           string
	Port           string
	Username       string
	Password       string
	Command        string
	Logger         *logrus.Logger
	ExportMetadata Metadata
	DeviceMetadata Metadata
}

func (*SSHCommand) Export

func (s *SSHCommand) Export(ctx context.Context) (response io.ReadCloser, metadata Metadata, err error)

func (*SSHCommand) Metadata

func (s *SSHCommand) Metadata() Metadata

Jump to

Keyboard shortcuts

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