engine

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArsenicHost

type ArsenicHost struct {
	types.PropObject
	Value *host.Host
}

func (*ArsenicHost) CanIterate

func (h *ArsenicHost) CanIterate() bool

CanIterate should return whether the Object can be Iterated.

func (*ArsenicHost) IsFalsy

func (h *ArsenicHost) IsFalsy() bool

IsFalsy should return true if the value of the type should be considered as falsy.

func (*ArsenicHost) String

func (h *ArsenicHost) String() string

String should return a string representation of the type's value.

func (*ArsenicHost) TypeName

func (h *ArsenicHost) TypeName() string

type ArsenicPort

type ArsenicPort struct {
	types.PropObject
	Value host.Port
}

func (*ArsenicPort) CanIterate

func (p *ArsenicPort) CanIterate() bool

CanIterate should return whether the Object can be Iterated.

func (*ArsenicPort) IsFalsy

func (p *ArsenicPort) IsFalsy() bool

IsFalsy should return true if the value of the type should be considered as falsy.

func (*ArsenicPort) String

func (p *ArsenicPort) String() string

String should return a string representation of the type's value.

func (*ArsenicPort) TypeName

func (p *ArsenicPort) TypeName() string

type CobraCmd

type CobraCmd struct {
	types.PropObject
	Value *cobra.Command
	// contains filtered or unexported fields
}

func (*CobraCmd) Call

func (c *CobraCmd) Call(args ...tengo.Object) (tengo.Object, error)

Call should take an arbitrary number of arguments and returns a return value and/or an error, which the VM will consider as a run-time error.

func (*CobraCmd) CanCall

func (c *CobraCmd) CanCall() bool

CanCall should return whether the Object can be Called.

func (*CobraCmd) CanIterate

func (c *CobraCmd) CanIterate() bool

CanIterate should return whether the Object can be Iterated.

func (*CobraCmd) IsFalsy

func (c *CobraCmd) IsFalsy() bool

IsFalsy should return true if the value of the type should be considered as falsy.

func (*CobraCmd) String

func (c *CobraCmd) String() string

String should return a string representation of the type's value.

func (*CobraCmd) TypeName

func (c *CobraCmd) TypeName() string

TypeName should return the name of the type.

type CobraFlagSet

type CobraFlagSet struct {
	types.PropObject
	Value *pflag.FlagSet
	// contains filtered or unexported fields
}

func (*CobraFlagSet) CanIterate

func (c *CobraFlagSet) CanIterate() bool

CanIterate should return whether the Object can be Iterated.

func (*CobraFlagSet) IsFalsy

func (c *CobraFlagSet) IsFalsy() bool

IsFalsy should return true if the value of the type should be considered as falsy.

func (*CobraFlagSet) String

func (c *CobraFlagSet) String() string

String should return a string representation of the type's value.

func (*CobraFlagSet) TypeName

func (c *CobraFlagSet) TypeName() string

TypeName should return the name of the type.

type Script

type Script struct {
	// contains filtered or unexported fields
}

func NewScript

func NewScript(path string) (*Script, error)

func (*Script) ArsenicModule

func (s *Script) ArsenicModule() map[string]tengo.Object

func (*Script) CobraModule

func (s *Script) CobraModule() map[string]tengo.Object

CobraModule represents the 'cobra' import module

func (*Script) Error

func (s *Script) Error() error

func (*Script) GitModule

func (s *Script) GitModule() map[string]tengo.Object

func (*Script) NewModuleMap

func (s *Script) NewModuleMap() *tengo.ModuleMap

func (*Script) Run

func (s *Script) Run(args []string) error

func (*Script) ScopeModule

func (s *Script) ScopeModule() map[string]tengo.Object

ScopeModule represents the 'scope' import module

func (*Script) ScriptModule

func (s *Script) ScriptModule() map[string]tengo.Object

ScriptModule represents the 'script' import module

func (*Script) Signal

func (s *Script) Signal()

func (*Script) WordlistModule

func (s *Script) WordlistModule() map[string]tengo.Object

Jump to

Keyboard shortcuts

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