diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-05-04 14:52:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-04 14:52:19 -0400 |
commit | bdaac4b2b6573d0954c58da9968536017160b1ed (patch) | |
tree | b645cdf0fab35e8e31b729eac58c8e3c57a64daa /libpod | |
parent | 0e2a80a62258d242cad53cd0bc29a9598a8514ad (diff) | |
parent | 5fa6f686dbeaf04e1df8a888b9458c3d7f42eee8 (diff) | |
download | podman-bdaac4b2b6573d0954c58da9968536017160b1ed.tar.gz podman-bdaac4b2b6573d0954c58da9968536017160b1ed.tar.bz2 podman-bdaac4b2b6573d0954c58da9968536017160b1ed.zip |
Merge pull request #14037 from rhatdan/remoteuri
Report correct RemoteURI
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/runtime.go | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go index d5daa2f8a..f4cd9cf00 100644 --- a/libpod/runtime.go +++ b/libpod/runtime.go @@ -1158,7 +1158,7 @@ func (r *Runtime) getVolumePlugin(name string) (*plugin.VolumePlugin, error) { return plugin.GetVolumePlugin(name, pluginPath) } -// GetSecretsStoreageDir returns the directory that the secrets manager should take +// GetSecretsStorageDir returns the directory that the secrets manager should take func (r *Runtime) GetSecretsStorageDir() string { return filepath.Join(r.store.GraphRoot(), "secrets") } @@ -1206,7 +1206,17 @@ func (r *Runtime) Network() nettypes.ContainerNetwork { return r.network } -// Network returns the network interface which is used by the runtime +// GetDefaultNetworkName returns the network interface which is used by the runtime func (r *Runtime) GetDefaultNetworkName() string { return r.config.Network.DefaultNetwork } + +// RemoteURI returns the API server URI +func (r *Runtime) RemoteURI() string { + return r.config.Engine.RemoteURI +} + +// SetRemoteURI records the API server URI +func (r *Runtime) SetRemoteURI(uri string) { + r.config.Engine.RemoteURI = uri +} |