Documentation ¶
Overview ¶
Package fake contains mock a Crossplane package DAG.
Index ¶
- type MockDag
- func (d *MockDag) AddEdge(from string, to dag.Node) (bool, error)
- func (d *MockDag) AddEdges(edges map[string][]dag.Node) ([]dag.Node, error)
- func (d *MockDag) AddNode(n dag.Node) error
- func (d *MockDag) AddNodes(n ...dag.Node) error
- func (d *MockDag) AddOrUpdateNodes(n ...dag.Node)
- func (d *MockDag) GetNode(i string) (dag.Node, error)
- func (d *MockDag) Init(nodes []dag.Node) ([]dag.Node, error)
- func (d *MockDag) NodeExists(i string) bool
- func (d *MockDag) NodeNeighbors(i string) ([]dag.Node, error)
- func (d *MockDag) Sort() ([]string, error)
- func (d *MockDag) TraceNode(i string) (map[string]dag.Node, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDag ¶
type MockDag struct { MockInit func(nodes []dag.Node) ([]dag.Node, error) MockAddNode func(dag.Node) error MockAddNodes func(...dag.Node) error MockAddOrUpdateNodes func(...dag.Node) MockGetNode func(identifier string) (dag.Node, error) MockAddEdge func(from string, to dag.Node) (bool, error) MockAddEdges func(edges map[string][]dag.Node) ([]dag.Node, error) MockNodeExists func(identifier string) bool MockNodeNeighbors func(identifier string) ([]dag.Node, error) MockTraceNode func(identifier string) (map[string]dag.Node, error) MockSort func() ([]string, error) }
MockDag is a mock DAG.
func (*MockDag) AddOrUpdateNodes ¶
AddOrUpdateNodes calls the underlying MockAddOrUpdateNodes.
func (*MockDag) NodeExists ¶
NodeExists calls the underlying MockNodeExists.
func (*MockDag) NodeNeighbors ¶
NodeNeighbors calls the underlying MockNodeNeighbors.
Click to show internal directories.
Click to hide internal directories.