mirror of
https://github.com/containers/podman.git
synced 2025-09-24 07:15:12 +08:00
remove pkg/registries
Pull the trigger on the `pkg/registries` package which acted as a proxy for `c/image/pkg/sysregistriesv2`. Callers should be using the packages from c/image directly, if needed at all. Also make use of libimage's SystemContext() method which returns a copy of a system context, further reducing the risk of unintentionally altering global data. [NO TESTS NEEDED] Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
5
vendor/github.com/containers/common/libimage/runtime.go
generated
vendored
5
vendor/github.com/containers/common/libimage/runtime.go
generated
vendored
@ -53,6 +53,11 @@ type Runtime struct {
|
||||
systemContext types.SystemContext
|
||||
}
|
||||
|
||||
// Returns a copy of the runtime's system context.
|
||||
func (r *Runtime) SystemContext() *types.SystemContext {
|
||||
return r.systemContextCopy()
|
||||
}
|
||||
|
||||
// Returns a copy of the runtime's system context.
|
||||
func (r *Runtime) systemContextCopy() *types.SystemContext {
|
||||
var sys types.SystemContext
|
||||
|
Reference in New Issue
Block a user