shared

package
v0.0.0-...-9374347 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MPL-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IpFormat

func IpFormat(ip string) string

IpFormat formats the IP correctly, so we don't provide IPv6 address in an IPv4 format during node communication. We return the ip parameter as is if it's an IPv4 address or a hostname.

Types

type ConnectionInfo

type ConnectionInfo struct {
	Type string

	User           string
	Password       string
	PrivateKey     string
	Certificate    string
	Host           string
	HostKey        string
	Port           uint16
	Agent          bool
	ScriptPath     string
	TargetPlatform string
	Timeout        string
	TimeoutVal     time.Duration

	ProxyScheme       string
	ProxyHost         string
	ProxyPort         uint16
	ProxyUserName     string
	ProxyUserPassword string

	BastionUser        string
	BastionPassword    string
	BastionPrivateKey  string
	BastionCertificate string
	BastionHost        string
	BastionHostKey     string
	BastionPort        uint16

	AgentIdentity string

	HTTPS    bool
	Insecure bool
	NTLM     bool   `mapstructure:"use_ntlm"`
	CACert   string `mapstructure:"cacert"`
}

ConnectionInfo is decoded from the ConnInfo of the resource. These are the only keys we look at. If a PrivateKey is given, that is used instead of a password.

type Outputter

type Outputter struct{}

func (*Outputter) Output

func (*Outputter) Output(s string)

Jump to

Keyboard shortcuts

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