...

Package filesystem

import "github.com/docker/distribution/registry/storage/driver/filesystem"
Overview
Index

Overview ▾

type Driver

Driver is a storagedriver.StorageDriver implementation backed by a local filesystem. All provided paths will be subpaths of the RootDirectory.

type Driver struct {
    // contains filtered or unexported fields
}

func FromParameters

func FromParameters(parameters map[string]interface{}) (*Driver, error)

FromParameters constructs a new Driver with a given parameters map Optional Parameters: - rootdirectory - maxthreads

func New

func New(params DriverParameters) *Driver

New constructs a new Driver with a given rootDirectory

type DriverParameters

DriverParameters represents all configuration options available for the filesystem driver

type DriverParameters struct {
    RootDirectory string
    MaxThreads    uint64
}