common

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseGPUUUIDs

func ParseGPUUUIDs(raw string) []string

ParseGPUUUIDs parses a comma-separated string of GPU UUIDs and returns a slice of trimmed UUIDs. Empty strings and strings with only spaces are filtered out.

func ResolveDataDir added in v0.9.0

func ResolveDataDir(cliContext *cli.Context) (string, error)

ResolveDataDir resolves the data directory using the --data-dir flag when provided, otherwise it falls back to the default GPUd data directory selection logic.

func StateFileFromContext added in v0.9.0

func StateFileFromContext(cliContext *cli.Context) (string, error)

StateFileFromContext returns the state file path derived from the resolved data directory.

func VersionFileFromContext added in v0.9.0

func VersionFileFromContext(cliContext *cli.Context, flagValue string, flagSet bool) (string, error)

VersionFileFromContext returns the version file path, honoring user overrides.

Types

This section is empty.

Jump to

Keyboard shortcuts

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