config

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvSecretsKey        = "WS_SECRETS_MASTER_KEY"
	EnvSecretsKeyFile    = "WS_SECRETS_MASTER_KEY_FILE"
	EnvSecretsVault      = "WS_SECRETS_VAULT"
	EnvLoggingDir        = "WS_LOGGING_DIR"
	EnvLoggingFile       = "WS_LOGGING_MAIN_FILE"
	EnvServerRoot        = "WS_SERVER_ROOT"
	EnvFeaturesDir       = "WS_FEATURES_DIR"
	EnvIPCSocket         = "WS__INTERNAL_IPC_SOCKET"
	EnvMetricsPort       = "WS_METRICS_PORT"
	EnvMetricsCollectors = "WS_METRICS_COLLECTORS"

	DefaultSecretsKeyPath   = "/etc/workspace/master.key"
	DefaultSecretsVaultPath = "~/.ws/vault/secrets.yaml"
	DefaultEnvFilePath      = "~/.zshenv"
	DefaultLoggingDir       = "/var/log/workspace"
	DefaultLoggingFile      = "workspace.log"
	DefaultServerRoot       = "/workspace"
	DefaultFeaturesDir      = "/features"
	DefaultIPCSocket        = "/var/workspace/ipc.socket"
	DefaultManifestPath     = "/var/lib/workspace/manifest.json"
	DefaultStatePath        = "/var/lib/workspace/state"
	DefaultMetricsPort      = 9100
)

Variables

This section is empty.

Functions

func GetExtensionCount added in v0.0.45

func GetExtensionCount() (int, error)

func GetInitializedTime added in v0.0.45

func GetInitializedTime() (time.Time, error)

func GetSessionInfo added in v0.0.45

func GetSessionInfo() (initialized time.Time, uptime time.Duration, err error)

func GetUptime added in v0.0.45

func GetUptime() (time.Duration, error)

Types

type Extension added in v0.0.45

type Extension struct {
	Name    string
	Version string
}

func GetExtensions added in v0.0.45

func GetExtensions() ([]Extension, error)

type Manifest added in v0.0.45

type Manifest struct {
	Version string `json:"version"`
	VSCode  struct {
		Version string `json:"version"`
	} `json:"vscode"`
}

func ReadManifest added in v0.0.45

func ReadManifest() (*Manifest, error)

Jump to

Keyboard shortcuts

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