Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultHost is the default Host // found in Meta (info) section of spec file DefaultHost string = "localhost" // DefaultBasePath is the default BasePath // found in Meta (info) section of spec file DefaultBasePath string = "/api/v2.0" )
Variables ¶
View Source
var DefaultSchemes = []string{"http", "https"}
DefaultSchemes are the default schemes found in Meta (info) section of spec file
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // URL is the base URL of the upstream server URL *url.URL // Transport is an inner transport for the client Transport http.RoundTripper // AuthInfo is for authentication AuthInfo runtime.ClientAuthInfoWriter }
type HarborAPI ¶
type HarborAPI struct { Artifact artifact.API Auditlog auditlog.API Configure configure.API GC gc.API Health health.API Icon icon.API Immutable immutable.API Label label.API Ldap ldap.API Member member.API OIDC oidc.API Ping ping.API Preheat preheat.API Project project.API ProjectMetadata project_metadata.API Quota quota.API Registry registry.API Replication replication.API Repository repository.API Retention retention.API Robot robot.API Robotv1 robotv1.API Scan scan.API ScanAll scan_all.API Scanner scanner.API Search search.API Statistic statistic.API SystemCVEAllowlist system_cve_allowlist.API Systeminfo systeminfo.API User user.API Usergroup usergroup.API Webhook webhook.API Webhookjob webhookjob.API Transport runtime.ClientTransport }
HarborAPI is a client for harbor API
Click to show internal directories.
Click to hide internal directories.