Documentation
¶
Index ¶
- type Edge
- func (e *Edge) Equal(other *Edge) bool
- func (e *Edge) GetEndNodeID() string
- func (e *Edge) GetKind() string
- func (e *Edge) GetProperties() *properties.Properties
- func (e *Edge) GetProperty(key string, defaultVal ...interface{}) interface{}
- func (e *Edge) GetStartNodeID() string
- func (e *Edge) RemoveProperty(key string)
- func (e *Edge) SetProperty(key string, value interface{})
- func (e *Edge) String() string
- func (e *Edge) ToDict() map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edge ¶
type Edge struct {
// contains filtered or unexported fields
}
Edge represents a directed edge in the OpenGraph. Follows BloodHound OpenGraph schema requirements with start/end nodes, kind, and properties. All edges are directed and one-way as per BloodHound requirements.
Sources: - https://bloodhound.specterops.io/opengraph/schema#edges - https://bloodhound.specterops.io/opengraph/schema#minimal-working-json
func NewEdge ¶
func NewEdge(startNodeID string, endNodeID string, kind string, p *properties.Properties) (*Edge, error)
NewEdge creates a new Edge instance
func (*Edge) GetEndNodeID ¶
GetEndNodeID returns the end node ID
func (*Edge) GetProperties ¶
func (e *Edge) GetProperties() *properties.Properties
GetProperties returns the properties of the edge
func (*Edge) GetProperty ¶
GetProperty gets a property from the edge
func (*Edge) GetStartNodeID ¶
GetStartNodeID returns the start node ID
func (*Edge) RemoveProperty ¶
RemoveProperty removes a property from the edge
func (*Edge) SetProperty ¶
SetProperty sets a property on the edge