webtty

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEnvironmentVariable added in v1.2.0

func AddEnvironmentVariable(env *[]string, key, value string, force bool)

func BuildEnvironment added in v1.2.0

func BuildEnvironment(src []*pb.Environment) []string

func DefaultLabels added in v1.3.0

func DefaultLabels() map[string]string

func DefaultShell added in v1.2.0

func DefaultShell(usr *user.User) (string, error)

func DefaultShellDarwin added in v1.2.0

func DefaultShellDarwin(usr *user.User) (string, error)

func DefaultShellUnix added in v1.2.0

func DefaultShellUnix(usr *user.User) (string, error)

func DefaultShellWindows added in v1.2.0

func DefaultShellWindows() (string, error)

func NewWebTTYHandler

func NewWebTTYHandler(cfg *ServerConfig) http.Handler

func SetupCredential added in v1.2.0

func SetupCredential(cmd *exec.Cmd, ui *UserInfo) error

Types

type ServerConfig

type ServerConfig struct {
	MaxMessageSize  *int64
	ReadBufferSize  *int
	WriteBufferSize *int
	EnvVars         *map[string]string
}

type UserInfo added in v1.2.0

type UserInfo struct {
	Name  string
	Shell string
	Home  string
	UID   uint32
	GID   uint32
}

func GetUserInfo added in v1.2.0

func GetUserInfo(u *UsernameVariant) (*UserInfo, error)

type UsernameVariant added in v1.2.0

type UsernameVariant struct {
	Name *string
	UID  *uint32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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