{"modulePath":"github.com/docker/containerd","version":"v0.2.8","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package testutils\n\n## Variables\n\n```go\nvar (\n\t// ArchivesDir holds the location of the available rootfs\n\tArchivesDir = filepath.Join(\"test-artifacts\", \"archives\")\n\t// BundlesRoot holds the location where OCI Bundles are stored\n\tBundlesRoot = filepath.Join(\"test-artifacts\", \"oci-bundles\")\n\t// OutputDirFormat holds the standard format used when creating a\n\t// new test output directory\n\tOutputDirFormat = filepath.Join(\"test-artifacts\", \"runs\", \"%s\")\n\t// RefOciSpecsPath holds the path to the generic OCI config\n\tRefOciSpecsPath = filepath.Join(BundlesRoot, \"config.json\")\n\t// StateDir holds the path to the directory used by the containerd\n\t// started by tests\n\tStateDir = \"/run/containerd-bench-test\"\n)\n```\n\n## Functions\n\n```go\nfunc CreateBundle(source, name string) error\n```\nCreateBundle generates a valid OCI bundle from the given rootfs\n\n```go\nfunc CreateBusyboxBundle(name string) error\n```\nCreateBusyboxBundle generates a bundle based on the busybox rootfs\n\n```go\nfunc GenerateReferenceSpecs(destination string) error\n```\nGenerateReferenceSpecs generates a default OCI specs via \\`runc spec\\`\n\n```go\nfunc GetTestOutDir() string\n```\nGetTestOutDir returns the output directory for testing and benchmark artifacts\n\n","path":"github.com/docker/containerd/testutils","name":"testutils","synopsis":"","isRedistributable":true}
