proxy

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	Name         string
	CreationDate time.Time
}

type Content

type Content struct {
	Key          string
	Size         int64
	LastModified time.Time
	ETag         string
}

type ListBucketResponse

type ListBucketResponse struct {
	Buckets []*Bucket
}

type ListBucketResult

type ListBucketResult struct {
	Name           string
	CommonPrefixes []*s3pb.CommonPrefix
	Contents       []*Content
	Prefix         string
	Delimiter      string
	KeyCount       int64
}

type S3Proxy

type S3Proxy struct {
	Backend s3pb.BackendClient
	// contains filtered or unexported fields
}

func NewS3Proxy

func NewS3Proxy(backend s3pb.BackendClient) *S3Proxy

func (*S3Proxy) CreateBucket

func (a *S3Proxy) CreateBucket(s3query types.S3Query, wr http.ResponseWriter, r *http.Request)

func (*S3Proxy) DeleteObject

func (a *S3Proxy) DeleteObject(s3query types.S3Query, wr http.ResponseWriter, r *http.Request)

func (*S3Proxy) GetBucket

func (a *S3Proxy) GetBucket(s3query types.S3Query, wr http.ResponseWriter, r *http.Request)

func (*S3Proxy) GetObject

func (a *S3Proxy) GetObject(s3query types.S3Query, wr http.ResponseWriter, r *http.Request)

func (*S3Proxy) HeadObject

func (a *S3Proxy) HeadObject(s3query types.S3Query, wr http.ResponseWriter, r *http.Request)

func (*S3Proxy) ListBuckets

func (a *S3Proxy) ListBuckets(s3query types.S3Query, wr http.ResponseWriter, r *http.Request)

func (*S3Proxy) PutObject

func (a *S3Proxy) PutObject(s3query types.S3Query, wr http.ResponseWriter, r *http.Request)

func (*S3Proxy) ServeHTTP

func (a *S3Proxy) ServeHTTP(wr http.ResponseWriter, r *http.Request)

func (*S3Proxy) ServeMux

func (a *S3Proxy) ServeMux(s3Op types.S3Operation) func(s3query types.S3Query, wr http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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