mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-24 01:07:53 +00:00
... to centralize the conversion from entities.PodmanConfig to bindings.Options, we will add more code there. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
20 lines
590 B
Go
20 lines
590 B
Go
package infra
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/containers/podman/v6/pkg/bindings"
|
|
"github.com/containers/podman/v6/pkg/domain/entities"
|
|
)
|
|
|
|
// For the meaning of "WithoutLock", compare runtime_tunnel.go:newConnection()
|
|
func newConnectionWithoutLock(ctx context.Context, facts *entities.PodmanConfig) (context.Context, error) {
|
|
return bindings.NewConnectionWithOptions(ctx, bindings.Options{
|
|
URI: facts.URI,
|
|
Identity: facts.Identity,
|
|
TLSCertFile: facts.TLSCertFile,
|
|
TLSKeyFile: facts.TLSKeyFile,
|
|
TLSCAFile: facts.TLSCAFile,
|
|
Machine: facts.MachineMode,
|
|
})
|
|
}
|