Discover Packages
github.com/iamsdas/one/src/oca/go/src/goca
schemas
hook
package
Version:
v0.0.0-...-b27ac56
Opens a new window with list of versions in this module.
Published: Aug 27, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type ExecutionRecord struct {
Id int `xml:"HOOK_ID"`
ExecId int `xml:"EXECUTION_ID"`
Timestamp int `xml:"TIMESTAMP"`
Arguments string `xml:"ARGUMENTS"`
HookLog ExecutionResult `xml:"EXECUTION_RESULT"`
RemoteHost string `xml:"REMOTE_HOST"`
Retry string `xml:"RETRY"`
}
type ExecutionResult struct {
Command string `xml:"COMMAND"`
Stdout string `xml:"STDOUT"`
Stderr string `xml:"STDERR"`
Code string `xml:"CODE"`
}
Hook represents an OpenNebula Hook
type HookLog struct {
ExecutionRecords []ExecutionRecord `xml:"HOOK_EXECUTION_RECORD"`
}
type Pool struct {
XMLName xml .Name `xml:"HOOK_POOL"`
Hooks []Hook `xml:"HOOK"`
}
Pool represents an OpenNebula Hook pool
Template is a hook template
NewTemplate returns a hook Template structure
Add adds an hook template key, value pair
Get returns the string value for an hook template keys
GetI returns the integer value for a hook template key
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.