Documentation ¶
Index ¶
- type Module
- func (m *Module) Agent() string
- func (m *Module) Arch() string
- func (m *Module) Author() []string
- func (m *Module) Commands() []string
- func (m *Module) Credits() []string
- func (m *Module) Description() string
- func (m *Module) Extended() bool
- func (m *Module) ID() uuid.UUID
- func (m *Module) Lang() string
- func (m *Module) Name() string
- func (m *Module) Notes() string
- func (m *Module) Options() []Option
- func (m *Module) OptionsMap() map[string]string
- func (m *Module) OriginalOptions() []Option
- func (m *Module) Platform() string
- func (m *Module) String() string
- func (m *Module) UpdateAgent(id string)
- func (m *Module) UpdateOptions(options []Option)
- type Option
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module is a structure containing the base information or template for modules
func NewModule ¶
func NewModule(name, platform, arch, lang, description, notes string, extended, priv bool, author, credits, path, commands []string, options []Option) *Module
NewModule instantiates a module object, assigns a unique identifier, and returns the object
func (*Module) Description ¶
func (*Module) OptionsMap ¶
OptionsMap is used to generate a map containing module option names and values to be used with other functions
func (*Module) OriginalOptions ¶
func (*Module) UpdateAgent ¶
func (*Module) UpdateOptions ¶
UpdateOptions updates the options for the module
type Option ¶
type Option struct { Name string `json:"name"` // Name of the option Value string `json:"value"` // Value of the option Required bool `json:"required"` // Is this a required option? Flag string `json:"flag"` // The command line flag used for the option Description string `json:"description"` // A description of the option }
Option is a structure containing the keys for the object
Click to show internal directories.
Click to hide internal directories.