syzkaller: Index | Files

package state

import ""


Package Files


type Manager Uses

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 Uses

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 Uses

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

Make creates State and initializes it from dir.

func (*State) AddRepro Uses

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

func (*State) Connect Uses

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

func (*State) PendingRepro Uses

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

func (*State) Sync Uses

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

Package state imports 12 packages (graph) and is imported by 3 packages. Updated 2020-07-06. Refresh now. Tools for package owners.