Documentation ¶
Index ¶
Constants ¶
View Source
const ( SEEKABLE ReaderType = "seekable" // reader which supports seek NONSEEKABLE = "discard" // reader which is not seekable SUBSET = "subset" // reader which operates on pre filtered data )
Variables ¶
View Source
var (
CleanupGroup *sync.WaitGroup
)
Functions ¶
func InitializeGlobals ¶
func InitializeGlobals()
func InitializeSignalHandler ¶
func InitializeSignalHandler()
Types ¶
type CommonBackupPipeWriterCloser ¶
type CommonBackupPipeWriterCloser struct {
// contains filtered or unexported fields
}
func NewCommonBackupPipeWriterCloser ¶
func NewCommonBackupPipeWriterCloser(writeHandle io.WriteCloser) (cPipe CommonBackupPipeWriterCloser)
func (CommonBackupPipeWriterCloser) Close ¶
func (cPipe CommonBackupPipeWriterCloser) Close() error
Never returns error, suppressing them instead
type GZipBackupPipeWriterCloser ¶
type GZipBackupPipeWriterCloser struct {
// contains filtered or unexported fields
}
func NewGZipBackupPipeWriterCloser ¶
func NewGZipBackupPipeWriterCloser(writeHandle io.WriteCloser, compressLevel int) (gzPipe GZipBackupPipeWriterCloser, err error)
func (GZipBackupPipeWriterCloser) Close ¶
func (gzPipe GZipBackupPipeWriterCloser) Close() error
Returns errors from underlying common writer only
type RestoreReader ¶
type RestoreReader struct {
// contains filtered or unexported fields
}
RestoreReader structure to wrap the underlying reader. * readerType identifies how the reader can be used * SEEKABLE uses seekReader. Used when restoring from uncompressed data with filters from local filesystem * NONSEEKABLE and SUBSET types uses bufReader. * SUBSET type applies when restoring using plugin(if compatible) from uncompressed data with filters * NONSEEKABLE type applies for every other restore scenario
type ZSTDBackupPipeWriterCloser ¶
type ZSTDBackupPipeWriterCloser struct {
// contains filtered or unexported fields
}
func NewZSTDBackupPipeWriterCloser ¶
func NewZSTDBackupPipeWriterCloser(writeHandle io.WriteCloser, compressLevel int) (zstdPipe ZSTDBackupPipeWriterCloser, err error)
func (ZSTDBackupPipeWriterCloser) Close ¶
func (zstdPipe ZSTDBackupPipeWriterCloser) Close() error
Returns errors from underlying common writer only
Click to show internal directories.
Click to hide internal directories.