diff options
author | José Guilherme Vanz <jvanz@jvanz.com> | 2019-12-12 19:53:46 -0300 |
---|---|---|
committer | José Guilherme Vanz <jvanz@jvanz.com> | 2019-12-12 19:53:46 -0300 |
commit | 4f9672e94c16793b68fc40a82132e7b2e6dc06c2 (patch) | |
tree | e880c611f858a5a040f0b949d48ee444902f89e6 /pkg/registries/registries.go | |
parent | 465e142bf28ed04e78c8b32c0ecef6fe72a38ecc (diff) | |
download | podman-4f9672e94c16793b68fc40a82132e7b2e6dc06c2.tar.gz podman-4f9672e94c16793b68fc40a82132e7b2e6dc06c2.tar.bz2 podman-4f9672e94c16793b68fc40a82132e7b2e6dc06c2.zip |
podman: mirror information
Updates the podman info command to show the mirror information
Issue https://github.com/containers/libpod/issues/4553
Signed-off-by: José Guilherme Vanz <jvanz@jvanz.com>
Diffstat (limited to 'pkg/registries/registries.go')
-rw-r--r-- | pkg/registries/registries.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/registries/registries.go b/pkg/registries/registries.go index 9643c947f..ba7de7cf9 100644 --- a/pkg/registries/registries.go +++ b/pkg/registries/registries.go @@ -34,7 +34,8 @@ func SystemRegistriesConfPath() string { return "" } -func getRegistries() ([]sysregistriesv2.Registry, error) { +// GetRegistriesData obtains the list of registries +func GetRegistriesData() ([]sysregistriesv2.Registry, error) { registries, err := sysregistriesv2.GetRegistries(&types.SystemContext{SystemRegistriesConfPath: SystemRegistriesConfPath()}) if err != nil { return nil, errors.Wrapf(err, "unable to parse the registries.conf file") @@ -50,7 +51,7 @@ func GetRegistries() ([]string, error) { // GetBlockedRegistries obtains the list of blocked registries defined in the global registries file. func GetBlockedRegistries() ([]string, error) { var blockedRegistries []string - registries, err := getRegistries() + registries, err := GetRegistriesData() if err != nil { return nil, err } @@ -65,7 +66,7 @@ func GetBlockedRegistries() ([]string, error) { // GetInsecureRegistries obtains the list of insecure registries from the global registration file. func GetInsecureRegistries() ([]string, error) { var insecureRegistries []string - registries, err := getRegistries() + registries, err := GetRegistriesData() if err != nil { return nil, err } |