snapshotstream

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrArchiveFormat = errors.New("unknown archive format")
View Source
var ErrInvalid = errors.New("snapshot invalid")
View Source
var ErrNotFound = errors.New("snapshot not found")

Functions

This section is empty.

Types

type Options

type Options struct {
	Name   string
	Root   fs.FS
	Format api.ArchiveFormat
}

type Stream

type Stream struct {
	ContentType string
	Filename    string
	// contains filtered or unexported fields
}

func New

func New(opts Options) (*Stream, error)

func (*Stream) ID

func (s *Stream) ID() string

func (*Stream) Name

func (s *Stream) Name() string

func (*Stream) Status

func (s *Stream) Status() api.DownloadStatus

func (*Stream) WriteArchive added in v0.0.6

func (s *Stream) WriteArchive(w io.Writer) error

Jump to

Keyboard shortcuts

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