utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2016 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppName

func AppName(path string) string

func CleanPatterns

func CleanPatterns(patterns []string) ([]string, [][]string, bool, error)

func CreateDirs

func CreateDirs(paths []string) error

func GenerateID

func GenerateID() string

GenerateID - generate random id with 64 length

func GetStringParamFromURL

func GetStringParamFromURL(param string, r *http.Request) string

func Hash

func Hash(data string) string

Hash - create hash based on provided string

func LoadDockerPatterns

func LoadDockerPatterns(path string) ([]string, error)

func Matches

func Matches(file string, patterns []string) (bool, error)

func OptimizedMatches

func OptimizedMatches(file string, patterns []string, patDirs [][]string) (bool, error)

func RemoveDirs

func RemoveDirs(paths []string) error

func Ungzip

func Ungzip(source, target string) error

Ungzip -

func Update

func Update(source, target, update string, excludes []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