util

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2018 License: MIT Imports: 6 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 GetExponentialBackoff added in v1.0.5

func GetExponentialBackoff(attempt int) time.Duration

GetExponentialBackoff returns a Duration that increases exponentially with the number of attempts.

func IntSequenceEquals

func IntSequenceEquals(a, b []int) bool

IntSequenceEquals determines whether or not two int sequences are equivalent.

func IsGitURL added in v1.0.5

func IsGitURL(s string) bool

IsGitURL determines whether or not the specified string is a Git URL.

func IsLocalContext added in v1.0.5

func IsLocalContext(s string) bool

IsLocalContext determines whether or not the specified string is local.

func IsMap

func IsMap(v interface{}) bool

IsMap determines whether the provided interface is a map.

func IsURL added in v1.0.5

func IsURL(s string) bool

IsURL determines whether or not the specified string is a URL.

func IsVstsGitURL added in v1.0.5

func IsVstsGitURL(s string) bool

IsVstsGitURL determines whether or not the specified string is a VSTS Git URL.

func ParseBuildArgs

func ParseBuildArgs(cmd string) []string

ParseBuildArgs parses build args off a command.

func ParseTags

func ParseTags(cmd string) []string

ParseTags parses tags off a 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, []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

This section is empty.

Jump to

Keyboard shortcuts

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