Versions in this module Expand all Collapse all v0 v0.0.1 Nov 29, 2026 Changes in this version + const ChunkThreshold + const DefaultBaseURL + const DefaultChunkSize + var SupportedFormats = []string + func DetectFormat(filePath string, data []byte) string + func FindVulnetixDir() (string, bool) + func ValidateFormat(format string) error + type ChunkResponse struct + ChunkNumber int + Error string + OK bool + Received int + TotalChunks int + type Client struct + BaseURL string + CliEnv *vdb.CliEnv + Creds *auth.Credentials + GitHubContext *GitHubActionsContext + HTTPClient *http.Client + func NewClient(baseURL string, creds *auth.Credentials) *Client + func (c *Client) ChunkedUpload(fileName string, data []byte, contentType, format string) (*FinalizeResponse, error) + func (c *Client) ChunkedUploadWithProgress(fileName string, data []byte, contentType, format string, ...) (*FinalizeResponse, error) + func (c *Client) FinalizeUpload(sessionID string) (*FinalizeResponse, error) + func (c *Client) InitiateSession(fileName string, fileSize int, contentType string, totalChunks, chunkSize int, ...) (*InitiateResponse, error) + func (c *Client) MultipartUploadWithProgress(fileName string, data []byte, contentType, format string, ...) (*FinalizeResponse, error) + func (c *Client) SimpleUpload(fileName string, data []byte, contentType, format string) (*FinalizeResponse, error) + func (c *Client) SimpleUploadWithProgress(fileName string, data []byte, contentType, format string, ...) (*FinalizeResponse, error) + func (c *Client) UploadChunk(sessionID string, chunkNumber int, data []byte) (*ChunkResponse, error) + func (c *Client) UploadFile(filePath string, formatOverride string) (*FinalizeResponse, error) + func (c *Client) UploadFileWithProgress(filePath string, formatOverride string, progress ProgressFunc) (*FinalizeResponse, error) + func (c *Client) VerifyAuth() (*VerifyResponse, error) + type CycloneDXValidationError struct + SpecVersion string + Violations []cyclonedx.ValidationViolation + func (e *CycloneDXValidationError) Error() string + type DiscoveredFile struct + Format string + Path string + func DiscoverVulnetixFiles(dir string) ([]DiscoveredFile, []string, error) + type FinalizeResponse struct + Error string + IsDuplicate bool + OK bool + PipelineRecord *PipelineRecord + type GitHubActionsContext struct + APIURL string + Actor string + EventName string + ExtraEnvVars map[string]string + JobName string + RefName string + RefType string + Repository string + RepositoryOwner string + RunID string + RunNumber string + SHA string + ServerURL string + WorkflowName string + type InitiateResponse struct + Error string + ExpiresAt int64 + OK bool + UploadSessionID string + type PipelineRecord struct + DetectedType string + OriginalFileName string + ProcessingState string + SHA256 string + UUID string + type ProgressFunc func(done, total int, stage string) + type VerifyResponse struct + Error string + OK bool + OrgID string