Initial QSfera import
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user