disk

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package disk provides local disk storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Path is the base directory.
	Path string `mapstructure:"path"`

	// Mode is the default file mode. Defaults to 0755.
	Mode string `mapstructure:"mode"`
}

Config for local storage.

func (*Config) Open

func (config *Config) Open() (storage.Storage, error)

Open a local file system storage.

Jump to

Keyboard shortcuts

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