Documentation ¶
Index ¶
- Constants
- func AddConnection(uri fmt.Stringer, name, identity string, isDefault bool) error
- func AddSSHConnectionsToPodmanSocket(uid, port int, identityPath, name, remoteUsername string, ...) error
- func ChangeConnectionURI(name string, uri fmt.Stringer) error
- func RemoveConnections(names ...string) error
- func RemoveFilesAndConnections(files []string, names ...string)
- func UpdateConnectionIfDefault(rootful bool, name, rootfulName string) error
- type RemoteConnectionType
Constants ¶
View Source
const LocalhostIP = "127.0.0.1"
Variables ¶
This section is empty.
Functions ¶
func AddConnection ¶
func AddSSHConnectionsToPodmanSocket ¶
func AddSSHConnectionsToPodmanSocket(uid, port int, identityPath, name, remoteUsername string, opts define.InitOptions) error
AddSSHConnectionsToPodmanSocket adds SSH connections to the podman socket if no ignition path is provided
func RemoveConnections ¶
func RemoveFilesAndConnections ¶
removeFilesAndConnections removes any files and connections with the given names
func UpdateConnectionIfDefault ¶
UpdateConnectionIfDefault updates the default connection to the rootful/rootless when depending on the bool but only if other rootful/less connection was already the default. Returns true if it modified the default
Types ¶
type RemoteConnectionType ¶
type RemoteConnectionType string
var SSHRemoteConnection RemoteConnectionType = "ssh"
func (RemoteConnectionType) MakeSSHURL ¶
func (rc RemoteConnectionType) MakeSSHURL(host, path, port, userName string) url.URL
MakeSSHURL
Click to show internal directories.
Click to hide internal directories.