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
Click to show internal directories.
Click to hide internal directories.