valuestore

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SyncConfigFileName   = ".sync.yml"
	GlobalConfigFileName = "config_defaults.yml"
)

Functions

This section is empty.

Types

type MapStore added in v0.2.2

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

MapStore implements domain.ValueStore using map structure as backend. It comes with per-repository transparent caching and lazy-loading. It also features a global config file that is loaded on first access.

func NewMapStore added in v0.2.2

func NewMapStore(instrumentation *ValueStoreInstrumentation) *MapStore

NewMapStore returns a new instance of domain.ValueStore.

func (*MapStore) FetchFilesToDelete added in v0.2.2

func (s *MapStore) FetchFilesToDelete(repository *domain.GitRepository) ([]domain.Path, error)

FetchFilesToDelete implements domain.ValueStore.

func (*MapStore) FetchTargetPath added in v0.2.2

func (s *MapStore) FetchTargetPath(template *domain.Template, repository *domain.GitRepository) (domain.Path, error)

FetchTargetPath implements domain.ValueStore.

func (*MapStore) FetchUnmanagedFlag added in v0.2.2

func (s *MapStore) FetchUnmanagedFlag(template *domain.Template, repository *domain.GitRepository) (bool, error)

FetchUnmanagedFlag implements domain.ValueStore.

func (*MapStore) FetchValuesForTemplate added in v0.2.2

func (s *MapStore) FetchValuesForTemplate(template *domain.Template, repository *domain.GitRepository) (domain.Values, error)

FetchValuesForTemplate implements domain.ValueStore.

type ValueStoreInstrumentation

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

func NewValueStoreInstrumentation

func NewValueStoreInstrumentation(factory logging.LoggerFactory) *ValueStoreInstrumentation

Jump to

Keyboard shortcuts

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