coreutils

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrServiceNotSupported will return when service not supported.
	ErrServiceNotSupported = errors.New("service not supported")
	// ErrServiceNotImplemented will return when service doesn't implement Servicer.
	ErrServiceNotImplemented = errors.New("service not implemented")
	// ErrServiceNamespaceNotGiven will return when service namespace not given.
	ErrServiceNamespaceNotGiven = errors.New("service namespace not given")
)

Functions

func Open

func Open(cfg string) (srv storage.Servicer, store storage.Storager, err error)

Open will parse config string and return valid Servicer and Storager.

Depends on config string's service type, Servicer could be nil. Depends on config string's content, Storager could be nil if namespace not given.

func OpenServicer

func OpenServicer(cfg string) (srv storage.Servicer, err error)

OpenServicer will open a servicer from config string.

func OpenStorager

func OpenStorager(cfg string) (store storage.Storager, err error)

OpenStorager will open a storager from config string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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