View Source Dagger.FunctionCall (dagger v0.10.0)

An active function call.

Link to this section Summary

Functions

A unique identifier for this FunctionCall.

The argument values the function is being invoked with.

The name of the function being called.

The value of the parent object of the function being called. If the function is top-level to the module, this is always an empty object.

The name of the parent object of the function being called. If the function is top-level to the module, this is the name of the module.

Set the return value of the function call to the provided value.

Link to this section Types

@type t() :: %Dagger.FunctionCall{client: term(), selection: term()}

Link to this section Functions

@spec id(t()) :: {:ok, Dagger.FunctionCallID.t()} | {:error, term()}

A unique identifier for this FunctionCall.

Link to this function

input_args(function_call)

View Source
@spec input_args(t()) :: {:ok, [Dagger.FunctionCallArgValue.t()]} | {:error, term()}

The argument values the function is being invoked with.

@spec name(t()) :: {:ok, Dagger.String.t()} | {:error, term()}

The name of the function being called.

@spec parent(t()) :: {:ok, Dagger.JSON.t()} | {:error, term()}

The value of the parent object of the function being called. If the function is top-level to the module, this is always an empty object.

Link to this function

parent_name(function_call)

View Source
@spec parent_name(t()) :: {:ok, Dagger.String.t()} | {:error, term()}

The name of the parent object of the function being called. If the function is top-level to the module, this is the name of the module.

Link to this function

return_value(function_call, value)

View Source
@spec return_value(t(), Dagger.JSON.t()) ::
  {:ok, Dagger.Void.t() | nil} | {:error, term()}

Set the return value of the function call to the provided value.

required-arguments

Required Arguments

  • value - JSON serialization of the return value.