utils

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString added in v0.6.0

func ContainsString(array []string, element string) bool

ContainsString checks if array contains string

func GetRegion added in v0.6.0

func GetRegion(profile string) (string, error)

GetRegion attempts loading the AWS region from ~/.aws/config.

func LoadFiles added in v0.5.0

func LoadFiles(root string, ignoreFile []byte) (files []string, err error)

LoadFiles return filtered map of relative to 'root' file paths; for filtering it uses shell file name pattern matching

func ReadIgnoreFile added in v0.5.0

func ReadIgnoreFile(dir string) ([]byte, error)

ReadIgnoreFile reads .apexignore in `dir` when present and returns a list of patterns.

func Sha256

func Sha256(b []byte) string

Sha256 returns a base64 encoded SHA256 hash of `b`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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