common

package
v0.0.0-...-070089e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchSupported

func ArchSupported(supported ...string) (bool, string)

Identifies if the current architecture is in the specified supported list. Returns a boolean flag indicatind the result, and the actual architecture, that was discovered.

func ContainerShortID

func ContainerShortID(containerID string) string

containerShortID returns the first twelve character of a containerID to match the shortened IDs returned by docker.

func Min

func Min(x int, y int) int

Returns the min of two integers. Strangely there is no such built in or function in math

func PrepareLog

func PrepareLog(testName string, logName string) (*os.File, error)

Creates a new file to dump logs into

func QuoteArgs

func QuoteArgs(args []string) []string

quoteArgs will add quotes around any arguments require it for the shell.

func Sleep

func Sleep(duration time.Duration)

Types

This section is empty.

Jump to

Keyboard shortcuts

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