util

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: MIT Imports: 7 Imported by: 5

Documentation

Index

Constants

View Source
const (
	// DockerSocketVolumeMapping returns a volume mapping to the Docker socket.
	DockerSocketVolumeMapping = "/var/run/docker.sock:/var/run/docker.sock"
)

Variables

This section is empty.

Functions

func ContainsSpace added in v1.0.10

func ContainsSpace(s string) bool

ContainsSpace returns true if the specified string contains a space, false otherwise.

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 IsAzureDevOpsGitURL added in v1.0.9

func IsAzureDevOpsGitURL(s string) bool

IsAzureDevOpsGitURL determines whether or not the specified string is an Azure DevOps Git URL.

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 IsInterfaceMap added in v1.0.9

func IsInterfaceMap(v interface{}) bool

IsInterfaceMap determines whether the provided interface is a map.

func IsLocalContext added in v1.0.5

func IsLocalContext(s string) bool

IsLocalContext determines whether or not the specified string is local.

func IsSourceControlURL added in v1.0.9

func IsSourceControlURL(s string) bool

IsSourceControlURL determines whether or not the specified string is a source control URL.

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