factory

package
v1.7.6-netes2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, factory StorageFactoryFunc)

Types

type DestroyFunc

type DestroyFunc func()

DestroyFunc is to destroy any resources used by the storage returned in Create() together.

func Create

Create creates a storage backend based on given config.

type StorageFactoryFunc

type StorageFactoryFunc func(c storagebackend.Config) (storage.Interface, DestroyFunc, error)

Jump to

Keyboard shortcuts

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