Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFinishedUnexpectedly = errors.New("service finished unexpectedly")
)
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache represents the client local in-memory executable cache. Cache is NOT persistent now, so any client restart will cause a re-download of the all exploits.
func (*Cache) Diff ¶
func (c *Cache) Diff(exs []*epb.ExploitState) []*epb.ExploitState
type FarmRequest ¶
type FullResult ¶
func NewFullResult ¶
func (*FullResult) FarmRequest ¶
func (r *FullResult) FarmRequest() *FarmRequest
func (*FullResult) MetricLabels ¶
func (r *FullResult) MetricLabels() prometheus.Labels
type Metrics ¶
type Metrics struct {
FlagsSubmitted *prometheus.CounterVec
Teams prometheus.Gauge
}
func NewMetrics ¶
type State ¶
type State struct {
ID string
Version int64
Dir string
Path string
Disabled bool
Endless bool
RunEvery time.Duration
LastRun time.Time
Timeout time.Duration
}
func (*State) ExploitType ¶
func (s *State) ExploitType() models.ExploitType
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) UpdateExploits ¶
Click to show internal directories.
Click to hide internal directories.