storage

package
v0.0.68 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvaluationStorage

type EvaluationStorage interface {
	Store(ctx context.Context, results []goals.GoalEvaluationQueryResult, storageId string, log skill.Logger) error
}

func NewEvaluationStorage

func NewEvaluationStorage(ctx context.Context) (EvaluationStorage, error)

NewEvaluationStorage creates a new EvaluationStorage object based on the LOCAL_DEBUG environment variable.

func NewFsStorage

func NewFsStorage(ctx context.Context) (EvaluationStorage, error)

type FsStorage

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

func (*FsStorage) Store

func (f *FsStorage) Store(ctx context.Context, results []goals.GoalEvaluationQueryResult, storageId string, log skill.Logger) error

type GcsStorage

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

func NewGcsStorage

func NewGcsStorage(ctx context.Context) (*GcsStorage, error)

func (*GcsStorage) Store

func (gcs *GcsStorage) Store(ctx context.Context, results []goals.GoalEvaluationQueryResult, storageId string, log skill.Logger) error

Jump to

Keyboard shortcuts

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