Documentation ¶
Index ¶
- type ArsenicHost
- type ArsenicPort
- type CobraCmd
- type CobraFlagSet
- type Script
- func (s *Script) ArsenicModule() map[string]tengo.Object
- func (s *Script) CobraModule() map[string]tengo.Object
- func (s *Script) Error() error
- func (s *Script) GitModule() map[string]tengo.Object
- func (s *Script) NewModuleMap() *tengo.ModuleMap
- func (s *Script) Run(args []string) error
- func (s *Script) ScopeModule() map[string]tengo.Object
- func (s *Script) ScriptModule() map[string]tengo.Object
- func (s *Script) Signal()
- func (s *Script) WordlistModule() map[string]tengo.Object
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 ¶
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) CanIterate ¶
CanIterate should return whether the Object can be Iterated.
func (*CobraCmd) IsFalsy ¶
IsFalsy should return true if the value of the type should be considered as falsy.
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 (*Script) ArsenicModule ¶
func (*Script) CobraModule ¶
CobraModule represents the 'cobra' import module
func (*Script) NewModuleMap ¶
func (s *Script) NewModuleMap() *tengo.ModuleMap
func (*Script) ScopeModule ¶
ScopeModule represents the 'scope' import module
func (*Script) ScriptModule ¶
ScriptModule represents the 'script' import module