actions

package
v0.0.0-...-33dc450 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// services
	ServiceOk   = 1
	Mumbled     = 0
	Unreacheble = -1
	// exploits
	Exploitable = 1
	Safety      = 0
	NotSet      = -1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Actions

type Actions struct {
	Scenario     *scenario.Scenario
	DB           *gorm.DB
	Cache        *storage.Cache
	ChckerClient pb.CheckerClient
	RoundInfo    map[int]managerModels.RoundInfo
	CurrentRound int
}

func (*Actions) Exploit

func (a *Actions) Exploit(serviceName string)

func (*Actions) Get

func (a *Actions) Get(serviceName string)

func (*Actions) NewRound

func (a *Actions) NewRound()

function for initializate new round

func (*Actions) Ping

func (a *Actions) Ping(serviceName string)

func (*Actions) Put

func (a *Actions) Put(serviceName string)

func (*Actions) Run

func (a *Actions) Run()

func (*Actions) SaveRoundEvents

func (a *Actions) SaveRoundEvents()

func (*Actions) StartManager

func (a *Actions) StartManager(ticker *time.Ticker)

func (*Actions) UpdatePlaces

func (a *Actions) UpdatePlaces()

func (*Actions) UpdateServicesStatus

func (a *Actions) UpdateServicesStatus()

type Host

type Host struct {
	Name string
	Host string
	ID   int64
}

Jump to

Keyboard shortcuts

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