backup

package
v0.0.0-...-c283e9f Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: BSD-3-Clause Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(client controller.Client, out io.Writer, progress ProgressBar) error

Types

type ProgressBar

type ProgressBar interface {
	Add(int) int
	io.Writer
}

type TarWriter

type TarWriter struct {
	*tar.Writer
	// contains filtered or unexported fields
}

func NewTarWriter

func NewTarWriter(name string, w io.Writer, progress ProgressBar) *TarWriter

func (*TarWriter) WriteCommandOutput

func (t *TarWriter) WriteCommandOutput(client controller.Client, name string, app string, newJob *ct.NewJob) error

func (*TarWriter) WriteHeader

func (t *TarWriter) WriteHeader(name string, length int) error

func (*TarWriter) WriteJSON

func (t *TarWriter) WriteJSON(name string, v interface{}) error

Jump to

Keyboard shortcuts

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