Documentation
¶
Index ¶
- type Manager
- func (manager *Manager) Create(name string, script string) (*Script, error)
- func (manager *Manager) CreateFromFile(name string, filename string) (*Script, error)
- func (manager *Manager) Exists(name string) (bool, error)
- func (manager *Manager) Get(name string) (*Script, error)
- func (manager *Manager) WithTimeout(timeoutInSeconds int)
- type Script
- func (script *Script) Execute(reader io.Reader) (string, error)
- func (script *Script) ExecuteWithFilePayload(filename string) (string, error)
- func (script *Script) ExecuteWithJSONPayload(payload interface{}) (string, error)
- func (script *Script) ExecuteWithStringPayload(payload string) (string, error)
- func (script *Script) ExecuteWithoutPayload() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages nexus scripting
func (*Manager) CreateFromFile ¶
CreateFromFile creates a new script at nexus with the content from the given file
func (*Manager) WithTimeout ¶
type Script ¶
type Script struct {
// contains filtered or unexported fields
}
Script represents a nexus script
func (*Script) ExecuteWithFilePayload ¶
ExecuteWithFilePayload execute the script with the payload from given file
func (*Script) ExecuteWithJSONPayload ¶
ExecuteWithJSONPayload execute the script with the given payload transformed to json
func (*Script) ExecuteWithStringPayload ¶
ExecuteWithStringPayload
func (*Script) ExecuteWithoutPayload ¶
ExecuteWithoutPayload executes the script without any payload
Click to show internal directories.
Click to hide internal directories.