MCPcopy Create free account
hub / github.com/PaddlePaddle/PaddleCloud / SyncCreateOptions

Function SyncCreateOptions

pkg/sampleset/ctrls/base_controller.go:454–461  ·  view source on GitHub ↗

CreateOptions func(c *Controller, opt *JobOptions, ctx *common.RequestContext) error

(c *Controller, opt interface{}, ctx *common.RequestContext)

Source from the content-addressed store, hash-verified

452// CreateOptions func(c *Controller, opt *JobOptions, ctx *common.RequestContext) error
453
454func 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
463func RmrCreateOptions(c *Controller, opt interface{}, ctx *common.RequestContext) error {
464 options := opt.(*v1alpha1.RmrJobOptions)

Callers

nothing calls this directly

Calls 1

CreateSyncJobOptionsMethod · 0.65

Tested by

no test coverage detected