connection

package
v5.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 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 AddConnection

func AddConnection(uri fmt.Stringer, name, identity string, isDefault bool) error

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 ChangeConnectionURI

func ChangeConnectionURI(name string, uri fmt.Stringer) error

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

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

Jump to

Keyboard shortcuts

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