Documentation
¶
Index ¶
- Constants
- func ContainsSpace(s string) bool
- func GetExponentialBackoff(attempt int) time.Duration
- func IntSequenceEquals(a, b []int) bool
- func IsAzureDevOpsGitURL(s string) bool
- func IsGitURL(s string) bool
- func IsInterfaceMap(v interface{}) bool
- func IsLocalContext(s string) bool
- func IsSourceControlURL(s string) bool
- func IsURL(s string) bool
- func IsVstsGitURL(s string) bool
- func ParseBuildArgs(cmd string) []string
- func ParseTags(cmd string) []string
- func PrefixRegistryToImageName(registry string, img string) string
- func PrefixTags(cmd string, registry string) (string, []string)
- func StringSequenceEquals(a, b []string) bool
Constants ¶
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
ContainsSpace returns true if the specified string contains a space, false otherwise.
func GetExponentialBackoff ¶ added in v1.0.5
GetExponentialBackoff returns a Duration that increases exponentially with the number of attempts.
func IntSequenceEquals ¶
IntSequenceEquals determines whether or not two int sequences are equivalent.
func IsAzureDevOpsGitURL ¶ added in v1.0.9
IsAzureDevOpsGitURL determines whether or not the specified string is an Azure DevOps Git URL.
func IsGitURL ¶ added in v1.0.5
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
IsLocalContext determines whether or not the specified string is local.
func IsSourceControlURL ¶ added in v1.0.9
IsSourceControlURL determines whether or not the specified string is a source control URL.
func IsVstsGitURL ¶ added in v1.0.5
IsVstsGitURL determines whether or not the specified string is a VSTS Git URL.
func ParseBuildArgs ¶
ParseBuildArgs parses build args off a command.
func PrefixRegistryToImageName ¶
PrefixRegistryToImageName prefixes the specified registry to the image.
func PrefixTags ¶
PrefixTags prefixes tags in the specified command and returns the new command.
func StringSequenceEquals ¶
StringSequenceEquals determines whether or not two string sequences are equivalent.
Types ¶
This section is empty.