Help us shape the future of Go! Take the 2026 Go Developer Survey

datastore

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MultipleMatchErr = errors.New("multiple matches found")
View Source
var NoMatchErr = errors.New("no match found")
View Source
var UnsupportedOperationErr = errors.New("unsupported operation")

Functions

func GetAnalysisArtifact

func GetAnalysisArtifact(index Index, ref analysis.Reference) (analysis.Artifact, error)

Types

type Factory

type Factory interface {
	Create(provider ProviderName, name string, options map[string]interface{}) (Index, error)
}

type Index

type Index interface {
	GetName() string
	GetAnalysisArtifacts(analysis.Reference) ([]analysis.Artifact, error)
	StoreAnalysisResult(analysis.Reference, metalink.Metalink) error
	FlushAnalysisCache() error // TODO rename? intent is force reload next time
}

type NamedGetter

type NamedGetter func(name string) (Index, error)

type ProviderName

type ProviderName string

Directories

Path Synopsis
Package boshuaV2 provides the "boshua.v2" provider which supports querying a remote API server for analysis results.
Package boshuaV2 provides the "boshua.v2" provider which supports querying a remote API server for analysis results.
Package dpbreleaseartifacts provides the "dpbreleaseartifacts" provider which supports querying and storing analysis results in a git repository.
Package dpbreleaseartifacts provides the "dpbreleaseartifacts" provider which supports querying and storing analysis results in a git repository.
Package localcache provides the "localcache" provider which supports querying and storing analysis results in a local directory.
Package localcache provides the "localcache" provider which supports querying and storing analysis results in a local directory.

Jump to

Keyboard shortcuts

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