Documentation ¶
Index ¶
- func AcceptEvent(c echo.Context) (err error)
- func AssembleRequest(t RequestTransitive, table string) (req *http.Request, err error)
- func CreateIncident(vc *config.Config, sys_id string, incident Incident) (incident_number string, err error)
- func GetAllIncidents(c echo.Context) (err error)
- func LookupIncident(vc *config.Config, cmdb_ci_id string, correlation_id string) (incident_id string, short_description string, state int, err error)
- func LookupSysID(vc *config.Config, table, search, cmdb_ci_default string) (sys_id, sys_class_name string, err error)
- func LookupSysIDSimple(vc *config.Config, table, search, cmdb_ci_default string) (sys_id, sys_class_name string, err error)
- func UpdateIncident(vc *config.Config, incident_id string, incident Incident) (incident_number string, err error)
- type Connection
- func (c Connection) GET(limit string, fields string, offset string, query string, sysID string) (t RequestTransitive)
- func (c Connection) POST(payload []byte, limit string, fields string, offset string, query string, ...) (t RequestTransitive)
- func (c Connection) PUT(payload []byte, limit string, fields string, offset string, query string, ...) (t RequestTransitive)
- type Incident
- type RequestTransitive
- type ResultDetail
- type ResultsArray
- type RouterContext
- type SNOWError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptEvent ¶
func AcceptEvent(c echo.Context) (err error)
func AssembleRequest ¶
func AssembleRequest(t RequestTransitive, table string) (req *http.Request, err error)
func CreateIncident ¶
func GetAllIncidents ¶
func GetAllIncidents(c echo.Context) (err error)
This is to get a list of all OPEN incidents opened by the service user
func LookupIncident ¶
func LookupSysID ¶
func LookupSysIDSimple ¶
Types ¶
type Connection ¶
func InitializeConnection ¶
func InitializeConnection(vc *config.Config) *Connection
func (Connection) GET ¶
func (c Connection) GET(limit string, fields string, offset string, query string, sysID string) (t RequestTransitive)
func (Connection) POST ¶
func (c Connection) POST(payload []byte, limit string, fields string, offset string, query string, sysID string) (t RequestTransitive)
func (Connection) PUT ¶
func (c Connection) PUT(payload []byte, limit string, fields string, offset string, query string, sysID string) (t RequestTransitive)
type RequestTransitive ¶
type RequestTransitive struct { Connection Payload []byte Method string Params url.Values SysID string }
func (RequestTransitive) QueryTable ¶
func (t RequestTransitive) QueryTable(table string) (i ResultsArray, err error)
func (RequestTransitive) QueryTableDetail ¶
func (t RequestTransitive) QueryTableDetail(table string) (r ResultDetail, err error)
func (RequestTransitive) QueryTableSingle ¶
func (t RequestTransitive) QueryTableSingle(table string) (i ResultDetail, err error)
type ResultDetail ¶
type ResultsArray ¶
type ResultsArray []ResultDetail
type RouterContext ¶
Click to show internal directories.
Click to hide internal directories.