Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg Config) (storagecore.Storage, error)
New constructs in-memory storage. @group Driver Constructors
Example: memory storage
fs, _ := memorystorage.New(memorystorage.Config{
Prefix: "sandbox",
})
_ = fs
func NewContext ¶
Types ¶
type Config ¶
type Config struct {
Prefix string
}
Config defines an in-memory storage disk. @group Driver Config
Example: define memory storage config
cfg := memorystorage.Config{}
_ = cfg
Example: define memory storage config with all fields
cfg := memorystorage.Config{
Prefix: "sandbox", // default: ""
}
_ = cfg
func (Config) DriverName ¶
func (Config) ResolvedConfig ¶
func (c Config) ResolvedConfig() storagecore.ResolvedConfig
Click to show internal directories.
Click to hide internal directories.