MCPcopy Create free account
hub / github.com/convox/rack / ProcessRun

Method ProcessRun

sdk/methods.go:623–636  ·  view source on GitHub ↗
(app string, service string, opts structs.ProcessRunOptions)

Source from the content-addressed store, hash-verified

621}
622
623func (c *Client) ProcessRun(app string, service string, opts structs.ProcessRunOptions) (*structs.Process, error) {
624 var err error
625
626 ro, err := stdsdk.MarshalOptions(opts)
627 if err != nil {
628 return nil, err
629 }
630
631 var v *structs.Process
632
633 err = c.Post(fmt.Sprintf("/apps/%s/services/%s/processes", app, service), ro, &v)
634
635 return v, err
636}
637
638func (c *Client) ProcessStop(app string, pid string) error {
639 var err error

Callers

nothing calls this directly

Calls 1

PostMethod · 0.80

Tested by

no test coverage detected