bridge

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HelperMain

func HelperMain(args []string) error

func Inject added in v0.3.1

func Inject(session *Session, merged spec.MergedConfig) spec.MergedConfig

func Serve

func Serve(ctx context.Context, stateDir string, containerID string) error

func Stop

func Stop(stateDir string) error

Types

type Report

type Report struct {
	ID         string `json:"id"`
	Backend    string `json:"backend,omitempty"`
	Enabled    bool   `json:"enabled"`
	HelperArch string `json:"helperArch,omitempty"`
	Host       string `json:"host,omitempty"`
	Port       int    `json:"port,omitempty"`
	StatePath  string `json:"statePath"`
	ConfigPath string `json:"configPath,omitempty"`
	PIDPath    string `json:"pidPath,omitempty"`
	StatusPath string `json:"statusPath,omitempty"`
	HelperPath string `json:"helperPath"`
	MountPath  string `json:"mountPath"`
	BinPath    string `json:"binPath"`
	Status     string `json:"status"`
}

func Doctor

func Doctor(stateDir string) (Report, error)

func ReportFromSession added in v0.3.1

func ReportFromSession(session *Session) *Report

type Session

type Session struct {
	ID         string   `json:"id"`
	Backend    string   `json:"backend,omitempty"`
	Enabled    bool     `json:"enabled"`
	HelperArch string   `json:"helperArch,omitempty"`
	Host       string   `json:"host,omitempty"`
	Hosts      []string `json:"hosts,omitempty"`
	Port       int      `json:"port,omitempty"`
	Token      string   `json:"token,omitempty"`
	StatePath  string   `json:"statePath"`
	ConfigPath string   `json:"configPath,omitempty"`
	PIDPath    string   `json:"pidPath,omitempty"`
	StatusPath string   `json:"statusPath,omitempty"`
	HelperPath string   `json:"helperPath"`
	MountPath  string   `json:"mountPath"`
	BinPath    string   `json:"binPath"`
	Status     string   `json:"status"`
}

func Prepare

func Prepare(stateDir string, enabled bool, helperArch string, backendID string, bridgeHosts []string) (*Session, error)

func Preview

func Preview(stateDir string, enabled bool) (*Session, error)

func Start

func Start(session *Session, containerID string) (*Session, error)

Jump to

Keyboard shortcuts

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