archiver

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archiver

type Archiver interface {
	Create(name string) (io.WriteCloser, error)
	io.Closer
}

func NewTarArchiver

func NewTarArchiver(out io.WriteCloser) Archiver

type ArchiverServer added in v0.18.0

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

func NewArchiverServer added in v0.18.0

func NewArchiverServer(addr, outdir, outerExt string, builder WriteCloserBuilder) *ArchiverServer

func (*ArchiverServer) EnableTLS added in v0.18.0

func (s *ArchiverServer) EnableTLS(serverCert, serverKey, clientCA string) error

func (*ArchiverServer) Shutdown added in v0.18.0

func (s *ArchiverServer) Shutdown(ctx context.Context) error

func (*ArchiverServer) Start added in v0.18.0

func (s *ArchiverServer) Start() error

type CreateReportRequest added in v0.18.0

type CreateReportRequest struct {
	Name string `json:"name"`
}

type RemoteArchiver added in v0.18.0

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

func NewRemoteArchiver added in v0.18.0

func NewRemoteArchiver(server string) (*RemoteArchiver, error)

func (*RemoteArchiver) Close added in v0.18.0

func (a *RemoteArchiver) Close() error

func (*RemoteArchiver) Create added in v0.18.0

func (a *RemoteArchiver) Create(name string) (io.WriteCloser, error)

func (*RemoteArchiver) InitReport added in v0.18.0

func (a *RemoteArchiver) InitReport(reportName string) error

func (*RemoteArchiver) SetClientCert added in v0.18.0

func (a *RemoteArchiver) SetClientCert(certPath, keyPath string) error

func (*RemoteArchiver) SetServerCA added in v0.18.0

func (a *RemoteArchiver) SetServerCA(filepath string) error

type WriteCloserBuilder added in v0.18.0

type WriteCloserBuilder interface {
	Build(closer io.WriteCloser) (io.WriteCloser, error)
}

Jump to

Keyboard shortcuts

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