Documentation
¶
Overview ¶
Package shared provides SSH key algo utilities.
Index ¶
- Variables
- func CheckPort(port int, proto string) bool
- type ParetoRelease
- type ParetoUpdated
- func (f *ParetoUpdated) FailedMessage() string
- func (f *ParetoUpdated) IsRunnable() bool
- func (f *ParetoUpdated) Name() string
- func (f *ParetoUpdated) Passed() bool
- func (f *ParetoUpdated) PassedMessage() string
- func (f *ParetoUpdated) RequiresRoot() bool
- func (f *ParetoUpdated) Run() error
- func (f *ParetoUpdated) Status() string
- func (f *ParetoUpdated) UUID() string
- type RemoteLogin
- func (f *RemoteLogin) FailedMessage() string
- func (f *RemoteLogin) IsRunnable() bool
- func (f *RemoteLogin) Name() string
- func (f *RemoteLogin) Passed() bool
- func (f *RemoteLogin) PassedMessage() string
- func (f *RemoteLogin) RequiresRoot() bool
- func (f *RemoteLogin) Run() error
- func (f *RemoteLogin) Status() string
- func (f *RemoteLogin) UUID() string
- type SSHKeys
- func (f *SSHKeys) FailedMessage() string
- func (f *SSHKeys) IsRunnable() bool
- func (f *SSHKeys) Name() string
- func (f *SSHKeys) Passed() bool
- func (f *SSHKeys) PassedMessage() string
- func (f *SSHKeys) RequiresRoot() bool
- func (f *SSHKeys) Run() error
- func (f *SSHKeys) Status() string
- func (f *SSHKeys) UUID() string
- type SSHKeysAlgo
- func (f *SSHKeysAlgo) FailedMessage() string
- func (f *SSHKeysAlgo) IsRunnable() bool
- func (f *SSHKeysAlgo) Name() string
- func (f *SSHKeysAlgo) Passed() bool
- func (f *SSHKeysAlgo) PassedMessage() string
- func (f *SSHKeysAlgo) RequiresRoot() bool
- func (f *SSHKeysAlgo) Run() error
- func (f *SSHKeysAlgo) Status() string
- func (f *SSHKeysAlgo) UUID() string
Constants ¶
This section is empty.
Variables ¶
var CheckPortMock func(port int, proto string) bool
checkPortMock is a mock function used for testing purposes. It simulates checking the availability of a port for a given protocol. The function takes an integer port number and a string representing the protocol (e.g., "tcp", "udp") as arguments, and returns a boolean indicating whether the port is available (true) or not (false).
Functions ¶
Types ¶
type ParetoRelease ¶
type ParetoUpdated ¶
type ParetoUpdated struct {
// contains filtered or unexported fields
}
func (*ParetoUpdated) FailedMessage ¶
func (f *ParetoUpdated) FailedMessage() string
FailedMessage returns the message to return if the check failed
func (*ParetoUpdated) IsRunnable ¶
func (f *ParetoUpdated) IsRunnable() bool
CanRun returns whether the check can run
func (*ParetoUpdated) Name ¶
func (f *ParetoUpdated) Name() string
Name returns the name of the check
func (*ParetoUpdated) Passed ¶
func (f *ParetoUpdated) Passed() bool
Passed returns the status of the check
func (*ParetoUpdated) PassedMessage ¶
func (f *ParetoUpdated) PassedMessage() string
PassedMessage returns the message to return if the check passed
func (*ParetoUpdated) RequiresRoot ¶
func (f *ParetoUpdated) RequiresRoot() bool
RequiresRoot returns whether the check requires root access
func (*ParetoUpdated) Status ¶
func (f *ParetoUpdated) Status() string
Status returns the status of the check
func (*ParetoUpdated) UUID ¶
func (f *ParetoUpdated) UUID() string
UUID returns the UUID of the check
type RemoteLogin ¶
type RemoteLogin struct {
// contains filtered or unexported fields
}
func (*RemoteLogin) FailedMessage ¶
func (f *RemoteLogin) FailedMessage() string
FailedMessage returns the message to return if the check failed
func (*RemoteLogin) IsRunnable ¶
func (f *RemoteLogin) IsRunnable() bool
CanRun returns whether the check can run
func (*RemoteLogin) Passed ¶
func (f *RemoteLogin) Passed() bool
Passed returns the status of the check
func (*RemoteLogin) PassedMessage ¶
func (f *RemoteLogin) PassedMessage() string
PassedMessage returns the message to return if the check passed
func (*RemoteLogin) RequiresRoot ¶
func (f *RemoteLogin) RequiresRoot() bool
RequiresRoot returns whether the check requires root access
func (*RemoteLogin) Status ¶
func (f *RemoteLogin) Status() string
Status returns the status of the check
type SSHKeys ¶
type SSHKeys struct {
// contains filtered or unexported fields
}
func (*SSHKeys) FailedMessage ¶
FailedMessage returns the message to return if the check failed
func (*SSHKeys) IsRunnable ¶
CanRun returns whether the check can run
func (*SSHKeys) PassedMessage ¶
PassedMessage returns the message to return if the check passed
func (*SSHKeys) RequiresRoot ¶
RequiresRoot returns whether the check requires root access
type SSHKeysAlgo ¶
type SSHKeysAlgo struct {
// contains filtered or unexported fields
}
SSHKeysAlgo runs the SSH keys algorithm.
func (*SSHKeysAlgo) FailedMessage ¶
func (f *SSHKeysAlgo) FailedMessage() string
FailedMessage returns the message to return if the check failed
func (*SSHKeysAlgo) IsRunnable ¶
func (f *SSHKeysAlgo) IsRunnable() bool
IsRunnable returns whether SSHKeysAlgo is runnable.
func (*SSHKeysAlgo) Passed ¶
func (f *SSHKeysAlgo) Passed() bool
Passed returns the status of the check
func (*SSHKeysAlgo) PassedMessage ¶
func (f *SSHKeysAlgo) PassedMessage() string
PassedMessage returns the message to return if the check passed
func (*SSHKeysAlgo) RequiresRoot ¶
func (f *SSHKeysAlgo) RequiresRoot() bool
RequiresRoot returns whether the check requires root access
func (*SSHKeysAlgo) Status ¶
func (f *SSHKeysAlgo) Status() string
Status returns the status of the check