Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
type Datastore interface {
GetResources(context.Context, model.Filter) ([]*model.Resource, error)
WriteResources(context.Context, []*model.Resource) error
Stats(context.Context) (model.Stats, error)
}
Datastore provides an interface to read/write/update to a store
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
MemoryStore stores the last resources written in memory and return it without any filtering Not for production use!
func NewMemoryStore ¶
func NewMemoryStore(ctx context.Context, cfg config.Config) *MemoryStore
func (*MemoryStore) GetResources ¶
func (*MemoryStore) WriteResources ¶
type SQLiteStore ¶
type SQLiteStore struct {
// contains filtered or unexported fields
}
func NewSQLiteStore ¶
func (*SQLiteStore) GetResources ¶
func (*SQLiteStore) WriteResources ¶
Click to show internal directories.
Click to hide internal directories.