util

package
v0.64.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatCommand added in v0.31.0

func FormatCommand(command string) string

FormatCommand colours a command, so you can pick it out in the output.

func FormatInfo added in v0.31.0

func FormatInfo(info string) string

FormatInfo colours info about what cdflow2 is doing, so you can pick it out in the output.

func FormatWarning added in v0.57.0

func FormatWarning(warning string) string

FormatWarning colours info about what cdflow2 is doing, so you can pick it out in the output.

func GetCacheVolume added in v0.41.0

func GetCacheVolume(dockerClient docker.Iface) (string, error)

GetCacheVolume returns the volume for cache at /cache (e.g. terraform providers).

func GetEnv

func GetEnv(env []string) map[string]string

GetEnv takes the environment as a slice of strings (as returned by os.Environ) and returns it as a map.

func RandomName added in v0.3.0

func RandomName(prefix string) string

RandomName creates a random name with a prefix so container names don't clash.

Types

type Semver added in v0.57.0

type Semver struct {
	Major int
	Minor int
	Patch int
}

func ParseSemver added in v0.57.0

func ParseSemver(v string) (s Semver, ok bool)

Jump to

Keyboard shortcuts

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