mirror of
https://github.com/containers/podman.git
synced 2026-03-28 03:22:18 -04: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>
23 lines
678 B
Go
23 lines
678 B
Go
package vmconfigs
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/containers/podman/v5/pkg/machine/define"
|
|
)
|
|
|
|
func gvProxySocket(name string, machineRuntimeDir *define.VMFile) (*define.VMFile, error) {
|
|
socketName := fmt.Sprintf("%s-gvproxy.sock", name)
|
|
return machineRuntimeDir.AppendToNewVMFile(socketName, &socketName)
|
|
}
|
|
|
|
func readySocket(name string, machineRuntimeDir *define.VMFile) (*define.VMFile, error) {
|
|
socketName := name + ".sock"
|
|
return machineRuntimeDir.AppendToNewVMFile(socketName, &socketName)
|
|
}
|
|
|
|
func apiSocket(name string, socketDir *define.VMFile) (*define.VMFile, error) {
|
|
socketName := name + "-api.sock"
|
|
return socketDir.AppendToNewVMFile(socketName, &socketName)
|
|
}
|