github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/pkg/domain/entities/engine_image.go (about) 1 package entities 2 3 import ( 4 "context" 5 "github.com/containers/common/libimage" 6 "github.com/containers/common/pkg/config" 7 "github.com/hanks177/podman/v4/pkg/domain/entities/reports" 8 ) 9 10 type ImageEngine interface { 11 Build(ctx context.Context, containerFiles []string, opts BuildOptions) (*BuildReport, error) 12 Config(ctx context.Context) (*config.Config, 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) ([]*reports.PruneReport, error) 21 PullImage(ctx context.Context, rawImage string, pullOptions *libimage.PullOptions) error 22 Pull(ctx context.Context, rawImage string, opts ImagePullOptions) (*ImagePullReport, error) 23 Push(ctx context.Context, source string, destination string, opts ImagePushOptions) error 24 Remove(ctx context.Context, images []string, opts ImageRemoveOptions) (*ImageRemoveReport, []error) 25 Save(ctx context.Context, nameOrID string, tags []string, options ImageSaveOptions) error 26 Search(ctx context.Context, term string, opts ImageSearchOptions) ([]ImageSearchReport, error) 27 SetTrust(ctx context.Context, args []string, options SetTrustOptions) error 28 ShowTrust(ctx context.Context, args []string, options ShowTrustOptions) (*ShowTrustReport, error) 29 Shutdown(ctx context.Context) 30 Tag(ctx context.Context, nameOrID string, tags []string, options ImageTagOptions) error 31 Transfer(ctx context.Context, source ImageScpOptions, dest ImageScpOptions, parentFlags []string) error 32 Tree(ctx context.Context, nameOrID string, options ImageTreeOptions) (*ImageTreeReport, error) 33 Unmount(ctx context.Context, images []string, options ImageUnmountOptions) ([]*ImageUnmountReport, error) 34 Untag(ctx context.Context, nameOrID string, tags []string, options ImageUntagOptions) error 35 ManifestCreate(ctx context.Context, name string, images []string, opts ManifestCreateOptions) (string, error) 36 ManifestExists(ctx context.Context, name string) (*BoolReport, error) 37 ManifestInspect(ctx context.Context, name string) ([]byte, error) 38 ManifestAdd(ctx context.Context, listName string, imageNames []string, opts ManifestAddOptions) (string, error) 39 ManifestAnnotate(ctx context.Context, names, image string, opts ManifestAnnotateOptions) (string, error) 40 ManifestRemoveDigest(ctx context.Context, names, image string) (string, error) 41 ManifestRm(ctx context.Context, names []string) (*ImageRemoveReport, []error) 42 ManifestPush(ctx context.Context, name, destination string, imagePushOpts ImagePushOptions) (string, error) 43 Sign(ctx context.Context, names []string, options SignOptions) (*SignReport, error) 44 }