ssh

package
v0.0.0-...-7a1a0eb Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DwebVersion    string
	DwebSSHVersion string
)

Functions

This section is empty.

Types

type Image

type Image struct {
	Name  string         `json:"name"`
	Src   *string        `json:"src"`
	Image *[]Instruction `json:"image"`
}

type Instruction

type Instruction struct {
	Instruction string `json:"instruction"`
	Args        string `json:"args"`
}
type Link struct {
	Local  string `json:"local"`
	Target string `json:"target"`
}

type Service

type Service struct {
	Config []Session
}

func (*Service) Start

func (serv *Service) Start()

type Session

type Session struct {
	Name         string      `json:"name"`
	Mode         SessionMode `json:"mode"`
	Port         int64       `json:"port"`
	AuthRequired *bool       `json:"auth required"`
	MaxAuthTries *int        `json:"max auth tries"`

	// only when (mode & ModeDockerized == ModeDockerized)
	Location *string  `json:"location"`
	Links    *[]Link  `json:"links"`
	Images   *[]Image `json:"images"`
	Users    *[]User  `json:"users"`
}

func (*Session) Run

func (sess *Session) Run()

type SessionMode

type SessionMode int
const (
	ModeNative SessionMode = iota
	ModeDockerized
)

func (SessionMode) MarshalJSON

func (mode SessionMode) MarshalJSON() ([]byte, error)

func (*SessionMode) UnmarshalJSON

func (mode *SessionMode) UnmarshalJSON(bb []byte) error

type User

type User struct {
	Name         string `json:"name"`
	Passwordless bool   `json:"passwordless"`
}

Jump to

Keyboard shortcuts

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