common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateDir = func(path string) {
	if !FileExists(path) {
		err := Root.MkdirAll(path, 0644)
		if err != nil {
			fmt.Println("Could not create", path)
			os.Exit(255)
		}
	}
}
View Source
var Root = afero.NewOsFs()

Functions

func DataDir

func DataDir() string

func FileExists

func FileExists(path string) bool

func GroupConfigs

func GroupConfigs() string

func Locks

func Locks() string

func ReadFile

func ReadFile(path string) ([]byte, error)

func ServerReq

func ServerReq(api core.Client, path string) (*requests.Model, error)

func WaitFor

func WaitFor(api core.Client, req *requests.Model) (*requests.Model, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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