package
Version:
v0.0.406
Opens a new window with list of versions in this module.
Published: Mar 14, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Digest(ctx context.Context, bs ByteStream) (schema.Digest, error)
func ReadAll(contents ByteStream) ([]byte, error)
func WriteTo(w io.Writer, contents ByteStream) error
type ByteStream interface {
ContentLength() uint64
Reader() (io.ReadCloser, error)
}
type ByteStreamWithDigest interface {
ByteStream
ComputeDigest(context.Context) (schema.Digest, error)
}
type ReaderAtCloser interface {
io.ReaderAt
io.Closer
}
func ReaderAt(bs ByteStream) (ReaderAtCloser, error)
type Static struct {
Contents []byte
}
func (s Static) ContentLength() uint64
func (s Static) Reader() (io.ReadCloser, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.