Documentation ¶
Overview ¶
Package regclient is a legacy package, this has been moved to the top level regclient package
Index ¶
- Constants
- Variables
- type Clientdeprecated
- type ConfigHostdeprecated
- type ImageOptsdeprecated
- type Optdeprecated
- type RegClientdeprecated
- type RepoDockerListdeprecated
- type RepoListdeprecated
- type RepoOptsdeprecated
- type TLSConfdeprecated
- type TagDockerListdeprecated
- type TagListdeprecated
- type TagOptsdeprecated
Constants ¶
const ( // TLSUndefined // // Deprecated: replace with [config.TLSUndefined]. TLSUndefined = config.TLSUndefined // TLSEnabled // // Deprecated: replace with [config.TLSEnabled]. TLSEnabled = config.TLSEnabled // TLSInsecure // // Deprecated: replace with [config.TLSInsecure]. TLSInsecure = config.TLSInsecure // TLSDisabled // // Deprecated: replace with [config.TLSDisabled]. TLSDisabled = config.TLSDisabled )
const ( DefaultBlobChunk = 1024 * 1024 DefaultBlobMax = -1 DefaultRetryLimit = reghttp.DefaultRetryLimit DefaultUserAgent = rcTop.DefaultUserAgent DockerCertDir = rcTop.DockerCertDir DockerRegistry = config.DockerRegistry DockerRegistryAuth = config.DockerRegistryAuth DockerRegistryDNS = config.DockerRegistryDNS )
Variables ¶
var ( // ErrAPINotFound // // Deprecated: replace with [errs.ErrAPINotFound]. ErrAPINotFound = errs.ErrAPINotFound // ErrCanceled // // Deprecated: replace with [errs.ErrCanceled]. ErrCanceled = errs.ErrCanceled //lint:ignore ST1003 exported field cannot be changed for legacy reasons // ErrHttpStatus // // Deprecated: replace with [errs.ErrHttpStatus]. ErrHttpStatus = errs.ErrHTTPStatus // ErrMissingDigest // // Deprecated: replace with [errs.ErrMissingDigest]. ErrMissingDigest = errs.ErrMissingDigest // ErrMissingLocation // // Deprecated: replace with [errs.ErrMissingLocation]. ErrMissingLocation = errs.ErrMissingLocation // ErrMissingName // // Deprecated: replace with [errs.ErrMissingName]. ErrMissingName = errs.ErrMissingName // ErrMissingTag // // Deprecated: replace with [errs.ErrMissingTag]. ErrMissingTag = errs.ErrMissingTag // ErrMissingTagOrDigest // // Deprecated: replace with [errs.ErrMissingTagOrDigest]. ErrMissingTagOrDigest = errs.ErrMissingTagOrDigest // ErrMountReturnedLocation // // Deprecated: replace with [errs.ErrMountReturnedLocation]. ErrMountReturnedLocation = errs.ErrMountReturnedLocation // ErrNotFound // // Deprecated: replace with [errs.ErrNotFound]. ErrNotFound = errs.ErrNotFound // ErrNotImplemented // // Deprecated: replace with [errs.ErrNotImplemented]. ErrNotImplemented = errs.ErrNotImplemented // ErrParsingFailed // // Deprecated: replace with [errs.ErrParsingFailed]. ErrParsingFailed = errs.ErrParsingFailed // ErrRateLimit // // Deprecated: replace with [errs.ErrRateLimit]. ErrRateLimit = errs.ErrHTTPRateLimit // // Deprecated: replace with [errs.ErrUnavailable]. ErrUnavailable = errs.ErrUnavailable // // Deprecated: replace with [errs.ErrUnauthorized]. ErrUnauthorized = errs.ErrHTTPUnauthorized // ErrUnsupportedAPI // // Deprecated: replace with [errs.ErrUnsupportedAPI]. ErrUnsupportedAPI = errs.ErrUnsupportedAPI // ErrUnsupportedConfigVersion // // Deprecated: replace with [errs.ErrUnsupportedConfigVersion]. ErrUnsupportedConfigVersion = errs.ErrUnsupportedConfigVersion // ErrUnsupportedMediaType // // Deprecated: replace with [errs.ErrUnsupportedMediaType]. ErrUnsupportedMediaType = errs.ErrUnsupportedMediaType )
var ( // MediaTypeDocker1Manifest // // Deprecated: replace with [mediatype.Docker1Manifest]. MediaTypeDocker1Manifest = mediatype.Docker1Manifest // MediaTypeDocker1ManifestSigned // // Deprecated: replace with [mediatype.Docker1ManifestSigned] MediaTypeDocker1ManifestSigned = mediatype.Docker1ManifestSigned // MediaTypeDocker2Manifest // // Deprecated: replace with [mediatype.Docker2Manifest]. MediaTypeDocker2Manifest = mediatype.Docker2Manifest // MediaTypeDocker2ManifestList // // Deprecated: replace with [mediatype.Docker2ManifestList]. MediaTypeDocker2ManifestList = mediatype.Docker2ManifestList // MediaTypeDocker2ImageConfig // // Deprecated: replace with [mediatype.Docker2ImageConfig]. MediaTypeDocker2ImageConfig = mediatype.Docker2ImageConfig // MediaTypeOCI1Manifest // // Deprecated: replace with [mediatype.OCI1Manifest]. MediaTypeOCI1Manifest = mediatype.OCI1Manifest // MediaTypeOCI1ManifestList // // Deprecated: replace with [mediatype.OCI1ManifestList]. MediaTypeOCI1ManifestList = mediatype.OCI1ManifestList // MediaTypeOCI1ImageConfig // // Deprecated: replace with [mediatype.OCI1ImageConfig]. MediaTypeOCI1ImageConfig = mediatype.OCI1ImageConfig // MediaTypeDocker2Layer // // Deprecated: replace with [mediatype.Docker2Layer]. MediaTypeDocker2Layer = mediatype.Docker2LayerGzip // MediaTypeOCI1Layer // // Deprecated: replace with [mediatype.OCI1Layer]. MediaTypeOCI1Layer = mediatype.OCI1Layer // MediaTypeOCI1LayerGzip // // Deprecated: replace with [mediatype.OCI1LayerGzip]. MediaTypeOCI1LayerGzip = mediatype.OCI1LayerGzip // MediaTypeBuildkitCacheConfig // // Deprecated: replace with [mediatype.BuildkitCacheConfig]. MediaTypeBuildkitCacheConfig = mediatype.BuildkitCacheConfig )
var ( // NewRegClient creates a new regclient instance. // // Deprecated: replace with [regclient.New]. NewRegClient = rcTop.New // WithCertDir adds a path of certificates to trust similar to Docker's /etc/docker/certs.d. // // Deprecated: replace with [regclient.WithCertDir]. WithCertDir = rcTop.WithCertDir // WithDockerCerts adds certificates trusted by docker in /etc/docker/certs.d. // // Deprecated: replace with [regclient.WithDockerCerts]. WithDockerCerts = rcTop.WithDockerCerts // WithDockerCreds adds configuration from users docker config with registry logins. // // Deprecated: replace with [regclient.WithDockerCreds]. WithDockerCreds = rcTop.WithDockerCreds // WithConfigHosts adds a list of config host settings. // // Deprecated: replace with [regclient.WithConfigHosts]. WithConfigHosts = rcTop.WithConfigHosts // WithConfigHost adds a list of config host settings. // // Deprecated: replace with [regclient.WithConfigHost]. WithConfigHost = rcTop.WithConfigHost // WithBlobSize overrides default blob sizes. // // Deprecated: replace with [regclient.WithBlobSize]. WithBlobSize = rcTop.WithBlobSize // WithLog overrides default logrus Logger. // // Deprecated: replace with [regclient.WithLog]. WithLog = rcTop.WithLog // WithRetryDelay specifies the time permitted for retry delays. // // Deprecated: replace with [regclient.WithRetryDelay]. WithRetryDelay = rcTop.WithRetryDelay // WithRetryLimit specifies the number of retries for non-fatal errors. // // Deprecated: replace with [regclient.WithRetryLimit]. WithRetryLimit = rcTop.WithRetryLimit // WithUserAgent specifies the User-Agent http header. // // Deprecated: replace with [regclient.WithUserAgent]. WithUserAgent = rcTop.WithUserAgent // ImageWithForceRecursive attempts to copy every manifest and blob even if parent manifests already exist in ImageCopy. // // Deprecated: replace with [regclient.ImageWithForceRecursive]. ImageWithForceRecursive = rcTop.ImageWithForceRecursive // ImageWithDigestTags looks for "sha-<digest>.*" tags in the repo to copy with any manifest in ImageCopy. // // Deprecated: replace with [regclient.ImageWithDigestTags]. ImageWithDigestTags = rcTop.ImageWithDigestTags // ImageWithPlatform requests specific platforms from a manifest list in ImageCheckBase. // // Deprecated: replace with [regclient.ImageWithPlatforms]. ImageWithPlatforms = rcTop.ImageWithPlatforms // WithRepoLast passes the last received repository for requesting the next batch of repositories. // // Deprecated: replace with [scheme.WithRepoLast]. WithRepoLast = scheme.WithRepoLast // WithRepoLimit passes a maximum number of repositories to return to the repository list API. // // Deprecated: replace with [scheme.WithRepoLimit]. WithRepoLimit = scheme.WithRepoLimit // TagOptLast passes the last received tag for requesting the next batch of tags. // // Deprecated: replace with [scheme.WithTagLast]. TagOptLast = scheme.WithTagLast // TagOptLimit passes a maximum number of tags to return to the tag list API. // // Deprecated: replace with [scheme.WithTagLimit]. TagOptLimit = scheme.WithTagLimit )
var ( // ConfigHostNewName // // Deprecated: replace with [config.ConfigHostNewName]. ConfigHostNewName = config.HostNewName )
var TemplateFuncs = gotemplate.FuncMap{}
TemplateFuncs adds functions to a template.
Deprecated: replace with gotemplate.FuncMap.
var ( // VCSRef is injected from a build flag, used to version the UserAgent header // // Deprecated: this should now be set using github.com/regclient/regclient/internal/version.vcsTag. VCSRef = "unknown" )
Functions ¶
This section is empty.
Types ¶
type Client
deprecated
added in
v0.4.0
Client is used to access OCI distribution-spec registries.
Deprecated: replace with regclient.RegClient
type ConfigHost
deprecated
ConfigHost defines settings for connecting to a registry.
Deprecated: replace with config.Host.
type ImageOpts
deprecated
added in
v0.3.10
ImageOpts functions are used by image methods.
Deprecated: replace with regclient.ImageOpts
type Opt
deprecated
Opt functions are used by [New] to create a *RegClient.
Deprecated: replace with regclient.Opt
type RegClient
deprecated
RegClient is used to access OCI distribution-spec registries.
Deprecated: replace with regclient.RegClient
type RepoDockerList
deprecated
added in
v0.3.0
type RepoDockerList = repo.RepoRegistryList
RepoDockerList is a list of repositories from the _catalog API
Deprecated: replace with [repo.RepoRegistryList
type RepoList
deprecated
added in
v0.3.0
RepoList is the response for a registry listing.
Deprecated: replace with repo.RepoList
type RepoOpts
deprecated
added in
v0.0.3
RepoOpts is a breaking change (struct to func opts)
Deprecated: replace with regclient.RepoOpts
type TLSConf
deprecated
added in
v0.1.0
TLSConf specifies whether TLS is enabled and verified for a host.
Deprecated: replace with config.TLSConf.
type TagDockerList
deprecated
added in
v0.3.0
type TagDockerList = tag.DockerList
TagDockerList is returned from registry/2.0 API's
Deprecated: replace with tag.DockerList
type TagOpts
deprecated
added in
v0.0.3
TagOpts is used to set options on tag APIs.
Deprecated: replace with scheme.TagOpts
Directories ¶
Path | Synopsis |
---|---|
Package blob is a legacy package, this has been moved to the types/blob package
|
Package blob is a legacy package, this has been moved to the types/blob package |
Package config is a legacy package, this has been moved to the config package
|
Package config is a legacy package, this has been moved to the config package |
Package manifest is a legacy package, this has been moved to the types/manifest package
|
Package manifest is a legacy package, this has been moved to the types/manifest package |
Package types is a legacy package, using the top level types package is recommended
|
Package types is a legacy package, using the top level types package is recommended |