vm

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NaslArray

type NaslArray struct {
	Hash_elt map[string]interface{}
	Num_elt  []interface{}
	// contains filtered or unexported fields
}

func NewEmptyNaslArray

func NewEmptyNaslArray() *NaslArray

func NewNaslArray

func NewNaslArray(data interface{}) (*NaslArray, error)

func (*NaslArray) AddEleToArray

func (n *NaslArray) AddEleToArray(index string, ele interface{}) error

func (*NaslArray) AddEleToList

func (n *NaslArray) AddEleToList(index int, ele interface{}) error

func (*NaslArray) Copy

func (n *NaslArray) Copy() *NaslArray

func (*NaslArray) GetElementByNum

func (n *NaslArray) GetElementByNum(i int) interface{}

func (*NaslArray) GetMaxIdx

func (n *NaslArray) GetMaxIdx() int

func (*NaslArray) Interface

func (n *NaslArray) Interface() interface{}

type NaslData

type NaslData []byte

func NewNaslData

func NewNaslData(d []byte) *NaslData

func (*NaslData) Interface

func (n *NaslData) Interface() interface{}

type NaslInt

type NaslInt int64

func NewNaslInt

func NewNaslInt(i int64) *NaslInt

func (*NaslInt) Interface

func (n *NaslInt) Interface() interface{}

type NaslString

type NaslString string

func NewNaslString

func NewNaslString(s string) *NaslString

func (*NaslString) Interface

func (n *NaslString) Interface() interface{}

type NaslType

type NaslType interface {
	Interface() interface{}
}

type SortableArrayByString

type SortableArrayByString []interface{}

func (SortableArrayByString) Len

func (a SortableArrayByString) Len() int

func (SortableArrayByString) Less

func (a SortableArrayByString) Less(i, j int) bool

func (SortableArrayByString) Swap

func (a SortableArrayByString) Swap(i, j int)

Jump to

Keyboard shortcuts

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