cache

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	//Create cache
	Create() error

	//Delete all elements in the cache
	Delete(bool) error
}

Cache interface defining simple caching mechanisms

type InitError

type InitError struct{}

InitError is an initialization error

func (*InitError) Error

func (e *InitError) Error() string

type LocalModuleCache

type LocalModuleCache struct {
	//Configuration to use by the cache
	Configuration *terrafile.Config
}

LocalModuleCache is an implimentation of the Module interface for creating a local cache to store modules.

func (*LocalModuleCache) Create

func (c *LocalModuleCache) Create() error

Create all modules, storing them in the cache

func (*LocalModuleCache) Delete

func (c *LocalModuleCache) Delete(deleteAll bool) error

Delete cache

Jump to

Keyboard shortcuts

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