Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxChunkSize = 4 * unitutils.Mega // 4 MB NoneTeamID = "none" )
Variables ¶
View Source
var ( // teamID if given TeamIDEnv = env.GetEnvOrDefault("PDCP_TEAM_ID", NoneTeamID) )
Functions ¶
This section is empty.
Types ¶
type UploadWriter ¶
type UploadWriter struct { *output.StandardWriter TeamID string // 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) 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
func (*UploadWriter) SetTeamID ¶
func (u *UploadWriter) SetTeamID(id string)
Click to show internal directories.
Click to hide internal directories.