package calls
import "github.com/mesos/mesos-go/api/v1/lib/executor/calls"
Index ¶
- func CallNoData(ctx context.Context, caller Caller, call *executor.Call) error
- func Executor(id string) executor.CallOpt
- func Framework(id string) executor.CallOpt
- func Message(data []byte) *executor.Call
- func Subscribe(unackdTasks []mesos.TaskInfo, unackdUpdates []executor.Call_Update) *executor.Call
- func Update(status mesos.TaskStatus) *executor.Call
- type Caller
- type CallerFunc
Functions ¶
func CallNoData ¶
CallNoData is a convenience func that executes the given Call using the provided Caller and always drops the response data.
func Executor ¶
Executor sets a executor.Call's ExecutorID
func Framework ¶
Framework sets a executor.Call's FrameworkID
func Message ¶
Message returns an executor call with the given parameters.
func Subscribe ¶
func Subscribe(unackdTasks []mesos.TaskInfo, unackdUpdates []executor.Call_Update) *executor.Call
Subscribe returns an executor call with the given parameters.
func Update ¶
Update returns an executor call with the given parameters.
Types ¶
type Caller ¶
type Caller interface { // Call issues a call to Mesos and properly manages call-specific HTTP response headers & data. Call(context.Context, *executor.Call) (mesos.Response, error) }
Caller is the public interface this framework scheduler's should consume
type CallerFunc ¶
CallerFunc is the functional adaptation of the Caller interface
func (CallerFunc) Call ¶
Call implements the Caller interface for CallerFunc
Source Files ¶
calls.go calls_generated.go gen.go
- Version
- v0.0.4
- Published
- Sep 13, 2017
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 29 minutes ago –
Tools for package owners.