state

package
v0.0.0-...-5d42abc Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	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 string, fresh bool, calls []string, corpus [][]byte) error

func (*State) PendingRepro

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

func (*State) Sync

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

Jump to

Keyboard shortcuts

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