module

package
v0.0.0-...-72c2bb7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New() *Client

func (*Client) Analyze

func (c *Client) Analyze(ctx context.Context, userContext am.UserContext, address *am.ScanGroupAddress) (*am.ScanGroupAddress, map[string]*am.ScanGroupAddress, error)

func (*Client) Init

func (c *Client) Init(data []byte) error

func (*Client) SetTimeout

func (c *Client) SetTimeout(timeout time.Duration)

type Config

type Config struct {
	ModuleType am.ModuleType
	Timeout    int
}

type PortClient

type PortClient struct {
	// contains filtered or unexported fields
}

func NewPortClient

func NewPortClient() *PortClient

func (*PortClient) AnalyzeWithPorts

func (c *PortClient) AnalyzeWithPorts(ctx context.Context, userContext am.UserContext, address *am.ScanGroupAddress, portResults *am.PortResults) (*am.ScanGroupAddress, map[string]*am.ScanGroupAddress, *am.Bag, error)

func (*PortClient) Init

func (c *PortClient) Init(data []byte) error

func (*PortClient) SetTimeout

func (c *PortClient) SetTimeout(timeout time.Duration)

type PortConfig

type PortConfig struct {
	ModuleType am.ModuleType
	Timeout    int
}

type PortScanClient

type PortScanClient struct {
	// contains filtered or unexported fields
}

func NewPortScanClient

func NewPortScanClient() *PortScanClient

func (*PortScanClient) AddGroup

func (c *PortScanClient) AddGroup(ctx context.Context, userContext am.UserContext, group *am.ScanGroup) error

func (*PortScanClient) Analyze

func (c *PortScanClient) Analyze(ctx context.Context, userContext am.UserContext, address *am.ScanGroupAddress) (*am.ScanGroupAddress, *am.PortResults, error)

func (*PortScanClient) Init

func (c *PortScanClient) Init(data []byte) error

func (*PortScanClient) RemoveGroup

func (c *PortScanClient) RemoveGroup(ctx context.Context, userContext am.UserContext, orgID, groupID int) error

func (*PortScanClient) SetTimeout

func (c *PortScanClient) SetTimeout(timeout time.Duration)

type PortScanConfig

type PortScanConfig struct {
	Token         string
	ModuleType    am.ModuleType
	ServerAddress string
	Timeout       int
}

Jump to

Keyboard shortcuts

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