Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var GlobalActiveCred auth.Credentials
GlobalActiveCred exposes minio's cmd.globalActiveCred.
nolint: golint
var GlobalServerRegion string
GlobalServerRegion exposes minio's cmd.globalServerRegion.
nolint: golint
Functions ¶
func NewHTTPClient ¶
NewHTTPClient returns a new http.Client with StorjTransport as the Transport. client := s3.New(awsSession, aws.NewConfig().WithHTTPClient(&s3link.NewHTTPClient()})) downloader := s3manager.NewDownloader(awsSession, func(d *s3manager.Downloader) { d.S3 = client }) uploader := s3manager.NewUploader(awsSession, func(u *s3manager.Uploader) { u.S3 = client })
Types ¶
type StorjTransport ¶
type StorjTransport struct {
// contains filtered or unexported fields
}
StorjTransport can be used as an http.Transport, but uses the Storj Network directly via DRCP, not HTTP.
func NewStorjTransport ¶
func NewStorjTransport() StorjTransport
NewStorjTransport can be used as an http.Client{Transport: NewStorjTransport()}. A serialized Storj access grant should be passed in via the environment variables "ACCESS".