utils

package
v0.22.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DockerName added in v0.22.0

func DockerName() string

DockerName returns a Docker-generated name normalized for DNS-1123 uses.

func IsInteractive

func IsInteractive() bool

IsInteractive reports whether both stdin and stdout are connected to a TTY.

func LabelsToString

func LabelsToString(labels map[string]string) string

LabelsToString converts a map of labels to a string.

func ReadFileAsString

func ReadFileAsString(filename string) (string, error)

ReadFileAsString returns a file as a string or an error.

func ReadStdInAsString

func ReadStdInAsString() (string, error)

ReadStdInAsString returns stdin as a string or an error.

func YAMLToJSON

func YAMLToJSON(yml string) (string, error)

YAMLToJSON converts YAML to JSON.

Types

This section is empty.

Jump to

Keyboard shortcuts

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