|
4 | 4 | longer being used. The client is responsible for ensuring that all resources
|
5 | 5 | which are created are either used or held by a lease at all times, else they
|
6 | 6 | will be considered eligible for removal. The Go client library
|
7 |
| -(`github.com/containerd/containerd`) has built-in behavior to ensure resources |
| 7 | +(`github.com/containerd/containerd/v2/client`) has built-in behavior to ensure resources |
8 | 8 | are properly tracked and leased. However, the lifecycles of leases are the
|
9 | 9 | responsibility of the caller of the library. The `containerd` daemon has strict
|
10 | 10 | resource management and will garbage collect any unused resource.
|
@@ -43,7 +43,7 @@ _But, of course, more complicated use cases are supported..._
|
43 | 43 | If the program or lease are intended to be longer lived, instead of the very
|
44 | 44 | easy `client.WithLease`, the lease manager can be used directly. This also
|
45 | 45 | allows for setting custom labels on the lease or manipulating its resources.
|
46 |
| -Use `client.LeasesService()` to get a [lease Manager](https://godoc.org/github.com/containerd/containerd/leases#Manager) |
| 46 | +Use `client.LeasesService()` to get a [lease Manager](https://godoc.org/github.com/containerd/containerd/v2/leases#Manager) |
47 | 47 | which can be used to create, list, and delete leases as well as manage the
|
48 | 48 | referenced resources for that lease.
|
49 | 49 |
|
@@ -157,9 +157,9 @@ may also request a garbage collection during resource removal. In this case,
|
157 | 157 | the garbage collection will be scheduled immediately (or after `schedule_delay`
|
158 | 158 | when configured to non-zero). The service will not return until the garbage
|
159 | 159 | collection has completed. This is currently supported on removal of images and
|
160 |
| -leases. Use [`images.SynchronousDelete()`](https://godoc.org/github.com/containerd/containerd/images#SynchronousDelete) |
161 |
| -for [`images.Store`](https://godoc.org/github.com/containerd/containerd/images#Store)'s |
| 160 | +leases. Use [`images.SynchronousDelete()`](https://godoc.org/github.com/containerd/containerd/v2/images#SynchronousDelete) |
| 161 | +for [`images.Store`](https://godoc.org/github.com/containerd/containerd/v2/images#Store)'s |
162 | 162 | `Delete` and
|
163 |
| -[`leases.SynchronousDelete`](https://godoc.org/github.com/containerd/containerd/leases#SynchronousDelete) |
164 |
| -for [`leases.Manager`](https://godoc.org/github.com/containerd/containerd/leases#Manager)'s |
| 163 | +[`leases.SynchronousDelete`](https://godoc.org/github.com/containerd/containerd/v2/leases#SynchronousDelete) |
| 164 | +for [`leases.Manager`](https://godoc.org/github.com/containerd/containerd/v2/leases#Manager)'s |
165 | 165 | `Delete`.
|
0 commit comments