server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2016 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

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

Valid backends

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)

NewLocalBlockAPIServer creates a BlockAPIServer.

func NewObjBlockAPIServer

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

NewObjBlockAPIServer create a BlockAPIServer from an obj.Client.

Types

type APIServer

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

APIServer represents an api server.

func NewAPIServer

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

NewAPIServer creates an APIServer.

type InternalAPIServer

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

InternalAPIServer represents and internal api server.

func NewInternalAPIServer

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

NewInternalAPIServer creates an InternalAPIServer.

Jump to

Keyboard shortcuts

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