(svc appServices, parent commandParent)
| 17 | } |
| 18 | |
| 19 | func (c *commandServerThrottleSet) setup(svc appServices, parent commandParent) { |
| 20 | cmd := parent.Command("set", "Set throttling parameters for a running server") |
| 21 | c.sf.setup(svc, cmd) |
| 22 | c.cts.setup(cmd) |
| 23 | |
| 24 | cmd.Action(svc.serverAction(&c.sf, c.run)) |
| 25 | } |
| 26 | |
| 27 | func (c *commandServerThrottleSet) run(ctx context.Context, cli *apiclient.KopiaAPIClient) error { |
| 28 | var limits throttling.Limits |
nothing calls this directly
no test coverage detected