Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct { ExternalID string `json:"externalId"` Type Type `json:"type"` Data Data `json:"data"` SourceProperties Data `json:"sourceProperties"` }
Component is a representation of a topology component
func (Component) JSONString ¶
JSONString returns a JSON string of the Component
type Data ¶
type Data map[string]interface{}
Data type is used as an alias for the golang map
func (Data) PutNonEmpty ¶
PutNonEmpty adds the value for the given key to the map if the value is not nil
type Relation ¶
type Relation struct { ExternalID string `json:"externalId"` SourceID string `json:"sourceId"` TargetID string `json:"targetId"` Type Type `json:"type"` Data Data `json:"data"` }
Relation is a representation of a topology relation
func (Relation) JSONString ¶
JSONString returns a JSON string of the Relation
type Topology ¶
type Topology struct { StartSnapshot bool `json:"start_snapshot"` StopSnapshot bool `json:"stop_snapshot"` Instance Instance `json:"instance"` Components []Component `json:"components"` Relations []Relation `json:"relations"` DeleteIDs []string `json:"delete_ids"` }
Topology is a batch of instance topology
Click to show internal directories.
Click to hide internal directories.