forked from TrueCloudLab/distribution
fix typos
Signed-off-by: bin liu <liubin0329@gmail.com>
This commit is contained in:
parent
edd7cb5249
commit
913e12c8ff
3 changed files with 4 additions and 4 deletions
|
@ -33,7 +33,7 @@ type Configuration struct {
|
||||||
// the logger context.
|
// the logger context.
|
||||||
Fields map[string]interface{} `yaml:"fields,omitempty"`
|
Fields map[string]interface{} `yaml:"fields,omitempty"`
|
||||||
|
|
||||||
// Hooks allows users to configurate the log hooks, to enabling the
|
// Hooks allows users to configure the log hooks, to enabling the
|
||||||
// sequent handling behavior, when defined levels of log message emit.
|
// sequent handling behavior, when defined levels of log message emit.
|
||||||
Hooks []LogHook `yaml:"hooks,omitempty"`
|
Hooks []LogHook `yaml:"hooks,omitempty"`
|
||||||
}
|
}
|
||||||
|
@ -204,7 +204,7 @@ type MailOptions struct {
|
||||||
// Password defines password of login user
|
// Password defines password of login user
|
||||||
Password string `yaml:"password,omitempty"`
|
Password string `yaml:"password,omitempty"`
|
||||||
|
|
||||||
// Insecure defines if smtp login skips the secure cerification.
|
// Insecure defines if smtp login skips the secure certification.
|
||||||
Insecure bool `yaml:"insecure,omitempty"`
|
Insecure bool `yaml:"insecure,omitempty"`
|
||||||
} `yaml:"smtp,omitempty"`
|
} `yaml:"smtp,omitempty"`
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ var (
|
||||||
HTTPStatusCode: http.StatusForbidden,
|
HTTPStatusCode: http.StatusForbidden,
|
||||||
})
|
})
|
||||||
|
|
||||||
// ErrorCodeUnavailable provides a common error to report unavialability
|
// ErrorCodeUnavailable provides a common error to report unavailability
|
||||||
// of a service or endpoint.
|
// of a service or endpoint.
|
||||||
ErrorCodeUnavailable = Register("errcode", ErrorDescriptor{
|
ErrorCodeUnavailable = Register("errcode", ErrorDescriptor{
|
||||||
Value: "UNAVAILABLE",
|
Value: "UNAVAILABLE",
|
||||||
|
|
|
@ -123,7 +123,7 @@ func (ms *manifestStore) Put(ctx context.Context, manifest distribution.Manifest
|
||||||
return "", fmt.Errorf("unrecognized manifest type %T", manifest)
|
return "", fmt.Errorf("unrecognized manifest type %T", manifest)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete removes the revision of the specified manfiest.
|
// Delete removes the revision of the specified manifest.
|
||||||
func (ms *manifestStore) Delete(ctx context.Context, dgst digest.Digest) error {
|
func (ms *manifestStore) Delete(ctx context.Context, dgst digest.Digest) error {
|
||||||
context.GetLogger(ms.ctx).Debug("(*manifestStore).Delete")
|
context.GetLogger(ms.ctx).Debug("(*manifestStore).Delete")
|
||||||
return ms.blobStore.Delete(ctx, dgst)
|
return ms.blobStore.Delete(ctx, dgst)
|
||||||
|
|
Loading…
Reference in a new issue