storage_factory

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MPL-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorage

func NewStorage(ctx context.Context, storageType StorageType, options storage.CreateStorageOptions) (storage.Storage, *schema.Diagnostics)

NewStorage Uses the passed arguments to create a Storage of a given type

func RegisteredCreateStorageFactory

func RegisteredCreateStorageFactory(storageType StorageType, function CreateStorageFactoryFunction) *schema.Diagnostics

Types

type CreateStorageFactoryFunction

type CreateStorageFactoryFunction func(ctx context.Context, options storage.CreateStorageOptions) (storage.Storage, *schema.Diagnostics)

CreateStorageFactoryFunction The factory method that creates the Storage

type StorageType

type StorageType int
const (

	// StorageTypePostgresql postgresql
	StorageTypePostgresql StorageType = iota
)

func (StorageType) String

func (x StorageType) String() string

Jump to

Keyboard shortcuts

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