View Source Dagger.FunctionCall (dagger v0.8.8)

FunctionCall

Link to this section Summary

Functions

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. The value should be a string of the JSON serialization of the return value.

Link to this section Types

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

Link to this section Functions

Link to this function

input_args(function_call)

View Source
@spec input_args(t()) ::
  {:ok, [Dagger.FunctionCallArgValue.t()] | nil} | {: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. The value should be a string of the JSON serialization of the return value.

required-arguments

Required Arguments

  • value -