server

package
v1.0.446 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2016 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AmazonBackendEnvVar = "AMAZON"
	GoogleBackendEnvVar = "GOOGLE"
)

Variables

This section is empty.

Functions

func NewBlockAPIServer

func NewBlockAPIServer(dir string, backend string) (pfsclient.BlockAPIServer, error)

NewBlockAPIServer creates a BlockAPIServer using the credentials it finds in the environment

func NewLocalBlockAPIServer

func NewLocalBlockAPIServer(dir string) (pfsclient.BlockAPIServer, error)

func NewObjBlockAPIServer

func NewObjBlockAPIServer(dir string, objClient obj.Client) (pfsclient.BlockAPIServer, error)

Types

type APIServer

type APIServer interface {
	pfsclient.APIServer // SJ: WOW this is bad naming
	shard.Frontend
}

func NewAPIServer

func NewAPIServer(hasher *pfsserver.Hasher, router shard.Router) APIServer

type InternalAPIServer

type InternalAPIServer interface {
	pfsclient.InternalAPIServer // SJ: also bad naming
	shard.Server
}

func NewInternalAPIServer

func NewInternalAPIServer(hasher *pfsserver.Hasher, router shard.Router, driver drive.Driver) InternalAPIServer

Jump to

Keyboard shortcuts

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