cache

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(fp string)

func GetCacheFilepath

func GetCacheFilepath() string

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func New

func New(path string) (*Cache, error)

func (*Cache) ListVars added in v0.5.0

func (c *Cache) ListVars()

func (*Cache) LoadCommands

func (c *Cache) LoadCommands(id string) []confible.Command

func (*Cache) LoadVar

func (c *Cache) LoadVar(id, varName string) string

func (*Cache) LoadVars

func (c *Cache) LoadVars(id string) map[string]string

func (*Cache) Store

func (c *Cache) Store(cacheFilepath string) error

func (*Cache) UpsertCommands

func (c *Cache) UpsertCommands(id string, commands []confible.Command)

store only when we processed all commands! Do not update one after another! All at once!

func (*Cache) UpsertVar

func (c *Cache) UpsertVar(id, name, value string)

Jump to

Keyboard shortcuts

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