github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/pkg/domain/entities/engine_image.go (about) 1 package entities 2 3 import ( 4 "context" 5 6 "github.com/containers/common/pkg/config" 7 ) 8 9 type ImageEngine interface { 10 Build(ctx context.Context, containerFiles []string, opts BuildOptions) (*BuildReport, error) 11 Config(ctx context.Context) (*config.Config, error) 12 Diff(ctx context.Context, nameOrID string, options DiffOptions) (*DiffReport, error) 13 Exists(ctx context.Context, nameOrID string) (*BoolReport, error) 14 History(ctx context.Context, nameOrID string, opts ImageHistoryOptions) (*ImageHistoryReport, error) 15 Import(ctx context.Context, opts ImageImportOptions) (*ImageImportReport, error) 16 Inspect(ctx context.Context, namesOrIDs []string, opts InspectOptions) ([]*ImageInspectReport, []error, error) 17 List(ctx context.Context, opts ImageListOptions) ([]*ImageSummary, error) 18 Load(ctx context.Context, opts ImageLoadOptions) (*ImageLoadReport, error) 19 Mount(ctx context.Context, images []string, options ImageMountOptions) ([]*ImageMountReport, error) 20 Prune(ctx context.Context, opts ImagePruneOptions) (*ImagePruneReport, error) 21 Pull(ctx context.Context, rawImage string, opts ImagePullOptions) (*ImagePullReport, error) 22 Push(ctx context.Context, source string, destination string, opts ImagePushOptions) error 23 Remove(ctx context.Context, images []string, opts ImageRemoveOptions) (*ImageRemoveReport, []error) 24 Save(ctx context.Context, nameOrID string, tags []string, options ImageSaveOptions) error 25 Search(ctx context.Context, term string, opts ImageSearchOptions) ([]ImageSearchReport, error) 26 SetTrust(ctx context.Context, args []string, options SetTrustOptions) error 27 ShowTrust(ctx context.Context, args []string, options ShowTrustOptions) (*ShowTrustReport, error) 28 Shutdown(ctx context.Context) 29 Tag(ctx context.Context, nameOrID string, tags []string, options ImageTagOptions) error 30 Tree(ctx context.Context, nameOrID string, options ImageTreeOptions) (*ImageTreeReport, error) 31 Unmount(ctx context.Context, images []string, options ImageUnmountOptions) ([]*ImageUnmountReport, error) 32 Untag(ctx context.Context, nameOrID string, tags []string, options ImageUntagOptions) error 33 ManifestCreate(ctx context.Context, names, images []string, opts ManifestCreateOptions) (string, error) 34 ManifestInspect(ctx context.Context, name string) ([]byte, error) 35 ManifestAdd(ctx context.Context, opts ManifestAddOptions) (string, error) 36 ManifestAnnotate(ctx context.Context, names []string, opts ManifestAnnotateOptions) (string, error) 37 ManifestRemove(ctx context.Context, names []string) (string, error) 38 ManifestPush(ctx context.Context, names []string, manifestPushOpts ManifestPushOptions) error 39 Sign(ctx context.Context, names []string, options SignOptions) (*SignReport, error) 40 }