wrapper

package
v0.0.0-...-71d4f67 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsSvc

type AwsSvc interface {
	Instances(map[string]server.Server) error
	UploadObjectToS3(fileData []byte, s3Key string) error
	GetFileFromS3(s3Key string) ([]byte, error)
}

type GCloudSvc

type GCloudSvc interface {
	Instances(serversMap map[string]server.Server) error
}

type GCloudWrapper

type GCloudWrapper interface {
	Zones() ([]string, error)
	InstancesInRegion(region string) ([]compute.Instance, error)
}

type NmapClientWrapper

type NmapClientWrapper interface {
	Run([]string, context.Context) (*nmap.Run, []string, error)
}

type NmapSvc

type NmapSvc interface {
	CurrentScanResults() ([]byte, error)
	ParsePreviousScan([]byte) error
	StartScan(ipAddresses []string) error
	DiffScans() map[string]PortMap
}

type PortMap

type PortMap map[uint16]bool

type Runner

type Runner interface {
	Execute(configObject config.BaseConfig) error
}

type SlackSvc

type SlackSvc interface {
	PrintOpenedPorts(host server.Server, ports []uint16) error
}

Jump to

Keyboard shortcuts

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