stream

package
v0.0.0-...-ec4d356 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotComputed is returned when the requested value is not yet
	// computed because the stream has not been consumed yet.
	ErrNotComputed = errors.New("value not computed until stream is consumed")

	// ErrConsumed is returned by Compressed when the underlying stream has
	// already been consumed and closed.
	ErrConsumed = errors.New("stream was already consumed")
)

Functions

This section is empty.

Types

type Layer

type Layer struct {
	// contains filtered or unexported fields
}

func NewLayer

func NewLayer(rc io.ReadCloser) *Layer

func (*Layer) Compressed

func (l *Layer) Compressed() (io.ReadCloser, error)

func (*Layer) DiffID

func (l *Layer) DiffID() (v1.Hash, error)

func (*Layer) Digest

func (l *Layer) Digest() (v1.Hash, error)

func (*Layer) Size

func (l *Layer) Size() (int64, error)

func (*Layer) Uncompressed

func (l *Layer) Uncompressed() (io.ReadCloser, error)

Jump to

Keyboard shortcuts

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