mirror of
https://github.com/containers/podman.git
synced 2025-11-02 23:39:52 +08:00
Add a --artifact flag to `podman manifest add` which can be used to create an artifact manifest for one or more files and attach it to a manifest list. Corresponding --artifact-type, --artifact-config-type, --artifact-config, --artifact-layer-type, --artifact-subject, and --artifact-exclude-titles options can be used to fine-tune the fields in the artifact manifest that don't refer to the files themselves. Add a --index option to `podman manifest annotate` that will cause values passed to the --annotation flag to be applied to the manifest list as a whole instead of to an entry in the list. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
50 lines
3.4 KiB
Go
50 lines
3.4 KiB
Go
package entities
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/containers/common/pkg/config"
|
|
"github.com/containers/common/pkg/ssh"
|
|
"github.com/containers/podman/v5/pkg/domain/entities/reports"
|
|
)
|
|
|
|
type ImageEngine interface { //nolint:interfacebloat
|
|
Build(ctx context.Context, containerFiles []string, opts BuildOptions) (*BuildReport, error)
|
|
Config(ctx context.Context) (*config.Config, error)
|
|
Exists(ctx context.Context, nameOrID string) (*BoolReport, error)
|
|
History(ctx context.Context, nameOrID string, opts ImageHistoryOptions) (*ImageHistoryReport, error)
|
|
Import(ctx context.Context, opts ImageImportOptions) (*ImageImportReport, error)
|
|
Inspect(ctx context.Context, namesOrIDs []string, opts InspectOptions) ([]*ImageInspectReport, []error, error)
|
|
List(ctx context.Context, opts ImageListOptions) ([]*ImageSummary, error)
|
|
Load(ctx context.Context, opts ImageLoadOptions) (*ImageLoadReport, error)
|
|
Mount(ctx context.Context, images []string, options ImageMountOptions) ([]*ImageMountReport, error)
|
|
Prune(ctx context.Context, opts ImagePruneOptions) ([]*reports.PruneReport, error)
|
|
Pull(ctx context.Context, rawImage string, opts ImagePullOptions) (*ImagePullReport, error)
|
|
Push(ctx context.Context, source string, destination string, opts ImagePushOptions) (*ImagePushReport, error)
|
|
Remove(ctx context.Context, images []string, opts ImageRemoveOptions) (*ImageRemoveReport, []error)
|
|
Save(ctx context.Context, nameOrID string, tags []string, options ImageSaveOptions) error
|
|
Scp(ctx context.Context, src, dst string, parentFlags []string, quiet bool, sshMode ssh.EngineMode) error
|
|
Search(ctx context.Context, term string, opts ImageSearchOptions) ([]ImageSearchReport, error)
|
|
SetTrust(ctx context.Context, args []string, options SetTrustOptions) error
|
|
ShowTrust(ctx context.Context, args []string, options ShowTrustOptions) (*ShowTrustReport, error)
|
|
Shutdown(ctx context.Context)
|
|
Tag(ctx context.Context, nameOrID string, tags []string, options ImageTagOptions) error
|
|
Tree(ctx context.Context, nameOrID string, options ImageTreeOptions) (*ImageTreeReport, error)
|
|
Unmount(ctx context.Context, images []string, options ImageUnmountOptions) ([]*ImageUnmountReport, error)
|
|
Untag(ctx context.Context, nameOrID string, tags []string, options ImageUntagOptions) error
|
|
ManifestCreate(ctx context.Context, name string, images []string, opts ManifestCreateOptions) (string, error)
|
|
ManifestExists(ctx context.Context, name string) (*BoolReport, error)
|
|
ManifestInspect(ctx context.Context, name string, opts ManifestInspectOptions) ([]byte, error)
|
|
ManifestAdd(ctx context.Context, listName string, imageNames []string, opts ManifestAddOptions) (string, error)
|
|
ManifestAddArtifact(ctx context.Context, name string, files []string, opts ManifestAddArtifactOptions) (string, error)
|
|
ManifestAnnotate(ctx context.Context, names, image string, opts ManifestAnnotateOptions) (string, error)
|
|
ManifestRemoveDigest(ctx context.Context, names, image string) (string, error)
|
|
ManifestRm(ctx context.Context, names []string) (*ImageRemoveReport, []error)
|
|
ManifestPush(ctx context.Context, name, destination string, imagePushOpts ImagePushOptions) (string, error)
|
|
ManifestListClear(ctx context.Context, name string) (string, error)
|
|
Sign(ctx context.Context, names []string, options SignOptions) (*SignReport, error)
|
|
FarmNodeName(ctx context.Context) string
|
|
FarmNodeDriver(ctx context.Context) string
|
|
FarmNodeInspect(ctx context.Context) (*FarmInspectReport, error)
|
|
}
|