database

package
v0.0.0-...-d85e56b Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GraphDB

type GraphDB interface {
	DeleteResourceTag(resource internal.Resource, tag string) error
	AddResourceTag(resource internal.Resource, tag string) error
	CreateResource(resource internal.Resource) error
	CreateTag(tag internal.Tag) error
	FindAllResources(params internal.ResourceParams) ([]string, error)
	FindAllTags(params internal.TagParams) ([]string, error)
}

func NewGraphDatabase

func NewGraphDatabase() GraphDB

type KVStore

type KVStore interface {
	GetResource(id string) (internal.Resource, error)
	GetAllResources() ([]internal.Resource, error)
	PutResource(id string, resource internal.Resource) error
	GetTag(id string) (internal.Tag, error)
	GetAllTags() ([]internal.Tag, error)
	PutTag(id string, tag internal.Tag) error
}

func NewBoltConnection

func NewBoltConnection(lc fx.Lifecycle, configuration internal.Configuration) KVStore

func NewBoltConnectionWithBackup

func NewBoltConnectionWithBackup(lc fx.Lifecycle, config internal.Configuration) KVStore

Jump to

Keyboard shortcuts

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