types

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled         bool           `json:"enabled" yaml:"enabled" mapstructure:"enabled"`
	ScannersList    []string       `yaml:"scanners_list" mapstructure:"scanners_list"`
	StripInputPaths bool           `yaml:"strip_input_paths" mapstructure:"strip_input_paths"`
	Inputs          []types.Input  `yaml:"inputs" mapstructure:"inputs"`
	ScannersConfig  ScannersConfig `yaml:"scanners_config" mapstructure:"scanners_config"`
}

type Info

type Info struct {
	Type InfoType `json:"type"`
	Path string   `json:"path"`
	Data string   `json:"data"`
}

type InfoType

type InfoType string
const (
	SSHKnownHostFingerprint     InfoType = "sshKnownHostFingerprint"
	SSHAuthorizedKeyFingerprint InfoType = "sshAuthorizedKeyFingerprint"
	SSHPrivateKeyFingerprint    InfoType = "sshPrivateKeyFingerprint"
	SSHDaemonKeyFingerprint     InfoType = "sshDaemonKeyFingerprint"
)

type SSHTopologyConfig

type SSHTopologyConfig struct{}

type ScannerResult

type ScannerResult struct {
	ScannerName string
	Infos       []Info
	Error       error
}

func (ScannerResult) GetError

func (sr ScannerResult) GetError() error

type ScannersConfig

type ScannersConfig struct {
	SSHTopology SSHTopologyConfig `yaml:"ssh_topology" mapstructure:"ssh_topology"`
}

ScannersConfig Add scanner specific configurations here, where the key is the scanner name, and the value is the scanner specific configuration.

For example if the scanner name is "sshTopology":

SSHTopology SSHTopologyConfig `yaml:"ssh_topology" mapstructure:"ssh_topology"`

func (ScannersConfig) IsConfig

func (ScannersConfig) IsConfig()

Jump to

Keyboard shortcuts

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