Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteResourceEvent ¶
type DeleteResourceEvent struct {
UID string `json:"uid,omitempty"`
}
DeleteResourceEvent - Contains the information needed to delete an existing resource.
type Resource ¶
type Resource struct { Kind string `json:"kind,omitempty"` UID string `json:"uid,omitempty"` ResourceString string `json:"resourceString,omitempty"` Properties map[string]interface{} }
Resource - Describes a resource (node)
type SyncError ¶
type SyncError struct { ResourceUID string Message string // Often comes out of a golang error using .Error() }
SyncError is used to respond with errors.
type SyncEvent ¶
type SyncEvent struct { ClearAll bool `json:"clearAll,omitempty"` AddResources []Resource UpdateResources []Resource DeleteResources []DeleteResourceEvent AddEdges []Edge DeleteEdges []Edge RequestId int }
SyncEvent - Object sent by the collector with the resources to change.
type SyncResponse ¶
type SyncResponse struct { TotalAdded int TotalUpdated int TotalDeleted int TotalResources int TotalEdgesAdded int TotalEdgesDeleted int TotalEdges int AddErrors []SyncError UpdateErrors []SyncError DeleteErrors []SyncError AddEdgeErrors []SyncError DeleteEdgeErrors []SyncError Version string RequestId int }
SyncResponse - Response to a SyncEvent
Click to show internal directories.
Click to hide internal directories.