datastore

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NeedToShrink added in v0.36.0

func NeedToShrink(u string) bool

Types

type Datastore

type Datastore interface {
	Put(ctx context.Context, path string, content []byte) error
	StoreReport(ctx context.Context, r *report.Report) error
	FS() (fs.FS, error)
}

func New added in v0.14.0

func New(ctx context.Context, u string, hints ...HintFunc) (Datastore, error)

type DatastoreType added in v0.14.0

type DatastoreType int
const (
	GitHub DatastoreType = iota + 1
	Artifact
	S3
	GCS
	BigQuery
	Mackerel
	Local

	UnknownType DatastoreType = 0
)

type HintFunc added in v0.40.0

type HintFunc func(*hint) error

func Report added in v0.40.0

func Report(r *report.Report) HintFunc

Report hint for artifact datastore

func Root added in v0.40.0

func Root(p string) HintFunc

Root hint for local datastore

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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