connection

package
v5.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const LocalhostIP = "127.0.0.1"

Variables

This section is empty.

Functions

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 RemoveConnections(names ...string) error

func RemoveFilesAndConnections

func RemoveFilesAndConnections(files []string, names ...string)

removeFilesAndConnections removes any files and connections with the given names

func UpdateConnectionIfDefault

func UpdateConnectionIfDefault(rootful bool, name, rootfulName string) error

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

func UpdateConnectionPairPort

func UpdateConnectionPairPort(name string, port, uid int, remoteUsername string, identityPath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL