model

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllIDType = []IDType{
	IDTypeProgram,
	IDTypeMap,
}

Functions

This section is empty.

Types

type ConnectedGraph added in v0.0.3

type ConnectedGraph struct {
	Programs []*Program `json:"programs"`
	Maps     []*Map     `json:"maps"`
}

type IDType added in v0.0.3

type IDType string
const (
	IDTypeProgram IDType = "PROGRAM"
	IDTypeMap     IDType = "MAP"
)

func (IDType) IsValid added in v0.0.3

func (e IDType) IsValid() bool

func (IDType) MarshalGQL added in v0.0.3

func (e IDType) MarshalGQL(w io.Writer)

func (IDType) String added in v0.0.3

func (e IDType) String() string

func (*IDType) UnmarshalGQL added in v0.0.3

func (e *IDType) UnmarshalGQL(v interface{}) error

type Map

type Map struct {
	ID                int         `json:"id"`
	Error             *string     `json:"error,omitempty"`
	Name              *string     `json:"name,omitempty"`
	Type              string      `json:"type"`
	Flags             *int        `json:"flags,omitempty"`
	IsPinned          bool        `json:"isPinned"`
	Pins              []string    `json:"pins,omitempty"`
	KeySize           *int        `json:"keySize,omitempty"`
	ValueSize         *int        `json:"valueSize,omitempty"`
	MaxEntries        *int        `json:"maxEntries,omitempty"`
	IsPerCPU          bool        `json:"isPerCPU"`
	IsLookupSupported bool        `json:"isLookupSupported"`
	Entries           []*MapEntry `json:"entries"`
	EntriesCount      int         `json:"entriesCount"`
	Programs          []*Program  `json:"programs"`
}

type MapEntry

type MapEntry struct {
	Key       string   `json:"key"`
	Value     *string  `json:"value,omitempty"`
	CPUValues []string `json:"cpuValues"`
}

type MapEntryFormat

type MapEntryFormat string
const (
	MapEntryFormatHex    MapEntryFormat = "HEX"
	MapEntryFormatString MapEntryFormat = "STRING"
	MapEntryFormatNumber MapEntryFormat = "NUMBER"
)

func (MapEntryFormat) IsValid

func (e MapEntryFormat) IsValid() bool

func (MapEntryFormat) MarshalGQL

func (e MapEntryFormat) MarshalGQL(w io.Writer)

func (MapEntryFormat) String

func (e MapEntryFormat) String() string

func (*MapEntryFormat) UnmarshalGQL

func (e *MapEntryFormat) UnmarshalGQL(v interface{}) error

type MapPinningResult added in v0.0.4

type MapPinningResult struct {
	Error *string `json:"error,omitempty"`
}

type MapUpdateValueResult added in v0.0.4

type MapUpdateValueResult struct {
	Error *string `json:"error,omitempty"`
}

type Program

type Program struct {
	ID          int      `json:"id"`
	Error       *string  `json:"error,omitempty"`
	Name        *string  `json:"name,omitempty"`
	Type        string   `json:"type"`
	Tag         *string  `json:"tag,omitempty"`
	RunTime     *float64 `json:"runTime,omitempty"`
	RunCount    *int     `json:"runCount,omitempty"`
	BtfID       *int     `json:"btfId,omitempty"`
	VerifierLog *string  `json:"verifierLog,omitempty"`
	IsPinned    *bool    `json:"isPinned,omitempty"`
	Maps        []*Map   `json:"maps"`
	Tasks       []*Task  `json:"tasks"`
}

type Task added in v0.0.3

type Task struct {
	Pid         int     `json:"pid"`
	Fd          int     `json:"fd"`
	Type        string  `json:"type"`
	Name        *string `json:"name,omitempty"`
	ProbeOffset *string `json:"probeOffset,omitempty"`
	ProbeAddr   *string `json:"probeAddr,omitempty"`
}

Jump to

Keyboard shortcuts

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