storage

package
v0.0.0-...-9cb16bd Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver string
const (
	// DriverFile is the file driver
	DriverFile Driver = "file"
	// DriverAWS is the AWS driver
	DriverAWS Driver = "aws"
)

type Option

type Option func(*StorageOptions)

Option is the func interface to assign options

func WithStorageDriver

func WithStorageDriver(driver string) Option

WithStorageDriver sets the storage driver

type StorageContext

type StorageContext interface {
	Driver() drivers.DriverContext
}

StorageContext is the interface for the storage

func NewStorage

func NewStorage(opts ...Option) (StorageContext, error)

type StorageOptions

type StorageOptions struct {
	Driver Driver
}

StorageOptions defines the options for the storage

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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