console

package
v0.0.0-...-44808bf Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

Package server implements master's console server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr struct {
	net.Addr
	// contains filtered or unexported fields
}

func (*Addr) Hostname

func (a *Addr) Hostname() string

func (*Addr) Network

func (a *Addr) Network() string

func (*Addr) Port

func (a *Addr) Port() string

func (*Addr) String

func (a *Addr) String() string

type Config

type Config struct {
	Enable bool
	Addr   string
	Port   uint
	Auth   auth.Manager
}

Config is the server config.

type Console

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

Console Consoleements the ssh console server.

func New

func New() *Console

func (*Console) Addr

func (s *Console) Addr() *Addr

func (*Console) Configure

func (s *Console) Configure(cfg *Config) error

func (*Console) Start

func (s *Console) Start() error

func (*Console) Stop

func (s *Console) Stop() error

type Server

type Server interface {
	Configure(*Config) error
	Start() error
	Stop() error
}

Jump to

Keyboard shortcuts

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