storage

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 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 = "GILBERT_HOME"
)

Variables

This section is empty.

Functions

func Delete

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

Delete clears specified storage item

func EnsurePath

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

EnsurePath returns specified storage folder and creates if it not exists

func Exists

func Exists(storageType Type, paths ...string) (bool, string, error)

Exists checks if specified item exists in storage

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