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
type Repository ¶
type Repository interface { internal.ResourceFactory internal.ResourceRepository internal.TagRepository internal.TagFactory internal.ResourceTagger }
func NewRepository ¶
func NewRepository(kv KVStore, g GraphDB) Repository
Click to show internal directories.
Click to hide internal directories.