Files
QSfera/Server/vendor/github.com/testcontainers/testcontainers-go/image.go
T
Курнат Андрей 2315f25754 Initial QSfera import
2026-06-07 10:20:04 +03:00

28 lines
619 B
Go

package testcontainers
import (
"context"
"github.com/moby/moby/client"
)
// ImageInfo represents summary information of an image
type ImageInfo struct {
ID string
Name string
}
type saveImageOptions struct {
dockerSaveOpts []client.ImageSaveOption
}
type SaveImageOption func(*saveImageOptions) error
// ImageProvider allows manipulating images
type ImageProvider interface {
ListImages(context.Context) ([]ImageInfo, error)
SaveImages(context.Context, string, ...string) error
SaveImagesWithOpts(context.Context, string, []string, ...SaveImageOption) error
PullImage(context.Context, string) error
}