common represents a generic network.
| 87 | |
| 88 | // common represents a generic network. |
| 89 | type common struct { |
| 90 | logger logger.Logger |
| 91 | state *state.State |
| 92 | id int64 |
| 93 | project string |
| 94 | name string |
| 95 | netType string |
| 96 | description string |
| 97 | config map[string]string |
| 98 | status string |
| 99 | managed bool |
| 100 | nodes map[int64]db.NetworkNode |
| 101 | } |
| 102 | |
| 103 | // init initialize internal variables. |
| 104 | func (n *common) init(s *state.State, id int64, projectName string, netInfo *api.Network, netNodes map[int64]db.NetworkNode) error { |
nothing calls this directly
no outgoing calls
no test coverage detected