storage

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Root is storage root
	Root = iota

	// Plugins represents plugins storage
	Plugins
)
View Source
const (

	// StoreVarName is env var name for storage path
	StoreVarName = "GILBERT_HOME"
)

Variables

This section is empty.

Functions

func Delete

func Delete(storageType Type, paths ...string) error

Delete clears specified storage item

func LocalPath added in v0.9.0

func LocalPath(storageType Type, paths ...string) (string, error)

LocalPath returns local project storage path by type

func Path

func Path(storageType Type, paths ...string) (string, error)

Path returns storage item path

Types

type Type

type Type int

Type represents storage type

Jump to

Keyboard shortcuts

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