s3

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Server

func Server(pc *client.APIClient, port uint16) *http.Server

Server runs an HTTP server with an S3-like API for PFS. This allows you to use s3 clients to acccess PFS contents.

Bucket names correspond to repo names, and files are accessible via the s3 key pattern "<branch>/<filepath>". For example, to get the file "a/b/c.txt" on the "foo" repo's "master" branch, you'd making an s3 get request with bucket = "foo", key = "master/a/b/c.txt".

Note: in s3, bucket names are constrained by IETF RFC 1123, (and its predecessor RFC 952) but pachyderm's repo naming constraints are slightly more liberal. If the s3 client does any kind of bucket name validation (this includes minio), repos whose names do not comply with RFC 1123 will not be accessible.

Types

This section is empty.

Jump to

Keyboard shortcuts

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