File: compat.go

package info (click to toggle)
golang-github-containers-buildah 1.28.2%2Bds1-3%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,336 kB
  • sloc: sh: 2,291; makefile: 218; perl: 187; awk: 12; ansic: 1
file content (33 lines) | stat: -rw-r--r-- 1,177 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// This package is deprecated.  Its functionality has been moved to
// github.com/containers/common/libimage/manifests, which provides the same
// API.  The stubs here are present for compatibility with older code.  New
// implementations should use github.com/containers/common/libimage/manifests
// directly.
package manifests

import (
	"github.com/containers/common/libimage/manifests"
	"github.com/containers/storage"
)

type (
	// List is an alias for github.com/containers/common/libimage/manifests.List.
	List = manifests.List
	// PushOptions is an alias for github.com/containers/common/libimage/manifests.PushOptions.
	PushOptions = manifests.PushOptions
)

var (
	// ErrListImageUnknown is an alias for github.com/containers/common/libimage/manifests.ErrListImageUnknown
	ErrListImageUnknown = manifests.ErrListImageUnknown
)

// Create wraps github.com/containers/common/libimage/manifests.Create().
func Create() List {
	return manifests.Create()
}

// LoadFromImage wraps github.com/containers/common/libimage/manifests.LoadFromImage().
func LoadFromImage(store storage.Store, image string) (string, List, error) {
	return manifests.LoadFromImage(store, image)
}