harbor

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package harbor lists a Harbor registry through Harbor's v2 API instead of the distribution API. One artifacts page covers up to 100 manifests with their tags, push and pull times and attached signatures and SBOMs, so tags need no request each.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry is one Harbor instance. It is a crawl.Lister.

func New

func New(host string, insecure bool, kc authn.Keychain, rt http.RoundTripper, userAgent string) (*Registry, error)

New returns a client for the Harbor at host. Credentials, such as a robot account, come from the keychain as a username and password.

func (*Registry) Calls

func (r *Registry) Calls() int64

Calls returns how many Harbor API calls the client has made.

func (*Registry) Images

func (r *Registry) Images(ctx context.Context, repo string) ([]crawl.Listed, error)

Images lists every artifact in a repository with its tags and push and pull times. Signatures and SBOMs Harbor keeps as accessories are listed as artifacts attached to their subject.

func (*Registry) Repos

func (r *Registry) Repos(ctx context.Context) ([]string, error)

Repos lists every repository the credentials can see, as project/repository.

Jump to

Keyboard shortcuts

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