storage

package
v0.0.0-...-8f3712b Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package storage contains implementation of a data-storage plugin wrapper.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmptyStorageProvider

func NewEmptyStorageProvider() providers.IStorageProvider

NewEmptyStorageProvider returns an empty storage provider. It is used if no configuration was supplied.

func NewStorageProvider

func NewStorageProvider(ctor *ConstructStorage) providers.IStorageProvider

NewStorageProvider returns a new storage provider.

func PropertyLoad

func PropertyLoad(property enums.Property, value interface{}) (interface{}, error)

PropertyLoad restores actual property from the database.

func PropertySave

func PropertySave(property enums.Property, value interface{}) (interface{}, error)

PropertySave converts actual property before storing into the database.

Types

type ConstructStorage

type ConstructStorage struct {
	PluginLogger common.ILoggerProvider
	Secret       common.ISecretProvider
	Loader       providers.IPluginLoaderProvider
	RawConfig    []byte
	Provider     string
}

ConstructStorage has data required for a new storage provider.

Jump to

Keyboard shortcuts

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