models

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exploit

type Exploit struct {
	ID      string
	Version int64
	Type    ExploitType
}

func NewExploit

func NewExploit(id string, version int64, exploitType ExploitType) *Exploit

func (*Exploit) MetricLabels

func (i *Exploit) MetricLabels() prometheus.Labels

func (*Exploit) String

func (i *Exploit) String() string

type ExploitType

type ExploitType string
const (
	ExploitTypeRecurrent ExploitType = "recurrent"
	ExploitTypeEndless   ExploitType = "endless"
)

type Target

type Target struct {
	ID string
	IP string
}

func NewTarget

func NewTarget(teamID, teamIP string) *Target

func (*Target) MetricLabels

func (i *Target) MetricLabels() prometheus.Labels

func (*Target) String

func (i *Target) String() string

Jump to

Keyboard shortcuts

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