environment

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment uint8

Environment encodes the operating environment for the model runner.

const (
	// EnvironmentUnknown represents an unknown environment in which basic,
	// non-specialized defaults should be used.
	EnvironmentUnknown Environment = iota
	// EnvironmentDesktop represents a Docker Desktop environment.
	EnvironmentDesktop
	// EnvironmentMoby represents a Moby engine environment, if installed via
	// the model CLI.
	EnvironmentMoby
	// EnvironmentCloud represents a Docker Cloud environment, if installed via
	// the model CLI.
	EnvironmentCloud
)

func Get

func Get() Environment

Get returns the current environment type.

Jump to

Keyboard shortcuts

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