package
0.0.0-20230628214157-3bfe64699e82
Repository: https://github.com/gravitational/gravity.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
BasicConfiguration creates a configuration object for running a local registry server on the specified address addr and using rootdir as a root directory for a filesystem driver.
CleanRegistry removes images not present in requiredImages from registry rooted at registryDir.
ConnectRegistry connects to the registry with the specified address.
Domain returns the domain part of the Named reference.
GenerateTestDockerImage generates a test docker image in the specified repository and with the given tag.
GenerateTestDockerImages generates the requested number of docker images in the specified repository.
IsManifestUnknown determines if the specified error is an `unknown manifest` error.
No description provided by the author
Login logs into a Docker registry.
Logout logs out of a Docker registry.
NewClient creates a docker client using endpoint for connection.
NewClientFromEnv creates a docker client using environment.
NewClientWithTimeout creates a docker client using endpoint for connection and a time limit for requests.
NewClusterImageService returns an in-cluster image service for the specified registry address.
NewDefaultClient returns a new docker client using defaults.
NewDefaultImageService returns a new instance of the ImageService using defaults.
NewImageService creates an image service using the supplied address and certificate name to connect to the remote registry.
NewPuller returns an instance of Puller using the specified client and credentials.
NewRegistry creates a new registry instance from the specified configuration.
NewScanningImageService creates an image service that rewrites image paths to a repository used for scanning those images.
NewSynchronizer creates a new docker image synchronizer responsible for exporting docker images to a filesystem during build.
NewTestRegistry returns a new started docker registry.
Parse parses s and returns a syntactically valid Reference.
Path returns the name without the domain part of the Named reference.
TagFromString creates a new tag structure from string.
TranslateRuntimeImage translates the specified docker image into a gravity package specified in req.
# Constants
NameTotalLengthMax is the maximum total number of characters in a repository name.
# Variables
DigestRegexp matches valid digests.
DomainRegexp defines the structure of potential domain components that may be part of image names.
ErrDigestInvalidFormat represents an error while trying to parse a string as a tag.
ErrNameContainsUppercase is returned for invalid repository names that contain uppercase characters.
ErrNameEmpty is returned for empty, invalid repository names.
ErrNameNotCanonical is returned when a name is not canonical.
ErrNameTooLong is returned when a repository name is longer than NameTotalLengthMax.
ErrReferenceInvalidFormat represents an error while trying to parse a string as a reference.
ErrTagInvalidFormat represents an error while trying to parse a string as a tag.
IdentifierRegexp is the format for string identifier used as a content addressable identifier using sha256.
NameRegexp is the format for the name component of references.
ReferenceRegexp is the full supported format of a reference.
ShortIdentifierRegexp is the format used to represent a prefix of an identifier.
TagRegexp matches valid tag names.
# Structs
Image represents a single Docker image.
Puller is a docker puller implementation.
A Registry represents a complete instance of the registry.
RegistryConnectionRequest represents connection information for a Docker registry.
RegistryInfo contains information about connecting to a registry.
RemoteStore defines a remote distribution registry.
ScanConfig represents configuration used to push images to a docker repository configured for scanning those images for vulnerabilities or other problems.
Synchronizer contains the logic for pulling and exporting image layers.
TagSpec is a helper to deal with Docker 'registry tag' format like host:port/name:version.
TestRegistry represents an instance of a docker registry for testing purposes.
TranslateImageRequest describes a request to translate runtime docker image to telekube package.
# Interfaces
Canonical reference is an object with a fully unique name including a name with domain and digest.
Digested is an object which has a digest in which it can be referenced by.
ImageService defines an interface to a private docker registry.
Interface defines an interface to docker.
Named is an object with a full name.
NamedTagged is an object including a name and tag.
PullService defines an interface to pull images.
Reference is an opaque object reference identifier that may include modifiers such as a hostname, name, tag, and digest.
Tagged is an object which has a tag.