Fix some typos

Signed-off-by: Pan Yibo <mstmdev@gmail.com>
This commit is contained in:
mstmdev
2023-05-10 02:45:57 +08:00
parent 43bbffba37
commit cdaa4025e9
16 changed files with 20 additions and 20 deletions

View File

@@ -130,7 +130,7 @@ func WithNamedPrefix(name string, allowOverwrite bool) StoreOpt {
}
}
// WithNamedPrefix uses a named prefix to references images which only have a tag name
// WithDigestRef uses a named prefix to references images which only have a tag name
// reference in the annotation or check full references annotations against and
// additionally may add a digest reference. Images with no references resolved
// from matching annotations may be stored by digest.

View File

@@ -208,7 +208,7 @@ func (j *ProgressTracker) MarkExists(desc ocispec.Descriptor) {
}
// Adds hierarchy information
// AddChildren adds hierarchy information
func (j *ProgressTracker) AddChildren(desc ocispec.Descriptor, children []ocispec.Descriptor) {
if j == nil || len(children) == 0 {
return

View File

@@ -42,7 +42,7 @@ func init() {
plugins.Register(&transfertypes.OCIRegistry{}, &OCIRegistry{})
}
// Initialize with hosts, authorizer callback, and headers
// NewOCIRegistry initializes with hosts, authorizer callback, and headers
func NewOCIRegistry(ref string, headers http.Header, creds CredentialHelper) *OCIRegistry {
// Create an authorizer
var aopts []docker.AuthorizerOpt