Documentation ¶
Index ¶
- Constants
- func NewBlockAPIServer(dir string, cacheBytes int64, backend string) (pfsclient.BlockAPIServer, error)
- func NewLocalBlockAPIServer(dir string) (pfsclient.BlockAPIServer, error)
- func NewObjBlockAPIServer(dir string, cacheBytes int64, objClient obj.Client) (pfsclient.BlockAPIServer, error)
- type APIServer
Constants ¶
View Source
const ( AmazonBackendEnvVar = "AMAZON" GoogleBackendEnvVar = "GOOGLE" MicrosoftBackendEnvVar = "MICROSOFT" )
Valid backends
Variables ¶
This section is empty.
Functions ¶
func NewBlockAPIServer ¶
func NewBlockAPIServer(dir string, cacheBytes int64, 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, cacheBytes int64, objClient obj.Client) (pfsclient.BlockAPIServer, error)
NewObjBlockAPIServer create a BlockAPIServer from an obj.Client.
Types ¶
Click to show internal directories.
Click to hide internal directories.