doc: fix package import path in sample code
fix package import path that was changed as part of v2 in sample code snippets. Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
This commit is contained in:
@@ -44,7 +44,7 @@ containerd to start and manage those containers using the runtime shim api retur
|
||||
the binary.
|
||||
|
||||
For more details on runtimes and shims, including how to invoke and configure them,
|
||||
see the [runtime v2 documentation](../runtime/v2/README.md)
|
||||
see the [runtime v2 documentation](../core/runtime/v2/README.md)
|
||||
|
||||
### Proxy Plugins
|
||||
|
||||
@@ -92,7 +92,7 @@ import (
|
||||
|
||||
snapshotsapi "github.com/containerd/containerd/v2/api/services/snapshots/v1"
|
||||
"github.com/containerd/containerd/v2/contrib/snapshotservice"
|
||||
"github.com/containerd/containerd/v2/snapshots/native"
|
||||
"github.com/containerd/containerd/v2/plugins/snapshots/native"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -65,7 +65,7 @@ If we want to make a `SpecOpt` to setup a container to monitor the host system w
|
||||
package monitor
|
||||
|
||||
import (
|
||||
"github.com/containerd/containerd/v2/oci"
|
||||
"github.com/containerd/containerd/v2/pkg/oci"
|
||||
specs "github.com/opencontainers/runtime-spec/specs-go"
|
||||
)
|
||||
|
||||
|
||||
@@ -253,7 +253,7 @@ import (
|
||||
"log"
|
||||
|
||||
containerd "github.com/containerd/containerd/v2/client"
|
||||
"github.com/containerd/containerd/v2/namespaces"
|
||||
"github.com/containerd/containerd/v2/pkg/namespaces"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -328,8 +328,8 @@ import (
|
||||
"log"
|
||||
|
||||
containerd "github.com/containerd/containerd/v2/client"
|
||||
"github.com/containerd/containerd/v2/namespaces"
|
||||
"github.com/containerd/containerd/v2/oci"
|
||||
"github.com/containerd/containerd/v2/pkg/namespaces"
|
||||
"github.com/containerd/containerd/v2/pkg/oci"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -474,10 +474,10 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/containerd/containerd/v2/cio"
|
||||
"github.com/containerd/containerd/v2/pkg/cio"
|
||||
containerd "github.com/containerd/containerd/v2/client"
|
||||
"github.com/containerd/containerd/v2/oci"
|
||||
"github.com/containerd/containerd/v2/namespaces"
|
||||
"github.com/containerd/containerd/v2/pkg/oci"
|
||||
"github.com/containerd/containerd/v2/pkg/namespaces"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -45,7 +45,7 @@ These user-defined labels must be prefixed by `containerd.io/snapshot/`.
|
||||
```go
|
||||
import (
|
||||
containerd "github.com/containerd/containerd/v2/client"
|
||||
"github.com/containerd/containerd/v2/snapshots"
|
||||
"github.com/containerd/containerd/v2/core/snapshots"
|
||||
)
|
||||
|
||||
image, err := client.Pull(ctx, ref,
|
||||
|
||||
Reference in New Issue
Block a user