client

package
v0.210.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 44 Imported by: 5

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.Client
	Auditlog           *auditlog.Client
	Configure          *configure.Client
	GC                 *gc.Client
	Health             *health.Client
	Icon               *icon.Client
	Immutable          *immutable.Client
	Jobservice         *jobservice.Client
	Label              *label.Client
	Ldap               *ldap.Client
	Member             *member.Client
	OIDC               *oidc.Client
	Permissions        *permissions.Client
	Ping               *ping.Client
	Preheat            *preheat.Client
	Project            *project.Client
	ProjectMetadata    *project_metadata.Client
	Purge              *purge.Client
	Quota              *quota.Client
	Registry           *registry.Client
	Replication        *replication.Client
	Repository         *repository.Client
	Retention          *retention.Client
	Robot              *robot.Client
	Robotv1            *robotv1.Client
	Scan               *scan.Client
	ScanAll            *scan_all.Client
	ScanDataExport     *scan_data_export.Client
	Scanner            *scanner.Client
	Schedule           *schedule.Client
	Search             *search.Client
	Securityhub        *securityhub.Client
	Statistic          *statistic.Client
	SystemCVEAllowlist *system_cve_allowlist.Client
	Systeminfo         *systeminfo.Client
	User               *user.Client
	Usergroup          *usergroup.Client
	Webhook            *webhook.Client
	Webhookjob         *webhookjob.Client
	Transport          runtime.ClientTransport
}

HarborAPI is a client for harbor API

func New

func New(c Config) *HarborAPI

New creates a new harbor API HTTP client.

Jump to

Keyboard shortcuts

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