middleware

package
v0.0.0-...-daf187e Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTPPort  = 5985
	HTTPSPort = 5986
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware interface {
	Execute(cmd string) (string, string, error)
	Exit()
}

func NewSession

func NewSession(upstream Middleware, config *SessionConfig) (Middleware, error)

func NewUTF8

func NewUTF8(upstream Middleware) (Middleware, error)

type SessionConfig

type SessionConfig struct {
	ComputerName          string
	AllowRedirection      bool
	Authentication        string
	CertificateThumbprint string
	Credential            interface{}
	Port                  int
	UseSSL                bool
}

func NewSessionConfig

func NewSessionConfig() *SessionConfig

func (*SessionConfig) ToArgs

func (c *SessionConfig) ToArgs() []string

type UserPasswordCredential

type UserPasswordCredential struct {
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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