state

package
v0.0.0-...-444551c Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	Domain string

	Connected  time.Time
	Added      int
	Deleted    int
	New        int
	SentRepros int
	RecvRepros int
	Calls      map[string]struct{}
	Corpus     *db.DB
	// contains filtered or unexported fields
}

Manager represents one syz-manager instance.

type State

type State struct {
	Corpus   *db.DB
	Repros   *db.DB
	Managers map[string]*Manager
	// contains filtered or unexported fields
}

State holds all internal syz-hub state including corpus, reproducers and information about managers. It is persisted to and can be restored from a directory.

func Make

func Make(dir string) (*State, error)

Make creates State and initializes it from dir.

func (*State) AddRepro

func (st *State) AddRepro(name string, repro []byte) error

func (*State) Connect

func (st *State) Connect(name, domain string, fresh bool, calls []string, corpus [][]byte) error

func (*State) Flush

func (st *State) Flush()

func (*State) PendingRepro

func (st *State) PendingRepro(name string) ([]byte, error)

func (*State) PurgeOldManagers

func (st *State) PurgeOldManagers() error

func (*State) Sync

func (st *State) Sync(name string, add [][]byte, del []string) (string, []rpctype.HubInput, int, error)

Jump to

Keyboard shortcuts

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