localuiruntime

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveState

func RemoveState(path string) error

func RuntimeStatePath

func RuntimeStatePath(configPath string) string

func WriteState

func WriteState(path string, state State) error

Types

type Snapshot

type Snapshot struct {
	LocalUIURL             string
	LocalUIURLs            []string
	PasswordRequired       bool
	EffectiveRunMode       string
	RemoteEnabled          bool
	DesktopManaged         bool
	DesktopOwnerID         string
	ControlplaneBaseURL    string
	ControlplaneProviderID string
	EnvPublicID            string
	StateDir               string
	DiagnosticsEnabled     bool
	PID                    int
	RuntimeService         runtimeservice.Snapshot
}

func Load

func Load(path string) (*Snapshot, error)

func LoadAttachable

func LoadAttachable(path string, timeout time.Duration) (*Snapshot, error)

func WaitForAttachable

func WaitForAttachable(path string, timeout time.Duration, pollInterval time.Duration, probeTimeout time.Duration) (*Snapshot, error)

func (*Snapshot) BindAddress

func (s *Snapshot) BindAddress() (string, error)

type State

type State struct {
	LocalUIURL             string                  `json:"local_ui_url,omitempty"`
	LocalUIURLs            []string                `json:"local_ui_urls,omitempty"`
	PasswordRequired       bool                    `json:"password_required"`
	EffectiveRunMode       string                  `json:"effective_run_mode,omitempty"`
	RemoteEnabled          bool                    `json:"remote_enabled"`
	DesktopManaged         bool                    `json:"desktop_managed"`
	DesktopOwnerID         string                  `json:"desktop_owner_id,omitempty"`
	ControlplaneBaseURL    string                  `json:"controlplane_base_url,omitempty"`
	ControlplaneProviderID string                  `json:"controlplane_provider_id,omitempty"`
	EnvPublicID            string                  `json:"env_public_id,omitempty"`
	StateDir               string                  `json:"state_dir,omitempty"`
	DiagnosticsEnabled     bool                    `json:"diagnostics_enabled"`
	PID                    int                     `json:"pid,omitempty"`
	RuntimeService         runtimeservice.Snapshot `json:"runtime_service"`
}

Jump to

Keyboard shortcuts

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