util

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDockerSock

func GetDockerSock() string

GetDockerSock returns a volume mapping to the Docker socket.

func IntSequenceEquals

func IntSequenceEquals(a, b []int) bool

IntSequenceEquals determines whether or not two int sequences are equivalent.

func IsMap

func IsMap(v interface{}) bool

IsMap determines whether the provided interface is a map.

func ParseBuildArgs

func ParseBuildArgs(cmd string) []string

ParseBuildArgs parses build args off the "Run" command.

func ParseTags

func ParseTags(cmd string) []string

ParseTags parses tags off the "Run" command.

func PrefixRegistryToImageName

func PrefixRegistryToImageName(registry string, img string) string

PrefixRegistryToImageName prefixes the specified registry to the image.

func PrefixTags

func PrefixTags(cmd string, registry string) string

PrefixTags prefixes tags in the specified command and returns the new command.

func StringSequenceEquals

func StringSequenceEquals(a, b []string) bool

StringSequenceEquals determines whether or not two string sequences are equivalent.

Types

type SortablePathLen

type SortablePathLen []string

SortablePathLen allows for sorting an array of strings by their path length.

func (SortablePathLen) Len

func (s SortablePathLen) Len() int

Len returns the length of the SortablePathLen.

func (SortablePathLen) Less

func (s SortablePathLen) Less(i, j int) bool

Less compares two values in the SortablePathLen.

func (SortablePathLen) Swap

func (s SortablePathLen) Swap(i, j int)

Swap swaps two values in the SortablePathLen.

Jump to

Keyboard shortcuts

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