blobproxy

package module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 5 Imported by: 0

README

blobproxy CI godoc goreportcard license

Go http.Handler for serving the contents of a gocloud.dev/blob.Bucket, e.g. an s3 bucket.

install

# application
go install github.com/logsquaredn/blobproxy/cmd/blobproxy
# module
go get github.com/logsquaredn/blobproxy

use

$ blobproxy -h
Usage:
  blobproxy [--port|-p 8080] {s3|azblob|gs}://bucket [/prefix]

Flags:
  -h, --help                  help for blobproxy
  -p, --port int              port (default 8080)
  -V, --verbose count         verbose
  -v, --version               version for blobproxy
$ blobproxy s3://my-bucket /my-prefix
$ curl http://localhost:8080/my-prefix/my-bucket-object

See https://gocloud.dev/concepts/urls/ for supported URL formats.

Remember to escape & in the URL's query parameters. See docker-compose.yml for an example.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Semver = "0.0.0"

Functions

func GetSemver

func GetSemver() string

func WithLogger

func WithLogger(ctx context.Context, logger Logger) context.Context

Types

type Logger

type Logger = logr.Logger

func LoggerFrom

func LoggerFrom(ctx context.Context) Logger

func NewLogger

func NewLogger() Logger

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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