Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentContext ¶
type AgentContext struct {
RuleID string `json:"rule_id"`
RuleVersion string `json:"rule_version,omitempty"`
PolicyName string `json:"policy_name,omitempty"`
PolicyVersion string `json:"policy_version,omitempty"`
Version string `json:"version,omitempty"`
}
AgentContext serializes the agent context to JSON easyjson:json
func (AgentContext) MarshalEasyJSON ¶
func (v AgentContext) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AgentContext) MarshalJSON ¶
func (v AgentContext) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AgentContext) UnmarshalEasyJSON ¶
func (v *AgentContext) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AgentContext) UnmarshalJSON ¶
func (v *AgentContext) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Signal ¶
type Signal struct {
*AgentContext `json:"agent"`
Title string `json:"title"`
}
Signal - Rule event wrapper used to send an event to the backend easyjson:json
func (Signal) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Signal) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Signal) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Signal) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.