gzfile

package
v7.0.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package gzfile provides a blob implementation akin to fileblob, but with (optional) gzip compression to save space.

It does not support any of the signing features or nearly any of the attribute stuff either #dealwithit

Index

Constants

View Source
const Scheme = "gzfile"

Scheme is the URL scheme gzfile registers its URLOpener under on blob.DefaultMux.

Variables

This section is empty.

Functions

func OpenBucket

func OpenBucket(dir string) (*blob.Bucket, error)

OpenBucket creates a *blob.Bucket backed by the filesystem and rooted at dir. See the package documentation for an example.

Types

type ReadSeekCloser

type ReadSeekCloser interface {
	io.Reader
	io.Seeker
	io.Closer
}

A ReadSeekCloser combines the three standard io interfaces.

type URLOpener

type URLOpener struct{}

URLOpener opens file bucket URLs like "gzfile:///foo/bar/baz".

func (*URLOpener) OpenBucketURL

func (o *URLOpener) OpenBucketURL(ctx context.Context, u *url.URL) (*blob.Bucket, error)

OpenBucketURL opens a blob.Bucket based on u.

Jump to

Keyboard shortcuts

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