store

package
v0.0.0-...-bb7e8d2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index struct {
	driver.Driver
}

Store represents the storage engine for the watcher index

func New

func New(u string) (*Index, error)

func NewGCS

func NewGCS(bucket string) (*Index, error)

func (*Index) Delete

func (s *Index) Delete(id string) (*v1.WatcherDetails, error)

Get retrieves the watch index from storage. An error is returned if the storage driver failed to fetch the index, or the index identified by the key, version pair does not exist.

func (*Index) Get

func (s *Index) Get(id string) (*v1.WatcherDetails, error)

Get retrieves the watch index from storage. An error is returned if the storage driver failed to fetch the index, or the index identified by the key, version pair does not exist.

func (*Index) Update

func (s *Index) Update(idx *v1.WatcherDetails) error

Update updates the index in storage. An error is returned if the storage backend fails to update the index or if the index does not exist.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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