mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
update various "doc" links in code
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
lncluster "github.com/moby/moby/v2/daemon/libnetwork/cluster"
|
||||
)
|
||||
|
||||
// Cluster is the interface for github.com/docker/docker/daemon/cluster.(*Cluster).
|
||||
// Cluster is the interface for [github.com/moby/moby/v2/daemon/cluster.Cluster].
|
||||
type Cluster interface {
|
||||
ClusterStatus
|
||||
NetworkManager
|
||||
|
||||
@@ -523,7 +523,7 @@ func (c *containerAdapter) logs(ctx context.Context, options api.LogSubscription
|
||||
}
|
||||
// print since as this formatted string because the docker container
|
||||
// logs interface expects it like this.
|
||||
// see github.com/docker/docker/api/types/time.ParseTimestamps
|
||||
// see [github.com/moby/moby/api/types/time.ParseTimestamps]
|
||||
apiOptions.Since = fmt.Sprintf("%d.%09d", since.Unix(), int64(since.Nanosecond()))
|
||||
}
|
||||
|
||||
|
||||
@@ -1646,7 +1646,7 @@ func (daemon *Daemon) RawSysInfo() *sysinfo.SysInfo {
|
||||
}
|
||||
|
||||
// imageBackend is used to satisfy the [executorpkg.ImageBackend] and
|
||||
// [github.com/docker/docker/api/server/router/distribution.Backend]
|
||||
// [github.com/moby/moby/v2/daemon/server/router/distribution.Backend]
|
||||
// interfaces.
|
||||
type imageBackend struct {
|
||||
ImageService
|
||||
|
||||
@@ -42,7 +42,7 @@ func (i *ImageService) PullImage(ctx context.Context, ref reference.Named, platf
|
||||
img, err := i.GetImage(ctx, ref.String(), backend.GetImageOpts{Platform: platform})
|
||||
|
||||
// Note that this is a special case where GetImage returns both an image
|
||||
// and an error: https://github.com/docker/docker/blob/v20.10.7/daemon/images/image.go#L175-L183
|
||||
// and an error: https://github.com/moby/moby/blob/v28.3.3/daemon/images/image.go#L186-L193
|
||||
if cerrdefs.IsNotFound(err) && img != nil {
|
||||
po := streamformatter.NewJSONProgressOutput(outStream, false)
|
||||
progress.Messagef(po, "", `WARNING: %s`, err.Error())
|
||||
|
||||
@@ -56,7 +56,7 @@ func main() {
|
||||
|
||||
if _, ok := os.LookupEnv("DIND_CLIENT"); !ok && *joinPtr {
|
||||
log.G(context.TODO()).Fatal("you are not using the client in docker in docker mode, the use of the -a flag can be disruptive, " +
|
||||
"please remove it (doc:https://github.com/docker/docker/libnetwork/blob/master/cmd/diagnostic/README.md)")
|
||||
"please remove it (doc:https://github.com/moby/moby/blob/master/daemon/libnetwork/cmd/diagnostic/README.md)")
|
||||
}
|
||||
|
||||
log.G(context.TODO()).Infof("Connecting to %s:%d checking ready", *ipPtr, *portPtr)
|
||||
|
||||
@@ -522,7 +522,7 @@ func removeInvalidNDots(options []string) []string {
|
||||
return options[:n]
|
||||
}
|
||||
|
||||
// systemError implements [github.com/docker/docker/errdefs.ErrSystem].
|
||||
// systemError implements [github.com/moby/moby/v2/errdefs.ErrSystem].
|
||||
type systemError struct{ error }
|
||||
|
||||
func (systemError) System() {}
|
||||
|
||||
@@ -52,7 +52,7 @@ type MountPoint struct {
|
||||
Name string
|
||||
// Driver is the volume driver used to create the volume (if it is a volume)
|
||||
Driver string
|
||||
// Type of mount to use, see `Type<foo>` definitions in github.com/docker/docker/api/types/mount
|
||||
// Type of mount to use.
|
||||
Type mounttypes.Type `json:",omitempty"`
|
||||
// Volume is the volume providing data to this mountpoint.
|
||||
// This is nil unless `Type` is set to `TypeVolume`
|
||||
|
||||
@@ -2,5 +2,5 @@ package transport
|
||||
|
||||
// VersionMimetype is the Content-Type the engine sends to plugins.
|
||||
//
|
||||
// For convenience, there is an alias in [github.com/docker/docker/pkg/plugins.VersionMimetype].
|
||||
// For convenience, there is an alias in [github.com/moby/moby/v2/pkg/plugins.VersionMimetype].
|
||||
const VersionMimetype = "application/vnd.docker.plugins.v1.2+json"
|
||||
|
||||
Reference in New Issue
Block a user