mirror of
https://github.com/containers/podman.git
synced 2026-03-13 08:01:19 +08:00
Merge pull request #28208 from mtrmac/tls-behavior-basics
Add --tls-details for (pull, push, run, login, logout)
This commit is contained in:
@@ -25,6 +25,7 @@ import (
|
||||
"go.podman.io/common/pkg/config"
|
||||
"go.podman.io/common/pkg/secrets"
|
||||
"go.podman.io/image/v5/manifest"
|
||||
"go.podman.io/image/v5/pkg/cli/basetls"
|
||||
"go.podman.io/storage"
|
||||
"go.podman.io/storage/pkg/fileutils"
|
||||
"go.podman.io/storage/pkg/idtools"
|
||||
@@ -226,6 +227,14 @@ func WithRegistriesConf(path string) RuntimeOption {
|
||||
}
|
||||
}
|
||||
|
||||
// WithBaseTLSConfig sets the TLS _algorithm_ options for the runtime.
|
||||
func WithBaseTLSConfig(baseTLSConfig *basetls.Config) RuntimeOption {
|
||||
return func(rt *Runtime) error {
|
||||
rt.imageContext.BaseTLSConfig = baseTLSConfig.TLSConfig()
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// WithDatabaseBackend configures the runtime's database backend.
|
||||
func WithDatabaseBackend(value string) RuntimeOption {
|
||||
logrus.Debugf("Setting custom database backend: %q", value)
|
||||
|
||||
Reference in New Issue
Block a user