mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-13 20:29:35 +00:00
The podman module paths are moving from github.com/containers/podman to go.podman.io/podman. This will help with future mobility. Signed-off-by: Brent Baude <bbaude@redhat.com>
20 lines
572 B
Go
20 lines
572 B
Go
package infra
|
|
|
|
import (
|
|
"context"
|
|
|
|
"go.podman.io/podman/v6/pkg/bindings"
|
|
"go.podman.io/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,
|
|
})
|
|
}
|