package specialimage
import "github.com/dotcloud/docker/internal/testutils/specialimage"
Index ¶
- func Dangling(dir string) (*ocispec.Index, error)
- func EmptyFS(dir string) (*ocispec.Index, error)
- func EmptyIndex(dir string) (*ocispec.Index, error)
- func Load(ctx context.Context, t *testing.T, apiClient client.APIClient, imageFunc SpecialImageFunc) string
- func MultiLayer(dir string) (*ocispec.Index, error)
- func MultiLayerCustom(dir string, imageRef string, layers []SingleFileLayer) (*ocispec.Index, error)
- func RandomSinglePlatform(dir string, platform ocispec.Platform, source rand.Source) (*ocispec.Index, error)
- func TwoPlatform(dir string) (*ocispec.Index, error)
- type SingleFileLayer
- type SpecialImageFunc
Functions ¶
func Dangling ¶
Dangling creates an image with no layers and no tag. It also has an extra org.mobyproject.test.specialimage=1 label set. Layout: OCI.
func EmptyFS ¶
EmptyFS builds an image with an empty rootfs. Layout: Legacy Docker Archive See https://github.com/docker/docker/pull/5262 and also https://github.com/docker/docker/issues/4242
func EmptyIndex ¶
EmptyIndex creates an image index with no manifests. This is equivalent to `tianon/scratch:index`.
func Load ¶
func Load(ctx context.Context, t *testing.T, apiClient client.APIClient, imageFunc SpecialImageFunc) string
func MultiLayer ¶
func MultiLayerCustom ¶
func MultiLayerCustom(dir string, imageRef string, layers []SingleFileLayer) (*ocispec.Index, error)
func RandomSinglePlatform ¶
func RandomSinglePlatform(dir string, platform ocispec.Platform, source rand.Source) (*ocispec.Index, error)
func TwoPlatform ¶
Types ¶
type SingleFileLayer ¶
type SpecialImageFunc ¶
Source Files ¶
dangling.go emptyfs.go emptyindex.go load.go multilayer.go random.go twoplatform.go
- Version
- v26.0.0+incompatible
- Published
- Mar 20, 2024
- Platform
- js/wasm
- Imports
- 21 packages
- Last checked
- 2 minutes ago –
Tools for package owners.