View Source Dagger.FunctionCall (dagger v0.15.1)

An active function call.

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.

Return an error from the function.

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

Types

t()

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

Functions

id(function_call)

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

A unique identifier for this FunctionCall.

input_args(function_call)

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

The argument values the function is being invoked with.

name(function_call)

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

The name of the function being called.

parent(function_call)

@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.

parent_name(function_call)

@spec parent_name(t()) :: {:ok, 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.

return_error(function_call, error)

@spec return_error(t(), Dagger.Error.t()) :: :ok | {:error, term()}

Return an error from the function.

return_value(function_call, value)

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

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