Help us shape the future of Go! Take the 2026 Go Developer Survey

deployment

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package deployment detects how the simpledeploy server binary was launched (native vs containerized) so the API can surface mode-appropriate guidance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode string
const (
	ModeNative        Mode = "native"
	ModeDocker        Mode = "docker"
	ModeDockerDesktop Mode = "docker-desktop"
	ModeDockerDev     Mode = "docker-dev"
)

func Detect

func Detect() Mode

Detect probes the runtime environment once and returns the mode.

func (Mode) Label

func (m Mode) Label() string

Label returns the short UI-facing string for a mode, or "" if unknown.

Jump to

Keyboard shortcuts

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