package
2.2.1+incompatible
Repository: https://github.com/goharbor/harbor.git
Documentation: pkg.go.dev
# Functions
NewClient news a basic client.
NewClientPool news a basic client pool.
NewSpec news V1 spec.
# Constants
HTTPAcceptHeader represents the HTTP accept header.
HTTPContentType represents the HTTP content-type header.
MimeTypeAdapterMeta defines the mime type for adapter metadata.
MimeTypeDockerArtifact defines the mime type for docker artifact.
MimeTypeGenericVulnerabilityReport defines the MIME type for the generic report with enhanced information.
MimeTypeNativeReport defines the mime type for native report.
MimeTypeOCIArtifact defines the mime type for OCI artifact.
MimeTypeRawReport defines the mime type for raw report.
MimeTypeScanRequest defines the mime type for scan request.
MimeTypeScanResponse defines the mime type for scan response.
# Variables
DefaultClientPool is a default client pool.
# Structs
Artifact represents an artifact stored in Registry.
Definition for API.
Error message.
ErrorResponse contains error message when requests are not correctly handled.
PoolConfig provides configurations for the client pool.
Registry represents Registry connection settings.
ReportNotReadyError is an error to indicate the scan report is not ready.
Scanner represents metadata of a Scanner Adapter which allow Harbor to lookup a scanner capable of scanning a given Artifact stored in its registry and making sure that it can interpret a returned result.
ScannerAdapterMetadata represents metadata of a Scanner Adapter which allows Harbor to lookup a scanner capable of scanning a given Artifact stored in its registry and making sure that it can interpret a returned result.
ScannerCapability consists of the set of recognized artifact MIME types and the set of scanner report MIME types.
ScanRequest represents a structure that is sent to a Scanner Adapter to initiate artifact scanning.
ScanResponse represents the response returned by the scanner adapter after scan request successfully submitted.
Spec of the API Contains URL and possible headers.
# Interfaces
Client defines the methods to access the adapter services that implement the REST API specs.
ClientPool defines operations for the client pool which provides v1 client cache.
# Type aliases
RequestResolver is a function template to modify the API request, e.g: add headers.
ScannerProperties is a set of custom properties that can further describe capabilities of a given scanner.