utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CastMapOfMaps

func CastMapOfMaps(mapOfMap interface{}) map[string]map[string]string

func ConstructImageName

func ConstructImageName(domain, prefix, repoName, tag string) string

func DecodeAuthString

func DecodeAuthString(encoded string) (string, string, error)

func ExtractRegistryInfo

func ExtractRegistryInfo(conf *viper.Viper, repoName string) (string, string, string, string)

return the scheme, domain and prefix in that order

func FilterReleaseTags

func FilterReleaseTags(tags []string) []string

func FilterSHATags

func FilterSHATags(tags []string) []string

func GetLatestReleaseTag

func GetLatestReleaseTag(tags []string) (string, error)

func GetRepoNomadJob

func GetRepoNomadJob(conf *viper.Viper, repoName string) string

Get the Nomad job name config mapping for repoName

func GetRepoNomadTaskName

func GetRepoNomadTaskName(conf *viper.Viper, repoName string) string

Get the Nomad task name config mapping for repoName

func IsTagDeployable

func IsTagDeployable(checkedTag string, availableDockerTags []string) bool

func IsTagLatest

func IsTagLatest(tag string, tags []string) bool

latest with respect to versioned tags

func IsTagReleaseFormat

func IsTagReleaseFormat(tag string) bool

func IsTagSHAFormat

func IsTagSHAFormat(tag string) bool

func PostSlackError

func PostSlackError(conf *viper.Viper, text string)

func PostSlackSuccess

func PostSlackSuccess(conf *viper.Viper, text string)

func PostSlackUpdate

func PostSlackUpdate(conf *viper.Viper, text string)

func TagToNumber

func TagToNumber(tag string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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