pdcp

package
v3.2.12 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	MaxChunkSize = 4 * unitutils.Mega // 4 MB

)

Variables

This section is empty.

Functions

This section is empty.

Types

type UploadWriter

type UploadWriter struct {
	*output.StandardWriter
	// contains filtered or unexported fields
}

UploadWriter is a writer that uploads its output to pdcp server to enable web dashboard and more

func NewUploadWriter

func NewUploadWriter(ctx context.Context, creds *pdcpauth.PDCPCredentials) (*UploadWriter, error)

NewUploadWriter creates a new upload writer

func (*UploadWriter) Close

func (u *UploadWriter) Close()

Close closes the upload writer

func (*UploadWriter) SetScanID

func (u *UploadWriter) SetScanID(id string) error

SetScanID sets the scan id for the upload writer

func (*UploadWriter) SetScanName

func (u *UploadWriter) SetScanName(name string)

SetScanName sets the scan name for the upload writer

Jump to

Keyboard shortcuts

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