host

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package host keeps everything Docker-specific behind Open, stubbed on platforms that cannot host a stack.

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupported = errors.New("stack management requires a Linux or macOS host with Docker")

Functions

func InspectSelfImage

func InspectSelfImage(ctx context.Context, id string) string

InspectSelfImage lets an installer running as a container pin the exact image ref it was started from.

func ManifestPath

func ManifestPath(flag string) string

func OtherInstall added in v0.13.2

func OtherInstall(path string) string

OtherInstall exists because two installs on one daemon fight over the same container, volume and network names.

func RequireReadable added in v0.13.2

func RequireReadable(path string) error

RequireReadable names ownership outright: the manifest is mode 0600 because it holds the DB password.

func RequireWritable added in v0.13.2

func RequireWritable(path string) error

RequireWritable fails early rather than surfacing a permission error from three layers down.

func UserManifestPath added in v0.13.2

func UserManifestPath() string

UserManifestPath mirrors stack.UserConfigPath; fold it into that call on the next dependency bump.

Types

type Session

type Session struct {
	Svc      *stack.Service
	Manifest string
	// contains filtered or unexported fields
}

func Open

func Open(manifestPath string, log func(string, ...any)) (*Session, error)

Open pings first so a bad socket is reported once, not from inside the first converge step.

func (*Session) Close

func (s *Session) Close() error

Jump to

Keyboard shortcuts

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