fileout

package
v0.0.0-...-494fd49 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileOut

type FileOut interface {
	Create(fn string, size int64) (io.WriteCloser, error)
	Append(fn string, size int64) (io.WriteCloser, error)
	Close() error
	HasPartial() bool
	FixedSizeOnly() bool
}

type NormalFileOut

type NormalFileOut struct{}

func (*NormalFileOut) Append

func (*NormalFileOut) Append(fn string, size int64) (io.WriteCloser, error)

func (*NormalFileOut) Close

func (*NormalFileOut) Close() error

func (*NormalFileOut) Create

func (*NormalFileOut) Create(fn string, size int64) (io.WriteCloser, error)

func (*NormalFileOut) FixedSizeOnly

func (*NormalFileOut) FixedSizeOnly() bool

func (*NormalFileOut) HasPartial

func (*NormalFileOut) HasPartial() bool

type TarOut

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

func NewTarOut

func NewTarOut(w io.Writer) *TarOut

func (*TarOut) Append

func (t *TarOut) Append(fn string, size int64) (io.WriteCloser, error)

func (*TarOut) Close

func (t *TarOut) Close() error

func (*TarOut) Create

func (t *TarOut) Create(fn string, size int64) (io.WriteCloser, error)

func (*TarOut) FixedSizeOnly

func (*TarOut) FixedSizeOnly() bool

func (*TarOut) HasPartial

func (*TarOut) HasPartial() bool

Jump to

Keyboard shortcuts

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