Versions in this module Expand all Collapse all v0 v0.1.0 Dec 12, 2018 Changes in this version + const Circle + const Cylinder + const Diamond + const Max + func Int64sEqual(a, b Int64s) bool + func NewDfdGraph() *dfdGraph + type Client struct + Config Config + DFD *DataFlowDiagram + func NewClient(dot_path string) *Client + func (client *Client) DFDFromDOT() (encoding.Builder, error) + func (client *Client) DFDToDOT(dfd encoding.Builder) (string, error) + type Config struct + DFDName string + DOTPath string + type DataFlowDiagram struct + DataStores map[string]*DataStore + ExternalServices map[string]*ExternalService + Flows map[string]*Flow + Name string + Processes map[string]*Process + TrustBoundaries map[string]*TrustBoundary + func DeserializeDFD(id string) *DataFlowDiagram + func InitializeDFD(name string) *DataFlowDiagram + func (dfd *DataFlowDiagram) AddTrustBoundary(name string) (*TrustBoundary, error) + func (dfd *DataFlowDiagram) ExternalID() string + func (dfd *DataFlowDiagram) GetTrustBoundary(id string) *TrustBoundary + func (dfd *DataFlowDiagram) ToDOT() error + func (dfd *DataFlowDiagram) UpdateName(new_name string) + func (g *DataFlowDiagram) AddFlow(f graph.Node, t graph.Node, name string) *Flow + func (g *DataFlowDiagram) AddNodeElem(n graph.Node) + func (g *DataFlowDiagram) DOTID() string + func (g *DataFlowDiagram) FindNode(id string) graph.Node + func (g *DataFlowDiagram) RemoveDataStore(id string) + func (g *DataFlowDiagram) RemoveExternalService(id string) + func (g *DataFlowDiagram) RemoveFlow(src_id, dest_id string) + func (g *DataFlowDiagram) RemoveProcess(id string) + func (g *DataFlowDiagram) RemoveTrustBoundary(id string) + func (g *DataFlowDiagram) Structure() []dot.Graph + func (g DataFlowDiagram) AddNode(n graph.Node) + func (g DataFlowDiagram) DOTAttributeSetters() (graph, node, edge encoding.AttributeSetter) + func (g DataFlowDiagram) DOTAttributers() (graph, node, edge encoding.Attributer) + func (g DataFlowDiagram) Edge(uid, vid int64) graph.Edge + func (g DataFlowDiagram) Edges() graph.Edges + func (g DataFlowDiagram) From(id int64) graph.Nodes + func (g DataFlowDiagram) HasEdgeBetween(xid, yid int64) bool + func (g DataFlowDiagram) HasEdgeFromTo(uid, vid int64) bool + func (g DataFlowDiagram) NewEdge(from, to graph.Node) graph.Edge + func (g DataFlowDiagram) NewNode() graph.Node + func (g DataFlowDiagram) Node(id int64) graph.Node + func (g DataFlowDiagram) Nodes() graph.Nodes + func (g DataFlowDiagram) RemoveEdge(fid, tid int64) + func (g DataFlowDiagram) RemoveNode(id int64) + func (g DataFlowDiagram) SetDOTID(id string) + func (g DataFlowDiagram) SetEdge(e graph.Edge) + func (g DataFlowDiagram) To(id int64) graph.Nodes + type DataStore struct + Name string + func DeserializeDataStore(id string) *DataStore + func NewDataStore(name string) *DataStore + func (n *DataStore) DOTID() string + func (n *DataStore) ExternalID() string + func (n *DataStore) UpdateName(new_name string) + func (n DataStore) Attributes() []encoding.Attribute + func (n DataStore) SetAttribute(attr encoding.Attribute) error + func (n DataStore) SetDOTID(id string) + type DfdGraph interface + AddNodeElem func(graph.Node) + RemoveDataStore func(string) + RemoveExternalService func(string) + RemoveProcess func(string) + type DfdNode interface + DOTID func() string + ExternalID func() string + UpdateName func(string) + type ExternalService struct + Name string + func DeserializeExternalService(id string) *ExternalService + func NewExternalService(name string) *ExternalService + func (es *ExternalService) DOTID() string + func (n *ExternalService) UpdateName(new_name string) + func (n ExternalService) Attributes() []encoding.Attribute + func (n ExternalService) ExternalID() string + func (n ExternalService) SetAttribute(attr encoding.Attribute) error + func (n ExternalService) SetDOTID(id string) + type Flow struct + func (e Flow) FromPort() (port, compass string) + func (e Flow) SetAttribute(attr encoding.Attribute) error + func (e Flow) SetFromPort(port, compass string) error + func (e Flow) SetToPort(port, compass string) error + func (e Flow) ToPort() (port, compass string) + func (f *Flow) Attributes() []encoding.Attribute + type Int64s map[int64]struct + func (s Int64s) Add(e int64) + func (s Int64s) Count() int + func (s Int64s) Has(e int64) bool + func (s Int64s) Remove(e int64) + type Process struct + Name string + func DeserializeProcess(id string) *Process + func NewProcess(name string) *Process + func (n *Process) UpdateName(new_name string) + func (n Process) Attributes() []encoding.Attribute + func (n Process) SetAttribute(attr encoding.Attribute) error + func (n Process) SetDOTID(id string) + func (p *Process) DOTID() string + func (p *Process) ExternalID() string + type Set struct + func NewSet() Set + func (s *Set) NewID() int64 + func (s *Set) Release(id int64) + func (s *Set) Use(id int64) + type TrustBoundary struct + DataStores map[string]*DataStore + ExternalServices map[string]*ExternalService + Name string + Processes map[string]*Process + func DeserializeTrustBoundary(id string) *TrustBoundary + func InitializeTrustBoundary(name string) *TrustBoundary + func (g *TrustBoundary) AddNodeElem(n graph.Node) + func (g *TrustBoundary) DOTID() string + func (g *TrustBoundary) FindNode(id string) graph.Node + func (g *TrustBoundary) RemoveDataStore(id string) + func (g *TrustBoundary) RemoveExternalService(id string) + func (g *TrustBoundary) RemoveProcess(id string) + func (g *TrustBoundary) Subgraph() graph.Graph + func (g TrustBoundary) AddNode(n graph.Node) + func (g TrustBoundary) DOTAttributeSetters() (graph, node, edge encoding.AttributeSetter) + func (g TrustBoundary) DOTAttributers() (graph, node, edge encoding.Attributer) + func (g TrustBoundary) Edge(uid, vid int64) graph.Edge + func (g TrustBoundary) Edges() graph.Edges + func (g TrustBoundary) From(id int64) graph.Nodes + func (g TrustBoundary) HasEdgeBetween(xid, yid int64) bool + func (g TrustBoundary) HasEdgeFromTo(uid, vid int64) bool + func (g TrustBoundary) NewEdge(from, to graph.Node) graph.Edge + func (g TrustBoundary) NewNode() graph.Node + func (g TrustBoundary) Node(id int64) graph.Node + func (g TrustBoundary) Nodes() graph.Nodes + func (g TrustBoundary) RemoveEdge(fid, tid int64) + func (g TrustBoundary) RemoveNode(id int64) + func (g TrustBoundary) SetDOTID(id string) + func (g TrustBoundary) SetEdge(e graph.Edge) + func (g TrustBoundary) To(id int64) graph.Nodes + func (sg *TrustBoundary) ExternalID() string + func (sg *TrustBoundary) UpdateName(new_name string)