CreateOptions func(c *Controller, opt *JobOptions, ctx *common.RequestContext) error
(c *Controller, opt interface{}, ctx *common.RequestContext)
| 452 | // CreateOptions func(c *Controller, opt *JobOptions, ctx *common.RequestContext) error |
| 453 | |
| 454 | func SyncCreateOptions(c *Controller, opt interface{}, ctx *common.RequestContext) error { |
| 455 | options := opt.(*v1alpha1.SyncJobOptions) |
| 456 | err := c.CreateSyncJobOptions(options, ctx) |
| 457 | if err != nil { |
| 458 | return err |
| 459 | } |
| 460 | return nil |
| 461 | } |
| 462 | |
| 463 | func RmrCreateOptions(c *Controller, opt interface{}, ctx *common.RequestContext) error { |
| 464 | options := opt.(*v1alpha1.RmrJobOptions) |
nothing calls this directly
no test coverage detected