summaryrefslogtreecommitdiff
path: root/libnetwork/internal
Commit message (Collapse)AuthorAgeFilesLines
* libn/i/setmatrix: make generic and constructorlessCory Snider2023-03-292-27/+21
| | | | | | | | | | Allow SetMatrix to be used as a value type with a ready-to-use zero value. SetMatrix values are already non-copyable by virtue of having a mutex field so there is no harm in allowing non-pointer values to be used as local variables or struct fields. Any attempts to pass around by-value copies, e.g. as function arguments, will be flagged by go vet. Signed-off-by: Cory Snider <csnider@mirantis.com>
* libnetwork/i/setmatrix: devirtualizeCory Snider2023-03-142-40/+23
| | | | | | There is only one implementation. Get rid of the interface. Signed-off-by: Cory Snider <csnider@mirantis.com>
* libnetwork/i/setmatrix: un-embed the mutexCory Snider2023-03-141-15/+15
| | | | | | so that it cannot be accessed outside of the package. Signed-off-by: Cory Snider <csnider@mirantis.com>
* libnetwork: remove unused "testutils" importsSebastiaan van Stijn2021-08-182-4/+0
| | | | | | | Perhaps the testutils package in the past had an `init()` function to set up specific things, but it no longer has. so these imports were doing nothing. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Fix libnetwork importsBrian Goff2021-06-012-2/+2
| | | | | | | | | After moving libnetwork to this repo, we need to update all the import paths for libnetwork to point to docker/docker/libnetwork instead of docker/libnetwork. This change implements that. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
* Create internal directoryFlavio Crisciani2018-07-164-0/+402
Internal directory is designed to contain libraries that are exclusively used by this project Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>