datastore

package
v0.59.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 23 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 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.

type Type added in v0.49.0

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

	UnknownType Type = 0
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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