Browse code

update various "doc" links in code

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2025/08/01 20:38:03
Showing 8 changed files
... ...
@@ -6,7 +6,7 @@ import (
6 6
 	lncluster "github.com/moby/moby/v2/daemon/libnetwork/cluster"
7 7
 )
8 8
 
9
-// Cluster is the interface for github.com/docker/docker/daemon/cluster.(*Cluster).
9
+// Cluster is the interface for [github.com/moby/moby/v2/daemon/cluster.Cluster].
10 10
 type Cluster interface {
11 11
 	ClusterStatus
12 12
 	NetworkManager
... ...
@@ -523,7 +523,7 @@ func (c *containerAdapter) logs(ctx context.Context, options api.LogSubscription
523 523
 		}
524 524
 		// print since as this formatted string because the docker container
525 525
 		// logs interface expects it like this.
526
-		// see github.com/docker/docker/api/types/time.ParseTimestamps
526
+		// see [github.com/moby/moby/api/types/time.ParseTimestamps]
527 527
 		apiOptions.Since = fmt.Sprintf("%d.%09d", since.Unix(), int64(since.Nanosecond()))
528 528
 	}
529 529
 
... ...
@@ -1646,7 +1646,7 @@ func (daemon *Daemon) RawSysInfo() *sysinfo.SysInfo {
1646 1646
 }
1647 1647
 
1648 1648
 // imageBackend is used to satisfy the [executorpkg.ImageBackend] and
1649
-// [github.com/docker/docker/api/server/router/distribution.Backend]
1649
+// [github.com/moby/moby/v2/daemon/server/router/distribution.Backend]
1650 1650
 // interfaces.
1651 1651
 type imageBackend struct {
1652 1652
 	ImageService
... ...
@@ -42,7 +42,7 @@ func (i *ImageService) PullImage(ctx context.Context, ref reference.Named, platf
42 42
 		img, err := i.GetImage(ctx, ref.String(), backend.GetImageOpts{Platform: platform})
43 43
 
44 44
 		// Note that this is a special case where GetImage returns both an image
45
-		// and an error: https://github.com/docker/docker/blob/v20.10.7/daemon/images/image.go#L175-L183
45
+		// and an error: https://github.com/moby/moby/blob/v28.3.3/daemon/images/image.go#L186-L193
46 46
 		if cerrdefs.IsNotFound(err) && img != nil {
47 47
 			po := streamformatter.NewJSONProgressOutput(outStream, false)
48 48
 			progress.Messagef(po, "", `WARNING: %s`, err.Error())
... ...
@@ -56,7 +56,7 @@ func main() {
56 56
 
57 57
 	if _, ok := os.LookupEnv("DIND_CLIENT"); !ok && *joinPtr {
58 58
 		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, " +
59
-			"please remove it (doc:https://github.com/docker/docker/libnetwork/blob/master/cmd/diagnostic/README.md)")
59
+			"please remove it (doc:https://github.com/moby/moby/blob/master/daemon/libnetwork/cmd/diagnostic/README.md)")
60 60
 	}
61 61
 
62 62
 	log.G(context.TODO()).Infof("Connecting to %s:%d checking ready", *ipPtr, *portPtr)
... ...
@@ -522,7 +522,7 @@ func removeInvalidNDots(options []string) []string {
522 522
 	return options[:n]
523 523
 }
524 524
 
525
-// systemError implements [github.com/docker/docker/errdefs.ErrSystem].
525
+// systemError implements [github.com/moby/moby/v2/errdefs.ErrSystem].
526 526
 type systemError struct{ error }
527 527
 
528 528
 func (systemError) System() {}
... ...
@@ -52,7 +52,7 @@ type MountPoint struct {
52 52
 	Name string
53 53
 	// Driver is the volume driver used to create the volume (if it is a volume)
54 54
 	Driver string
55
-	// Type of mount to use, see `Type<foo>` definitions in github.com/docker/docker/api/types/mount
55
+	// Type of mount to use.
56 56
 	Type mounttypes.Type `json:",omitempty"`
57 57
 	// Volume is the volume providing data to this mountpoint.
58 58
 	// This is nil unless `Type` is set to `TypeVolume`
... ...
@@ -2,5 +2,5 @@ package transport
2 2
 
3 3
 // VersionMimetype is the Content-Type the engine sends to plugins.
4 4
 //
5
-// For convenience, there is an alias in [github.com/docker/docker/pkg/plugins.VersionMimetype].
5
+// For convenience, there is an alias in [github.com/moby/moby/v2/pkg/plugins.VersionMimetype].
6 6
 const VersionMimetype = "application/vnd.docker.plugins.v1.2+json"