Documentation ¶
Index ¶
- Constants
- func NewBlockAPIServer(dir string, backend string) (pfsclient.BlockAPIServer, error)
- func NewLocalBlockAPIServer(dir string) (pfsclient.BlockAPIServer, error)
- func NewObjBlockAPIServer(dir string, objClient obj.Client) (pfsclient.BlockAPIServer, error)
- type APIServer
- type InternalAPIServer
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 ¶
NewObjBlockAPIServer create a BlockAPIServer from an obj.Client.
Types ¶
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.
Click to show internal directories.
Click to hide internal directories.