db

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrImageNotFound = errors.New("image not found")
)

Functions

This section is empty.

Types

type Store

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

DB

func NewStore

func NewStore(path string) (*Store, error)

NewStore

func (*Store) Clean

func (s *Store) Clean(d time.Duration) error

Clean

func (*Store) Close

func (s *Store) Close()

Close

func (*Store) FindImage

func (s *Store) FindImage(key string) (*api.Image, error)

FindImage

func (*Store) SaveImage

func (s *Store) SaveImage(img *api.Image) error

SaveImage

func (*Store) Statistic

func (s *Store) Statistic() (map[string]interface{}, error)

Statistic

Jump to

Keyboard shortcuts

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