Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogRequest ¶
func LogRequest(log *logrus.Entry, level logrus.Level, reqType RequestType, req api.PayloadRequest, params ...string)
LogRequest creates a logging message with the given parameters
- log *logrus.Entry
- level the message must have
- reqType is the request type
- Optional. params for self-created string messages to be appended to the created log message. The elements do not need a space at the beginning of the message.
The message looks like one of the following depending on the given information
"*orchestrator.Catalog created with ID 'Cat1234'."
or
"*orchestrator.Certificate created with ID 'Cert1234' for Cloud Service '00000000-0000-0000-0000-000000000000'."
or
"*orchestrator.TargetOfEvaluation created with ID 'ToE1234' for Cloud Service '00000000-0000-0000-0000-000000000000' and Catalog 'EUCS'."
Types ¶
type RequestType ¶
type RequestType int
RequestType specifies the type of request
const ( Assess RequestType = iota Add Create Register Remove Store Send Update )
func (RequestType) String ¶
func (r RequestType) String() string
String returns the RequestType as string.
Click to show internal directories.
Click to hide internal directories.