datastore

package
v0.0.0-...-0117b6e Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Overview

Package datastore has utilites to read and write from long running plugins data-store

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStore

type DataStore interface {
	Write(data map[string]plugin.PluginInfo, location, fileName string) error
	Read(fileName string) (map[string]plugin.PluginInfo, error)
}

DataStore is the interface to provide utilities to read & write from a data store

type FsStore

type FsStore struct{}

func (*FsStore) Read

func (fs *FsStore) Read(fileName string) (map[string]plugin.PluginInfo, error)

Read reads long running plugins data from data store (file system)

func (*FsStore) Write

func (fs *FsStore) Write(data map[string]plugin.PluginInfo, location, fileName string) error

Write overwrites long running plugins specific data back to data store (file system)

Jump to

Keyboard shortcuts

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