util

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "undefined"
	GitSha  = "undefined"
	Release = "false"
	Dirty   = "true"
)

Functions

func DownloadAndParseModule

func DownloadAndParseModule(fs afero.Fs, mod string) (*config.Config, error)

func DownloadModule

func DownloadModule(fs afero.Fs, cacheDir, source string) (string, error)

func Dump

func Dump(foo interface{})

func Intptr added in v0.21.0

func Intptr(i int64) *int64

func OpenTemplate

func OpenTemplate(source io.Reader, commonTemplates *packr.Box) (*template.Template, error)

OpenTemplate will read `source` for a template, parse, configure and return a template.Template

func ParseVersion added in v0.14.0

func ParseVersion(version string) (semver.Version, string, bool)

func ProjectRoot added in v0.21.0

func ProjectRoot() string

func PwdFs added in v0.21.0

func PwdFs() (afero.Fs, error)

func SortedMapKeys added in v0.16.5

func SortedMapKeys(in interface{}) []string

func StrPtr added in v0.21.0

func StrPtr(s string) *string

func TestFile added in v0.21.0

func TestFile(name string) ([]byte, error)

func TestFs added in v0.21.0

func TestFs() (afero.Fs, string, error)

func VersionCacheKey

func VersionCacheKey() string

func VersionString

func VersionString() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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