store

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFileStore

func CreateFileStore(scheme *runtime.Scheme, obj resource.Object, prefix string) (storebackend.Storer[runtime.Object], error)

func CreateKVStore

func CreateKVStore(db *badger.DB, scheme *runtime.Scheme, obj resource.Object) (storebackend.Storer[runtime.Object], error)

func CreateMemStore

func CreateMemStore() storebackend.Storer[runtime.Object]

Types

type Config

type Config struct {
	Prefix string
	Type   StorageType
	DB     *badger.DB
}

type StorageType

type StorageType int
const (
	StorageType_Memory StorageType = iota
	StorageType_File
	StorageType_KV
)

Jump to

Keyboard shortcuts

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