mirror of
https://github.com/containers/podman.git
synced 2025-10-16 18:53:19 +08:00

- Fixes conflicts such as removal of second machine deleting a socket of a the first machine while it's running - Move API socket into runtime directory for consistency - Add API and gvproxy sockets to removal list - Cleanup related logic Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
22 lines
592 B
Go
22 lines
592 B
Go
//go:build !darwin
|
|
|
|
package vmconfigs
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/containers/podman/v5/pkg/machine/define"
|
|
)
|
|
|
|
func gvProxySocket(name string, machineRuntimeDir *define.VMFile) (*define.VMFile, error) {
|
|
return machineRuntimeDir.AppendToNewVMFile(fmt.Sprintf("%s-gvproxy.sock", name), nil)
|
|
}
|
|
|
|
func readySocket(name string, machineRuntimeDir *define.VMFile) (*define.VMFile, error) {
|
|
return machineRuntimeDir.AppendToNewVMFile(name+".sock", nil)
|
|
}
|
|
|
|
func apiSocket(name string, socketDir *define.VMFile) (*define.VMFile, error) {
|
|
return socketDir.AppendToNewVMFile(name+"-api.sock", nil)
|
|
}
|