storage

package module
v0.0.0-...-8675955 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: BSD-3-Clause Imports: 3 Imported by: 0

README

Analogous to stdlib database/sql, but for application container images and their filesystems

Documentation

Overview

Package storage is intended to the common interaction model for an untold number of backing graph or storage drivers, namely for application container image storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Drivers

func Drivers() []string

Drivers returns a sorted list of the registered drivers

func Register

func Register(name string, driver driver.Driver)

Register makes a database driver available by the provided name. If Register is called twice with the same name or if driver is nil, it panics.

Types

type S

type S struct {
}

S is a storage handle for the storage and management of filesystem trees.

Operations on an handle instance are intended to be safe for concurrent use. Though this would likely not be safe for two competing instances to be operating on the same rootPath (more thought needed here).

func OpenHandle

func OpenHandle(name string, rootPath string) (*S, error)

OpenHandle a storage handle using the specified storage driver name and a rootPath for that driver to operate in.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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