id: 1 unit: func() file: pkg/agent/agent.go start line: 300 end line: 394 size: 75 LOC McCabe index: 17 number of parameters: 1 id: 2 unit: func() file: pkg/controller/manager.go start line: 83 end line: 173 size: 67 LOC McCabe index: 15 number of parameters: 1 id: 3 unit: func main() file: main.go start line: 26 end line: 78 size: 44 LOC McCabe index: 13 number of parameters: 0 id: 4 unit: func() file: pkg/controller/manager.go start line: 182 end line: 229 size: 38 LOC McCabe index: 10 number of parameters: 1 id: 5 unit: func New() file: pkg/agent/agent.go start line: 73 end line: 115 size: 37 LOC McCabe index: 7 number of parameters: 3 id: 6 unit: func newPolicyCheck() file: pkg/controller/policy.go start line: 32 end line: 72 size: 36 LOC McCabe index: 7 number of parameters: 2 id: 7 unit: func() file: pkg/controller/manager.go start line: 278 end line: 317 size: 35 LOC McCabe index: 12 number of parameters: 1 id: 8 unit: func() file: pkg/agent/agent.go start line: 408 end line: 455 size: 30 LOC McCabe index: 6 number of parameters: 1 id: 9 unit: func() file: pkg/platform/updog/updog.go start line: 44 end line: 79 size: 30 LOC McCabe index: 6 number of parameters: 1 id: 10 unit: func() file: pkg/controller/manager.go start line: 244 end line: 275 size: 29 LOC McCabe index: 6 number of parameters: 1 id: 11 unit: func WithSignalCancel() file: pkg/sigcontext/sigcontext.go start line: 16 end line: 49 size: 28 LOC McCabe index: 5 number of parameters: 2 id: 12 unit: func() file: pkg/controller/policy.go start line: 84 end line: 122 size: 28 LOC McCabe index: 7 number of parameters: 1 id: 13 unit: func() file: pkg/nodestream/config.go start line: 37 end line: 71 size: 26 LOC McCabe index: 6 number of parameters: 1 id: 14 unit: func() file: pkg/platform/api/api.go start line: 102 end line: 131 size: 26 LOC McCabe index: 8 number of parameters: 1 id: 15 unit: func() file: pkg/intent/intent.go start line: 99 end line: 133 size: 22 LOC McCabe index: 14 number of parameters: 1 id: 16 unit: func() file: pkg/platform/api/platform.go start line: 83 end line: 106 size: 21 LOC McCabe index: 8 number of parameters: 1 id: 17 unit: func() file: pkg/platform/api/platform.go start line: 108 end line: 132 size: 21 LOC McCabe index: 7 number of parameters: 1 id: 18 unit: func() file: pkg/agent/agent.go start line: 127 end line: 150 size: 20 LOC McCabe index: 3 number of parameters: 1 id: 19 unit: func PostMetadata() file: pkg/k8sutil/marker.go start line: 15 end line: 34 size: 20 LOC McCabe index: 4 number of parameters: 3 id: 20 unit: func() file: pkg/agent/agent.go start line: 154 end line: 175 size: 19 LOC McCabe index: 5 number of parameters: 1 id: 21 unit: func() file: pkg/intent/intent.go start line: 137 end line: 158 size: 18 LOC McCabe index: 6 number of parameters: 1 id: 22 unit: func() file: pkg/agent/agent.go start line: 252 end line: 270 size: 16 LOC McCabe index: 4 number of parameters: 1 id: 23 unit: func() file: pkg/agent/agent.go start line: 272 end line: 288 size: 16 LOC McCabe index: 4 number of parameters: 1 id: 24 unit: func() file: pkg/platform/api/api.go start line: 152 end line: 168 size: 16 LOC McCabe index: 4 number of parameters: 1 id: 25 unit: func() file: pkg/platform/api/api.go start line: 182 end line: 198 size: 16 LOC McCabe index: 4 number of parameters: 1 id: 26 unit: func Predicate() file: pkg/intent/internal/callcheck/check.go start line: 10 end line: 25 size: 16 LOC McCabe index: 4 number of parameters: 2 id: 27 unit: func() file: pkg/agent/agent.go start line: 208 end line: 230 size: 15 LOC McCabe index: 4 number of parameters: 1 id: 28 unit: func() file: pkg/platform/api/platform.go start line: 63 end line: 81 size: 15 LOC McCabe index: 5 number of parameters: 1 id: 29 unit: func newManager() file: pkg/controller/manager.go start line: 66 end line: 81 size: 15 LOC McCabe index: 2 number of parameters: 3 id: 30 unit: func() file: pkg/platform/api/platform.go start line: 134 end line: 149 size: 14 LOC McCabe index: 4 number of parameters: 1 id: 31 unit: func() file: pkg/intent/intent.go start line: 61 end line: 81 size: 14 LOC McCabe index: 4 number of parameters: 1 id: 32 unit: func() file: pkg/intent/intent.go start line: 167 end line: 185 size: 14 LOC McCabe index: 6 number of parameters: 1 id: 33 unit: func OverwriteFrom() file: pkg/marker/container.go start line: 21 end line: 35 size: 14 LOC McCabe index: 3 number of parameters: 2 id: 34 unit: func() file: pkg/agent/post_tracker.go start line: 30 end line: 43 size: 13 LOC McCabe index: 4 number of parameters: 1 id: 35 unit: func() file: pkg/agent/agent.go start line: 234 end line: 248 size: 13 LOC McCabe index: 1 number of parameters: 1 id: 36 unit: func() file: pkg/agent/agent.go start line: 475 end line: 487 size: 13 LOC McCabe index: 2 number of parameters: 1 id: 37 unit: func() file: pkg/platform/updog/platform.go start line: 63 end line: 75 size: 13 LOC McCabe index: 3 number of parameters: 1 id: 38 unit: func() file: pkg/intent/intent.go start line: 245 end line: 259 size: 13 LOC McCabe index: 4 number of parameters: 1 id: 39 unit: func() file: pkg/controller/controller.go start line: 30 end line: 51 size: 13 LOC McCabe index: 1 number of parameters: 1 id: 40 unit: func ret() file: pkg/internal/intents/intents.go start line: 15 end line: 28 size: 13 LOC McCabe index: 3 number of parameters: 3 id: 41 unit: func() file: pkg/platform/api/platform.go start line: 36 end line: 49 size: 12 LOC McCabe index: 3 number of parameters: 1 id: 42 unit: func newAPIClient() file: pkg/platform/api/api.go start line: 85 end line: 100 size: 12 LOC McCabe index: 1 number of parameters: 0 id: 43 unit: func() file: pkg/platform/updog/updog.go start line: 126 end line: 138 size: 12 LOC McCabe index: 3 number of parameters: 1 id: 44 unit: func() file: pkg/controller/manager_kubernetes.go start line: 22 end line: 33 size: 12 LOC McCabe index: 2 number of parameters: 1 id: 45 unit: func() file: pkg/controller/manager_kubernetes.go start line: 68 end line: 79 size: 12 LOC McCabe index: 2 number of parameters: 1 id: 46 unit: func() file: pkg/agent/agent.go start line: 192 end line: 204 size: 11 LOC McCabe index: 3 number of parameters: 1 id: 47 unit: func() file: pkg/intent/intent.go start line: 189 end line: 199 size: 11 LOC McCabe index: 2 number of parameters: 1 id: 48 unit: func Given() file: pkg/intent/intent.go start line: 318 end line: 330 size: 11 LOC McCabe index: 1 number of parameters: 1 id: 49 unit: func Level() file: pkg/logging/logrus.go start line: 65 end line: 75 size: 11 LOC McCabe index: 2 number of parameters: 1 id: 50 unit: func NewDefaultConfig() file: pkg/k8sutil/config.go start line: 13 end line: 24 size: 11 LOC McCabe index: 2 number of parameters: 0 id: 51 unit: func() file: pkg/agent/agent.go start line: 178 end line: 189 size: 10 LOC McCabe index: 3 number of parameters: 1 id: 52 unit: func Ping() file: pkg/platform/interface.go start line: 50 end line: 59 size: 10 LOC McCabe index: 3 number of parameters: 1 id: 53 unit: func() file: pkg/agent/agent.go start line: 117 end line: 125 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 54 unit: func() file: pkg/platform/updog/platform.go start line: 38 end line: 46 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 55 unit: func() file: pkg/platform/updog/platform.go start line: 50 end line: 58 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 56 unit: func() file: pkg/intent/intent.go start line: 280 end line: 289 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 57 unit: func Equivalent() file: pkg/intent/intent.go start line: 305 end line: 314 size: 9 LOC McCabe index: 6 number of parameters: 2 id: 58 unit: func WithUpdateAvailable() file: pkg/internal/intents/intents.go start line: 55 end line: 63 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 59 unit: func New() file: pkg/nodestream/informer.go start line: 22 end line: 32 size: 8 LOC McCabe index: 1 number of parameters: 4 id: 60 unit: func() file: pkg/agent/agent.go start line: 396 end line: 404 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 61 unit: func() file: pkg/platform/api/api.go start line: 133 end line: 140 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 62 unit: func() file: pkg/platform/api/api.go start line: 142 end line: 149 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 63 unit: func() file: pkg/intent/intent.go start line: 40 end line: 47 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 64 unit: func() file: pkg/intent/intent.go start line: 222 end line: 229 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 65 unit: func WithBusy() file: pkg/internal/intents/intents.go start line: 45 end line: 52 size: 8 LOC McCabe index: 2 number of parameters: 0 id: 66 unit: func NormalizeNodeName() file: pkg/internal/intents/intents.go start line: 67 end line: 74 size: 8 LOC McCabe index: 3 number of parameters: 2 id: 67 unit: func NextAs() file: pkg/internal/intents/intents.go start line: 84 end line: 91 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 68 unit: func runController() file: main.go start line: 80 end line: 87 size: 8 LOC McCabe index: 2 number of parameters: 3 id: 69 unit: func runAgent() file: main.go start line: 89 end line: 97 size: 8 LOC McCabe index: 2 number of parameters: 3 id: 70 unit: func() file: pkg/platform/api/platform.go start line: 27 end line: 34 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 71 unit: func() file: pkg/platform/api/api.go start line: 170 end line: 176 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 72 unit: func targetID() file: pkg/platform/updog/platform.go start line: 77 end line: 83 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 73 unit: func() file: pkg/platform/updog/host.go start line: 48 end line: 54 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 74 unit: func() file: pkg/platform/updog/updog.go start line: 101 end line: 108 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 75 unit: func newUpdogHost() file: pkg/platform/updog/updog.go start line: 110 end line: 117 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 76 unit: func calculateNext() file: pkg/intent/projection.go start line: 25 end line: 32 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 77 unit: func New() file: pkg/controller/controller.go start line: 21 end line: 27 size: 7 LOC McCabe index: 1 number of parameters: 3 id: 78 unit: func() file: pkg/controller/manager_kubernetes.go start line: 35 end line: 41 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 79 unit: func() file: pkg/controller/manager_kubernetes.go start line: 51 end line: 57 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 80 unit: func DefaultKubernetesClient() file: pkg/k8sutil/config.go start line: 26 end line: 33 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 81 unit: func Setter() file: pkg/internal/testoutput/testoutput.go start line: 30 end line: 36 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 82 unit: func WithContext() file: pkg/workgroup/workgroup.go start line: 14 end line: 19 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 83 unit: func() file: pkg/nodestream/informer.go start line: 38 end line: 43 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 84 unit: func() file: pkg/nodestream/config.go start line: 73 end line: 78 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 85 unit: func activeIntent() file: pkg/agent/agent.go start line: 292 end line: 297 size: 6 LOC McCabe index: 6 number of parameters: 1 id: 86 unit: func() file: pkg/platform/api/platform.go start line: 55 end line: 61 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 87 unit: func() file: pkg/platform/updog/updog.go start line: 119 end line: 124 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 88 unit: func() file: pkg/platform/updog/updog.go start line: 147 end line: 152 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 89 unit: func() file: pkg/platform/updog/updog.go start line: 154 end line: 159 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 90 unit: func() file: pkg/intent/intent.go start line: 271 end line: 276 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 91 unit: func() file: pkg/intent/intent.go start line: 291 end line: 296 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 92 unit: func isLowPriority() file: pkg/controller/manager.go start line: 175 end line: 180 size: 6 LOC McCabe index: 4 number of parameters: 1 id: 93 unit: func() file: pkg/controller/manager.go start line: 233 end line: 238 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 94 unit: func New() file: pkg/logging/logrus.go start line: 48 end line: 54 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 95 unit: func Set() file: pkg/logging/logrus.go start line: 57 end line: 62 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 96 unit: func Intent() file: pkg/internal/logfields/intent.go start line: 9 end line: 14 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 97 unit: func Logger() file: pkg/internal/testoutput/testoutput.go start line: 19 end line: 24 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 98 unit: func Revert() file: pkg/internal/testoutput/testoutput.go start line: 39 end line: 44 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 99 unit: func ProcessAttrs() file: pkg/bottlerocket/exec.go start line: 11 end line: 15 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 100 unit: func() file: pkg/workgroup/workgroup.go start line: 21 end line: 25 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 101 unit: func() file: pkg/nodestream/handler.go start line: 17 end line: 21 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 102 unit: func() file: pkg/nodestream/handler.go start line: 22 end line: 26 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 103 unit: func() file: pkg/nodestream/handler.go start line: 27 end line: 31 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 104 unit: func newPostTracker() file: pkg/agent/post_tracker.go start line: 16 end line: 20 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 105 unit: func() file: pkg/agent/post_tracker.go start line: 23 end line: 27 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 106 unit: func() file: pkg/agent/post_tracker.go start line: 46 end line: 50 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 107 unit: func() file: pkg/agent/agent.go start line: 461 end line: 465 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 108 unit: func() file: pkg/platform/updog/updog.go start line: 140 end line: 145 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 109 unit: func() file: pkg/intent/intent.go start line: 51 end line: 55 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 110 unit: func() file: pkg/intent/intent.go start line: 207 end line: 211 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 111 unit: func() file: pkg/intent/intent.go start line: 231 end line: 235 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 112 unit: func() file: pkg/intent/intent.go start line: 263 end line: 267 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 113 unit: func WithReset() file: pkg/internal/intents/intents.go start line: 31 end line: 35 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 114 unit: func WithNodeName() file: pkg/internal/intents/intents.go start line: 38 end line: 42 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 115 unit: func Pending() file: pkg/internal/intents/intents.go start line: 77 end line: 81 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 116 unit: func() file: pkg/nodestream/informer.go start line: 45 end line: 48 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 117 unit: func() file: pkg/nodestream/informer.go start line: 50 end line: 53 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 118 unit: func() file: pkg/nodestream/informer.go start line: 55 end line: 58 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 119 unit: func() file: pkg/platform/api/api.go start line: 200 end line: 203 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 120 unit: func() file: pkg/platform/api/api.go start line: 205 end line: 208 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 121 unit: func() file: pkg/platform/api/api.go start line: 210 end line: 213 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 122 unit: func() file: pkg/platform/api/api.go start line: 215 end line: 218 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 123 unit: func() file: pkg/platform/updog/platform.go start line: 22 end line: 25 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 124 unit: func() file: pkg/platform/updog/platform.go start line: 29 end line: 32 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 125 unit: func() file: pkg/platform/updog/updog.go start line: 85 end line: 88 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 126 unit: func() file: pkg/platform/updog/updog.go start line: 90 end line: 93 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 127 unit: func() file: pkg/platform/updog/updog.go start line: 95 end line: 99 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 128 unit: func() file: pkg/intent/intent.go start line: 84 end line: 87 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 129 unit: func() file: pkg/intent/intent.go start line: 91 end line: 94 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 130 unit: func() file: pkg/intent/intent.go start line: 214 end line: 217 size: 4 LOC McCabe index: 5 number of parameters: 1 id: 131 unit: func() file: pkg/intent/intent.go start line: 237 end line: 240 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 132 unit: func isClusterActive() file: pkg/controller/policy.go start line: 75 end line: 78 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 133 unit: func successfulUpdate() file: pkg/controller/manager.go start line: 319 end line: 322 size: 4 LOC McCabe index: 5 number of parameters: 1 id: 134 unit: func() file: pkg/internal/testoutput/testoutput.go start line: 50 end line: 53 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 135 unit: func() file: pkg/workgroup/workgroup.go start line: 27 end line: 29 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 136 unit: func() file: pkg/nodestream/informer.go start line: 34 end line: 36 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 137 unit: func() file: pkg/agent/progression.go start line: 9 end line: 11 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 138 unit: func() file: pkg/agent/progression.go start line: 13 end line: 15 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 139 unit: func() file: pkg/agent/progression.go start line: 17 end line: 19 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 140 unit: func() file: pkg/agent/progression.go start line: 21 end line: 23 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 141 unit: func New() file: pkg/platform/api/platform.go start line: 19 end line: 21 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 142 unit: func() file: pkg/platform/api/api.go start line: 38 end line: 40 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 143 unit: func New() file: pkg/platform/updog/platform.go start line: 17 end line: 19 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 144 unit: func() file: pkg/platform/updog/host.go start line: 33 end line: 35 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 145 unit: func() file: pkg/platform/updog/host.go start line: 67 end line: 69 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 146 unit: func() file: pkg/platform/updog/updog.go start line: 81 end line: 83 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 147 unit: func() file: pkg/platform/updog/noop.go start line: 5 end line: 7 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 148 unit: func() file: pkg/platform/noop/update.go start line: 5 end line: 7 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 149 unit: func() file: pkg/intent/intent.go start line: 34 end line: 36 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 150 unit: func() file: pkg/intent/intent.go start line: 161 end line: 163 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 151 unit: func() file: pkg/intent/intent.go start line: 203 end line: 205 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 152 unit: func() file: pkg/intent/intent.go start line: 300 end line: 302 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 153 unit: func() file: pkg/controller/manager_kubernetes.go start line: 43 end line: 45 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 154 unit: func() file: pkg/controller/manager_kubernetes.go start line: 47 end line: 49 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 155 unit: func() file: pkg/controller/manager_kubernetes.go start line: 59 end line: 61 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 156 unit: func() file: pkg/controller/manager.go start line: 240 end line: 242 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 157 unit: func() file: pkg/controller/manager.go start line: 325 end line: 327 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 158 unit: func() file: pkg/controller/manager.go start line: 330 end line: 332 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 159 unit: func() file: pkg/controller/manager.go start line: 335 end line: 337 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 160 unit: func New() file: pkg/internal/testoutput/testoutput.go start line: 14 end line: 16 size: 3 LOC McCabe index: 1 number of parameters: 1