state

package
v0.0.0-...-af24b05 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 16

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) 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