id: 1 unit: func serverCommand() file: cmd/proxy/main.go start line: 79 end line: 192 size: 98 LOC McCabe index: 18 number of parameters: 2 id: 2 unit: func AddHostsConfiguration() file: pkg/containerd/hosts.go start line: 37 end line: 139 size: 85 LOC McCabe index: 22 number of parameters: 6 id: 3 unit: func() file: pkg/discovery/content/registry/mirror.go start line: 40 end line: 135 size: 72 LOC McCabe index: 12 number of parameters: 1 id: 4 unit: func() file: pkg/discovery/content/reader/reader.go start line: 101 end line: 184 size: 65 LOC McCabe index: 13 number of parameters: 1 id: 5 unit: func() file: pkg/containerd/store.go start line: 184 end line: 262 size: 64 LOC McCabe index: 16 number of parameters: 1 id: 6 unit: func NewRouter() file: pkg/discovery/routing/router.go start line: 71 end line: 146 size: 62 LOC McCabe index: 10 number of parameters: 4 id: 7 unit: func ParseReference() file: pkg/containerd/reference.go start line: 95 end line: 150 size: 45 LOC McCabe index: 12 number of parameters: 2 id: 8 unit: func Provide() file: pkg/discovery/content/provider/provider.go start line: 28 end line: 81 size: 44 LOC McCabe index: 10 number of parameters: 4 id: 9 unit: func NewRecorder() file: pkg/k8s/events/events.go start line: 23 end line: 64 size: 39 LOC McCabe index: 4 number of parameters: 2 id: 10 unit: func() file: pkg/containerd/handler.go start line: 30 end line: 80 size: 39 LOC McCabe index: 7 number of parameters: 1 id: 11 unit: func() file: pkg/discovery/routing/router.go start line: 172 end line: 214 size: 35 LOC McCabe index: 9 number of parameters: 1 id: 12 unit: func NewPromMetrics() file: pkg/metrics/prometheus.go start line: 47 end line: 84 size: 33 LOC McCabe index: 1 number of parameters: 3 id: 13 unit: func() file: pkg/handlers/v2/handler.go start line: 27 end line: 62 size: 32 LOC McCabe index: 7 number of parameters: 1 id: 14 unit: func() file: pkg/discovery/content/reader/reader.go start line: 187 end line: 224 size: 32 LOC McCabe index: 7 number of parameters: 1 id: 15 unit: func newEngine() file: pkg/handlers/root.go start line: 40 end line: 80 size: 31 LOC McCabe index: 6 number of parameters: 1 id: 16 unit: func() file: pkg/handlers/files/handler.go start line: 23 end line: 60 size: 31 LOC McCabe index: 4 number of parameters: 1 id: 17 unit: func() file: pkg/containerd/store.go start line: 128 end line: 163 size: 31 LOC McCabe index: 6 number of parameters: 1 id: 18 unit: func addMirrorConfiguration() file: cmd/proxy/main.go start line: 194 end line: 232 size: 30 LOC McCabe index: 7 number of parameters: 2 id: 19 unit: func() file: pkg/files/store/store.go start line: 86 end line: 123 size: 28 LOC McCabe index: 5 number of parameters: 1 id: 20 unit: func newHost() file: pkg/discovery/routing/router.go start line: 251 end line: 280 size: 27 LOC McCabe index: 7 number of parameters: 1 id: 21 unit: func() file: pkg/discovery/content/reader/reader.go start line: 227 end line: 256 size: 27 LOC McCabe index: 6 number of parameters: 1 id: 22 unit: func() file: pkg/files/store/file.go start line: 112 end line: 144 size: 26 LOC McCabe index: 6 number of parameters: 1 id: 23 unit: func NewFilesStore() file: pkg/files/store/store.go start line: 26 end line: 54 size: 26 LOC McCabe index: 3 number of parameters: 3 id: 24 unit: func() file: pkg/containerd/handler.go start line: 83 end line: 115 size: 26 LOC McCabe index: 6 number of parameters: 1 id: 25 unit: func main() file: cmd/proxy/main.go start line: 33 end line: 62 size: 24 LOC McCabe index: 4 number of parameters: 0 id: 26 unit: func() file: pkg/files/store/file.go start line: 77 end line: 100 size: 22 LOC McCabe index: 4 number of parameters: 1 id: 27 unit: func NewKubernetesInterface() file: pkg/k8s/k8s.go start line: 34 end line: 58 size: 21 LOC McCabe index: 4 number of parameters: 2 id: 28 unit: func() file: pkg/discovery/content/reader/reader.go start line: 51 end line: 76 size: 21 LOC McCabe index: 3 number of parameters: 1 id: 29 unit: func() file: pkg/files/store/file.go start line: 38 end line: 60 size: 21 LOC McCabe index: 4 number of parameters: 1 id: 30 unit: func() file: pkg/containerd/store.go start line: 297 end line: 319 size: 20 LOC McCabe index: 5 number of parameters: 1 id: 31 unit: func New() file: pkg/peernet/network.go start line: 104 end line: 127 size: 20 LOC McCabe index: 2 number of parameters: 1 id: 32 unit: func ParsePathComponents() file: pkg/oci/distribution/v2.go start line: 30 end line: 48 size: 19 LOC McCabe index: 5 number of parameters: 2 id: 33 unit: func merge[T any]() file: pkg/discovery/content/provider/provider.go start line: 132 end line: 152 size: 19 LOC McCabe index: 3 number of parameters: 1 id: 34 unit: func RangeStartIndex() file: pkg/context/context.go start line: 115 end line: 139 size: 18 LOC McCabe index: 6 number of parameters: 1 id: 35 unit: func provideRef() file: pkg/discovery/content/provider/provider.go start line: 106 end line: 126 size: 18 LOC McCabe index: 4 number of parameters: 5 id: 36 unit: func() file: pkg/files/store/store.go start line: 126 end line: 146 size: 18 LOC McCabe index: 4 number of parameters: 1 id: 37 unit: func validate() file: pkg/containerd/hosts.go start line: 142 end line: 162 size: 18 LOC McCabe index: 7 number of parameters: 1 id: 38 unit: func() file: pkg/containerd/mock.go start line: 56 end line: 76 size: 18 LOC McCabe index: 7 number of parameters: 1 id: 39 unit: func() file: pkg/discovery/content/reader/reader.go start line: 79 end line: 98 size: 17 LOC McCabe index: 2 number of parameters: 1 id: 40 unit: func() file: pkg/containerd/handler.go start line: 118 end line: 138 size: 17 LOC McCabe index: 4 number of parameters: 1 id: 41 unit: func() file: pkg/handlers/v2/handler.go start line: 65 end line: 85 size: 16 LOC McCabe index: 3 number of parameters: 1 id: 42 unit: func() file: pkg/peernet/network.go start line: 83 end line: 101 size: 16 LOC McCabe index: 2 number of parameters: 1 id: 43 unit: func() file: pkg/math/segments.go start line: 37 end line: 51 size: 15 LOC McCabe index: 3 number of parameters: 1 id: 44 unit: func provideAll() file: pkg/discovery/content/provider/provider.go start line: 85 end line: 101 size: 15 LOC McCabe index: 4 number of parameters: 4 id: 45 unit: func() file: pkg/containerd/store.go start line: 166 end line: 181 size: 15 LOC McCabe index: 4 number of parameters: 1 id: 46 unit: func getHostNames() file: pkg/containerd/store.go start line: 346 end line: 362 size: 15 LOC McCabe index: 5 number of parameters: 1 id: 47 unit: func() file: pkg/k8s/election/election.go start line: 73 end line: 86 size: 14 LOC McCabe index: 1 number of parameters: 1 id: 48 unit: func() file: pkg/k8s/election/election.go start line: 90 end line: 106 size: 14 LOC McCabe index: 3 number of parameters: 1 id: 49 unit: func() file: pkg/discovery/routing/router.go start line: 217 end line: 233 size: 14 LOC McCabe index: 4 number of parameters: 1 id: 50 unit: func() file: pkg/discovery/content/reader/reader.go start line: 269 end line: 285 size: 14 LOC McCabe index: 3 number of parameters: 1 id: 51 unit: func newStore() file: pkg/containerd/store.go start line: 98 end line: 112 size: 14 LOC McCabe index: 3 number of parameters: 2 id: 52 unit: func getEventImageName() file: pkg/containerd/store.go start line: 322 end line: 336 size: 14 LOC McCabe index: 4 number of parameters: 1 id: 53 unit: func createContentId() file: pkg/discovery/routing/router.go start line: 236 end line: 248 size: 13 LOC McCabe index: 2 number of parameters: 1 id: 54 unit: func() file: pkg/containerd/mock.go start line: 89 end line: 103 size: 13 LOC McCabe index: 5 number of parameters: 1 id: 55 unit: func NewStore() file: pkg/containerd/store.go start line: 81 end line: 96 size: 13 LOC McCabe index: 4 number of parameters: 3 id: 56 unit: func run() file: cmd/proxy/main.go start line: 64 end line: 77 size: 13 LOC McCabe index: 3 number of parameters: 2 id: 57 unit: func Logger() file: pkg/context/context.go start line: 94 end line: 106 size: 12 LOC McCabe index: 2 number of parameters: 1 id: 58 unit: func() file: pkg/handlers/files/handler.go start line: 63 end line: 77 size: 12 LOC McCabe index: 2 number of parameters: 1 id: 59 unit: func FetchFile() file: pkg/files/files.go start line: 26 end line: 39 size: 12 LOC McCabe index: 3 number of parameters: 4 id: 60 unit: func parseDigestFromAzureUrl() file: pkg/urlparser/azure.go start line: 26 end line: 39 size: 12 LOC McCabe index: 4 number of parameters: 1 id: 61 unit: func() file: pkg/k8s/election/election.go start line: 58 end line: 70 size: 11 LOC McCabe index: 2 number of parameters: 1 id: 62 unit: func getPodNamespace() file: pkg/k8s/k8s.go start line: 62 end line: 74 size: 11 LOC McCabe index: 3 number of parameters: 0 id: 63 unit: func Handler() file: pkg/handlers/root.go start line: 24 end line: 37 size: 11 LOC McCabe index: 2 number of parameters: 4 id: 64 unit: func() file: pkg/files/store/file.go start line: 63 end line: 74 size: 11 LOC McCabe index: 4 number of parameters: 1 id: 65 unit: func() file: pkg/files/store/store.go start line: 149 end line: 160 size: 11 LOC McCabe index: 3 number of parameters: 1 id: 66 unit: func() file: pkg/containerd/store.go start line: 283 end line: 294 size: 11 LOC McCabe index: 3 number of parameters: 1 id: 67 unit: func toUrls() file: cmd/proxy/main.go start line: 234 end line: 244 size: 11 LOC McCabe index: 3 number of parameters: 1 id: 68 unit: func() file: pkg/k8s/election/election.go start line: 45 end line: 55 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 69 unit: func NewReader() file: pkg/discovery/content/reader/reader.go start line: 288 end line: 297 size: 10 LOC McCabe index: 1 number of parameters: 5 id: 70 unit: func() file: pkg/discovery/routing/router.go start line: 159 end line: 169 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 71 unit: func New() file: pkg/discovery/content/registry/mirror.go start line: 138 end line: 146 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 72 unit: func() file: pkg/containerd/mock.go start line: 78 end line: 87 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 73 unit: func() file: pkg/containerd/store.go start line: 115 end line: 124 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 74 unit: func() file: pkg/peernet/network.go start line: 58 end line: 67 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 75 unit: func New() file: pkg/k8s/election/election.go start line: 109 end line: 116 size: 8 LOC McCabe index: 1 number of parameters: 2 id: 76 unit: func registerRoutes() file: pkg/handlers/root.go start line: 83 end line: 91 size: 8 LOC McCabe index: 1 number of parameters: 3 id: 77 unit: func() file: pkg/containerd/mock.go start line: 46 end line: 54 size: 8 LOC McCabe index: 3 number of parameters: 1 id: 78 unit: func WithContext() file: pkg/metrics/interface.go start line: 30 end line: 37 size: 7 LOC McCabe index: 2 number of parameters: 3 id: 79 unit: func FillCorrelationId() file: pkg/context/context.go start line: 78 end line: 84 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 80 unit: func WithContext() file: pkg/k8s/events/events.go start line: 67 end line: 74 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 81 unit: func New() file: pkg/handlers/v2/handler.go start line: 88 end line: 94 size: 7 LOC McCabe index: 1 number of parameters: 3 id: 82 unit: func NewMockStore() file: pkg/files/store/mockstore.go start line: 22 end line: 28 size: 7 LOC McCabe index: 2 number of parameters: 3 id: 83 unit: func() file: pkg/files/store/file.go start line: 103 end line: 109 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 84 unit: func splitTagAndDigest() file: pkg/containerd/reference.go start line: 152 end line: 158 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 85 unit: func() file: pkg/containerd/store.go start line: 265 end line: 271 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 86 unit: func() file: pkg/containerd/store.go start line: 274 end line: 280 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 87 unit: func Max64() file: pkg/math/compare.go start line: 6 end line: 11 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 88 unit: func Min64() file: pkg/math/compare.go start line: 14 end line: 19 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 89 unit: func Min() file: pkg/math/compare.go start line: 22 end line: 27 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 90 unit: func NewSegments() file: pkg/math/segments.go start line: 22 end line: 27 size: 6 LOC McCabe index: 2 number of parameters: 4 id: 91 unit: func() file: pkg/containerd/reference.go start line: 86 end line: 91 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 92 unit: func() file: pkg/peernet/network.go start line: 72 end line: 78 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 93 unit: func SetOutboundHeaders() file: pkg/context/context.go start line: 87 end line: 91 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 94 unit: func NewRegistry() file: pkg/containerd/handler.go start line: 141 end line: 145 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 95 unit: func NewMockContainerdStore() file: pkg/containerd/mock.go start line: 24 end line: 28 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 96 unit: func() file: pkg/metrics/prometheus.go start line: 28 end line: 31 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 97 unit: func() file: pkg/metrics/prometheus.go start line: 41 end line: 44 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 98 unit: func() file: pkg/context/context.go start line: 67 end line: 70 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 99 unit: func() file: pkg/discovery/content/reader/reader.go start line: 45 end line: 48 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 100 unit: func init() file: api/docs.go start line: 139 end line: 141 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 101 unit: func() file: pkg/metrics/prometheus.go start line: 22 end line: 24 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 102 unit: func() file: pkg/metrics/prometheus.go start line: 35 end line: 37 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 103 unit: func FromContext() file: pkg/metrics/interface.go start line: 40 end line: 42 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 104 unit: func FromContext() file: pkg/context/context.go start line: 62 end line: 64 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 105 unit: func IsRequestFromAPeer() file: pkg/context/context.go start line: 73 end line: 75 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 106 unit: func BlobUrl() file: pkg/context/context.go start line: 109 end line: 111 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 107 unit: func FromContext() file: pkg/k8s/events/events.go start line: 77 end line: 79 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 108 unit: func() file: pkg/k8s/events/events.go start line: 87 end line: 89 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 109 unit: func() file: pkg/k8s/events/events.go start line: 92 end line: 94 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 110 unit: func() file: pkg/k8s/events/events.go start line: 97 end line: 99 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 111 unit: func() file: pkg/k8s/events/events.go start line: 102 end line: 104 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 112 unit: func() file: pkg/k8s/events/events.go start line: 107 end line: 109 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 113 unit: func AlignDown() file: pkg/math/segments.go start line: 32 end line: 34 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 114 unit: func fileHandler() file: pkg/handlers/root.go start line: 99 end line: 101 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 115 unit: func v2Handler() file: pkg/handlers/root.go start line: 112 end line: 114 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 116 unit: func New() file: pkg/handlers/files/handler.go start line: 80 end line: 82 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 117 unit: func() file: pkg/discovery/routing/router.go start line: 149 end line: 151 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 118 unit: func() file: pkg/discovery/routing/router.go start line: 154 end line: 156 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 119 unit: func() file: pkg/discovery/content/reader/reader.go start line: 259 end line: 261 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 120 unit: func() file: pkg/discovery/content/reader/reader.go start line: 264 end line: 266 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 121 unit: func() file: pkg/files/store/mockstore.go start line: 18 end line: 20 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 122 unit: func() file: pkg/files/store/store.go start line: 81 end line: 83 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 123 unit: func FileChunkKey() file: pkg/files/files.go start line: 21 end line: 23 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 124 unit: func() file: pkg/containerd/reference.go start line: 61 end line: 63 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 125 unit: func() file: pkg/containerd/reference.go start line: 66 end line: 68 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 126 unit: func() file: pkg/containerd/reference.go start line: 71 end line: 73 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 127 unit: func() file: pkg/containerd/reference.go start line: 76 end line: 78 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 128 unit: func() file: pkg/containerd/reference.go start line: 81 end line: 83 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 129 unit: func() file: pkg/containerd/mock.go start line: 30 end line: 32 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 130 unit: func() file: pkg/containerd/mock.go start line: 34 end line: 36 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 131 unit: func() file: pkg/containerd/mock.go start line: 38 end line: 40 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 132 unit: func() file: pkg/containerd/mock.go start line: 42 end line: 44 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 133 unit: func NewDefaultStore() file: pkg/containerd/store.go start line: 76 end line: 78 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 134 unit: func getListFilter() file: pkg/containerd/store.go start line: 338 end line: 340 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 135 unit: func getEventFilter() file: pkg/containerd/store.go start line: 342 end line: 344 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 136 unit: func() file: pkg/urlparser/parser.go start line: 23 end line: 25 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 137 unit: func New() file: pkg/urlparser/parser.go start line: 28 end line: 30 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 138 unit: func() file: pkg/peernet/network.go start line: 52 end line: 54 size: 3 LOC McCabe index: 1 number of parameters: 1