Versions in this module Expand all Collapse all v0 v0.62.1 Feb 14, 2025 Changes in this version + const GolangMode + const InvalidMode + const NativeMode + func Create(options *ConnectionCreateOptions, kind EngineMode) error + func Dial(options *ConnectionDialOptions, kind EngineMode) (*ssh.Client, error) + func DialNet(sshClient *ssh.Client, mode string, url *url.URL) (net.Conn, error) + func Exec(options *ConnectionExecOptions, kind EngineMode) (string, error) + func ExecRemoteCommand(dial *ssh.Client, run string) ([]byte, error) + func ExecRemoteCommandWithInput(dial *ssh.Client, run string, input io.Reader) ([]byte, error) + func ExecWithInput(options *ConnectionExecOptions, kind EngineMode, input io.Reader) (string, error) + func GetUserInfo(uri *url.URL) (*url.Userinfo, error) + func ParseScpArgs(options ConnectionScpOptions) (string, string, string, bool, error) + func PublicKey(path string, passphrase []byte) (ssh.Signer, error) + func ReadLogin() []byte + func ReadPassphrase() []byte + func ReadPassword(prompt string) (pw []byte, err error) + func Scp(options *ConnectionScpOptions, kind EngineMode) (string, error) + func Validate(user *url.Userinfo, path string, port int, identity string) (*config.Destination, *url.URL, error) + func ValidateAndConfigure(uri *url.URL, iden string, insecureIsMachineConnection bool) (*ssh.ClientConfig, error) + type CPUUsage struct + IdlePercent float64 + SystemPercent float64 + UserPercent float64 + type ConmonInfo struct + Package string + Path string + Version string + type ConnectionCreateOptions struct + Default bool + Farm string + Identity string + Name string + Path string + Port int + Socket string + User *url.Userinfo + type ConnectionDialOptions struct + Auth []string + Host string + Identity string + InsecureIsMachineConnection bool + Port int + Timeout time.Duration + User *url.Userinfo + type ConnectionDialReport struct + Client *ssh.Client + type ConnectionExecOptions struct + Args []string + Auth []string + Host string + Identity string + Port int + Timeout time.Duration + User *url.Userinfo + type ConnectionExecReport struct + Response string + type ConnectionScpOptions struct + Destination string + Identity string + Port int + Source string + User *url.Userinfo + type ConnectionScpReport struct + Response string + type ContainerStore struct + Number int + Paused int + Running int + Stopped int + type DistributionInfo struct + Codename string + Distribution string + Variant string + Version string + type EngineMode string + func DefineMode(flag string) EngineMode + type HostInfo struct + Arch string + BuildahVersion string + CPUUtilization *CPUUsage + CPUs int + CgroupControllers []string + CgroupManager string + CgroupsVersion string + Conmon *ConmonInfo + Distribution DistributionInfo + EventLogger string + Hostname string + IDMappings IDMappings + Kernel string + Linkmode string + LogDriver string + MemFree int64 + MemTotal int64 + NetworkBackend string + OCIRuntime *OCIRuntimeInfo + OS string + RemoteSocket *RemoteSocket + RuntimeInfo map[string]any + Security SecurityInfo + ServiceIsRemote bool + Slirp4NetNS SlirpInfo + SwapFree int64 + SwapTotal int64 + Uptime string + type IDMappings struct + GIDMap []idtools.IDMap + UIDMap []idtools.IDMap + type ImageStore struct + Number int + type Info struct + Host *HostInfo + Plugins Plugins + Registries map[string]any + Store *StoreInfo + Version Version + type OCIRuntimeInfo struct + Name string + Package string + Path string + Version string + type Plugins struct + Authorization []string + Log []string + Network []string + Volume []string + type RemoteSocket struct + Exists bool + Path string + type SecurityInfo struct + AppArmorEnabled bool + DefaultCapabilities string + Rootless bool + SECCOMPEnabled bool + SECCOMPProfilePath string + SELinuxEnabled bool + type SlirpInfo struct + Executable string + Package string + Version string + type StoreInfo struct + ConfigFile string + ContainerStore ContainerStore + GraphDriverName string + GraphOptions map[string]any + GraphRoot string + GraphRootAllocated uint64 + GraphRootUsed uint64 + GraphStatus map[string]string + ImageCopyTmpDir string + ImageStore ImageStore + RunRoot string + VolumePath string + type Version struct + APIVersion string + Built int64 + BuiltTime string + GitCommit string + GoVersion string + Os string + OsArch string + Version string