middleware

package
v4.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT, MIT Imports: 5 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)

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