dagger
▼
Project version
v0.18.2
v0.18.1
v0.18.0
v0.17.2
v0.17.1
v0.17.0
v0.16.3
v0.16.2
v0.16.1
v0.16.0
v0.15.4
v0.15.3
v0.15.2
v0.15.1
v0.15.0
v0.14.0
v0.13.7
v0.13.6
v0.13.5
v0.13.4
v0.13.3
v0.13.2
v0.13.1
v0.13.0
v0.12.7
v0.12.6
v0.12.5
v0.12.4
v0.12.3
v0.12.2
v0.12.1
v0.12.0
v0.11.9
v0.11.8
v0.11.7
v0.11.6
v0.11.5
v0.11.4
v0.11.3
v0.11.2
v0.11.1
v0.11.0
v0.10.3
v0.10.2
v0.10.1
v0.10.0
v0.9.11
v0.9.10
v0.9.9
v0.9.8
v0.9.7
v0.9.6
v0.9.5
v0.9.4
v0.9.3
v0.9.2
v0.9.1
v0.9.0
v0.8.8
v0.8.7
v0.8.6
v0.8.5
v0.8.4
v0.8.2
v0.0.0
Pages
Modules
Mix
Tasks
API Reference
Modules
Mix Tasks
Dagger
Sections
Prerequisite
Getting Started
Accessing GraphQL API
Module support
Summary
Functions
close/1
connect/1
connect!/1
with_connection/2
Dagger.Binding
Summary
Types
t/0
Functions
as_cache_volume/1
as_container/1
as_directory/1
as_env/1
as_file/1
as_git_ref/1
as_git_repository/1
as_llm/1
as_module/1
as_module_config_client/1
as_module_source/1
as_secret/1
as_service/1
as_socket/1
digest/1
id/1
name/1
type_name/1
Dagger.BindingID
Summary
Types
t/0
Dagger.BuildArg
Summary
Types
t/0
Dagger.CacheSharingMode
Summary
Types
t/0
Functions
locked/0
private/0
shared/0
Dagger.CacheVolume
Summary
Types
t/0
Functions
id/1
Dagger.CacheVolumeID
Summary
Types
t/0
Dagger.Client
Summary
Types
t/0
Functions
cache_volume/3
container/2
current_function_call/1
current_module/1
current_type_defs/1
default_platform/1
directory/1
engine/1
env/2
error/2
function/3
generated_code/2
git/3
host/1
http/3
llm/2
load_binding_from_id/2
load_cache_volume_from_id/2
load_container_from_id/2
load_current_module_from_id/2
load_directory_from_id/2
load_engine_cache_entry_from_id/2
load_engine_cache_entry_set_from_id/2
load_engine_cache_from_id/2
load_engine_from_id/2
load_enum_type_def_from_id/2
load_enum_value_type_def_from_id/2
load_env_from_id/2
load_env_variable_from_id/2
load_error_from_id/2
load_error_value_from_id/2
load_field_type_def_from_id/2
load_file_from_id/2
load_function_arg_from_id/2
load_function_call_arg_value_from_id/2
load_function_call_from_id/2
load_function_from_id/2
load_generated_code_from_id/2
load_git_ref_from_id/2
load_git_repository_from_id/2
load_host_from_id/2
load_input_type_def_from_id/2
load_interface_type_def_from_id/2
load_label_from_id/2
load_list_type_def_from_id/2
load_llm_from_id/2
load_llm_token_usage_from_id/2
load_module_config_client_from_id/2
load_module_from_id/2
load_module_source_from_id/2
load_object_type_def_from_id/2
load_port_from_id/2
load_scalar_type_def_from_id/2
load_sdk_config_from_id/2
load_secret_from_id/2
load_secret_from_name/3
load_service_from_id/2
load_socket_from_id/2
load_source_map_from_id/2
load_terminal_from_id/2
load_type_def_from_id/2
module/1
module_source/3
secret/2
set_secret/3
source_map/4
type_def/1
version/1
Dagger.Container
Summary
Types
t/0
Functions
as_service/2
as_tarball/2
build/3
default_args/1
directory/3
entrypoint/1
env_variable/2
env_variables/1
exit_code/1
experimental_with_all_gpus/1
experimental_with_gpu/2
export/3
exposed_ports/1
file/3
from/2
id/1
image_ref/1
import/3
label/2
labels/1
mounts/1
platform/1
publish/3
rootfs/1
stderr/1
stdout/1
sync/1
terminal/2
up/2
user/1
with_annotation/3
with_default_args/2
with_default_terminal_cmd/3
with_directory/4
with_entrypoint/3
with_env_variable/4
with_exec/3
with_exposed_port/3
with_file/4
with_files/4
with_label/3
with_mounted_cache/4
with_mounted_directory/4
with_mounted_file/4
with_mounted_secret/4
with_mounted_temp/3
with_new_file/4
with_registry_auth/4
with_rootfs/2
with_secret_variable/3
with_service_binding/3
with_unix_socket/4
with_user/2
with_workdir/3
without_annotation/2
without_default_args/1
without_directory/3
without_entrypoint/2
without_env_variable/2
without_exposed_port/3
without_file/3
without_files/3
without_label/2
without_mount/3
without_registry_auth/2
without_secret_variable/2
without_unix_socket/3
without_user/1
without_workdir/1
workdir/1
Dagger.ContainerID
Summary
Types
t/0
Dagger.Core.Client
Summary
Functions
execute/2
query/2
Dagger.Core.GraphQL.Response
Summary
Functions
from_map/1
Dagger.Core.GraphQLClient.Httpc
Summary
Functions
request/4
Dagger.CurrentModule
Summary
Types
t/0
Functions
id/1
name/1
source/1
workdir/3
workdir_file/2
Dagger.CurrentModuleID
Summary
Types
t/0
Dagger.Directory
Summary
Types
t/0
Functions
as_git/1
as_module/2
as_module_source/2
diff/2
digest/1
directory/2
docker_build/2
entries/2
export/3
file/2
filter/2
glob/2
id/1
name/1
sync/1
terminal/2
with_directory/4
with_file/4
with_files/4
with_new_directory/3
with_new_file/4
with_timestamps/2
without_directory/2
without_file/2
without_files/2
Dagger.DirectoryID
Summary
Types
t/0
Dagger.Engine
Summary
Types
t/0
Functions
id/1
local_cache/1
Dagger.EngineCache
Summary
Types
t/0
Functions
entry_set/2
id/1
keep_bytes/1
max_used_space/1
min_free_space/1
prune/1
reserved_space/1
Dagger.EngineCacheEntry
Summary
Types
t/0
Functions
actively_used/1
created_time_unix_nano/1
description/1
disk_space_bytes/1
id/1
most_recent_use_time_unix_nano/1
Dagger.EngineCacheEntryID
Summary
Types
t/0
Dagger.EngineCacheEntrySet
Summary
Types
t/0
Functions
disk_space_bytes/1
entries/1
entry_count/1
id/1
Dagger.EngineCacheEntrySetID
Summary
Types
t/0
Dagger.EngineCacheID
Summary
Types
t/0
Dagger.EngineID
Summary
Types
t/0
Dagger.EnumTypeDef
Summary
Types
t/0
Functions
description/1
id/1
name/1
source_map/1
source_module_name/1
values/1
Dagger.EnumTypeDefID
Summary
Types
t/0
Dagger.EnumValueTypeDef
Summary
Types
t/0
Functions
description/1
id/1
name/1
source_map/1
Dagger.EnumValueTypeDefID
Summary
Types
t/0
Dagger.Env
Summary
Types
t/0
Functions
id/1
input/2
inputs/1
output/2
outputs/1
with_cache_volume_input/4
with_cache_volume_output/3
with_container_input/4
with_container_output/3
with_directory_input/4
with_directory_output/3
with_env_input/4
with_env_output/3
with_file_input/4
with_file_output/3
with_git_ref_input/4
with_git_ref_output/3
with_git_repository_input/4
with_git_repository_output/3
with_llm_input/4
with_llm_output/3
with_module_config_client_input/4
with_module_config_client_output/3
with_module_input/4
with_module_output/3
with_module_source_input/4
with_module_source_output/3
with_secret_input/4
with_secret_output/3
with_service_input/4
with_service_output/3
with_socket_input/4
with_socket_output/3
with_string_input/4
Dagger.EnvID
Summary
Types
t/0
Dagger.EnvVariable
Summary
Types
t/0
Functions
id/1
name/1
value/1
Dagger.EnvVariableID
Summary
Types
t/0
Dagger.Error
Summary
Types
t/0
Functions
id/1
message/1
values/1
with_value/3
Dagger.ErrorID
Summary
Types
t/0
Dagger.ErrorValue
Summary
Types
t/0
Functions
id/1
name/1
value/1
Dagger.ErrorValueID
Summary
Types
t/0
Dagger.FieldTypeDef
Summary
Types
t/0
Functions
description/1
id/1
name/1
source_map/1
type_def/1
Dagger.FieldTypeDefID
Summary
Types
t/0
Dagger.File
Summary
Types
t/0
Functions
contents/1
digest/2
export/3
id/1
name/1
size/1
sync/1
with_name/2
with_timestamps/2
Dagger.FileID
Summary
Types
t/0
Dagger.Function
Summary
Types
t/0
Functions
args/1
description/1
id/1
name/1
return_type/1
source_map/1
with_arg/4
with_description/2
with_source_map/2
Dagger.FunctionArg
Summary
Types
t/0
Functions
default_path/1
default_value/1
description/1
id/1
ignore/1
name/1
source_map/1
type_def/1
Dagger.FunctionArgID
Summary
Types
t/0
Dagger.FunctionCall
Summary
Types
t/0
Functions
id/1
input_args/1
name/1
parent/1
parent_name/1
return_error/2
return_value/2
Dagger.FunctionCallArgValue
Summary
Types
t/0
Functions
id/1
name/1
value/1
Dagger.FunctionCallArgValueID
Summary
Types
t/0
Dagger.FunctionCallID
Summary
Types
t/0
Dagger.FunctionID
Summary
Types
t/0
Dagger.GeneratedCode
Summary
Types
t/0
Functions
code/1
id/1
vcs_generated_paths/1
vcs_ignored_paths/1
with_vcs_generated_paths/2
with_vcs_ignored_paths/2
Dagger.GeneratedCodeID
Summary
Types
t/0
Dagger.GitRef
Summary
Types
t/0
Functions
commit/1
id/1
tree/2
Dagger.GitRefID
Summary
Types
t/0
Dagger.GitRepository
Summary
Types
t/0
Functions
branch/2
commit/2
head/1
id/1
ref/2
tag/2
tags/2
with_auth_header/2
with_auth_token/2
Dagger.GitRepositoryID
Summary
Types
t/0
Dagger.Host
Summary
Types
t/0
Functions
directory/3
file/2
id/1
service/3
set_secret_file/3
tunnel/3
unix_socket/2
Dagger.HostID
Summary
Types
t/0
Dagger.ImageLayerCompression
Summary
Types
t/0
Functions
e_star_gz/0
gzip/0
uncompressed/0
zstd/0
Dagger.ImageMediaTypes
Summary
Types
t/0
Functions
docker_media_types/0
oci_media_types/0
Dagger.InputTypeDef
Summary
Types
t/0
Functions
fields/1
id/1
name/1
Dagger.InputTypeDefID
Summary
Types
t/0
Dagger.InterfaceTypeDef
Summary
Types
t/0
Functions
description/1
functions/1
id/1
name/1
source_map/1
source_module_name/1
Dagger.InterfaceTypeDefID
Summary
Types
t/0
Dagger.JSON
Summary
Types
t/0
Dagger.LLM
Summary
Types
t/0
Functions
attempt/2
bind_result/2
env/1
history/1
history_json/1
id/1
last_reply/1
loop/1
model/1
provider/1
sync/1
token_usage/1
tools/1
with_env/2
with_model/2
with_prompt/2
with_prompt_file/2
with_system_prompt/2
Dagger.LLMID
Summary
Types
t/0
Dagger.LLMTokenUsage
Summary
Types
t/0
Functions
id/1
input_tokens/1
output_tokens/1
total_tokens/1
Dagger.LLMTokenUsageID
Summary
Types
t/0
Dagger.Label
Summary
Types
t/0
Functions
id/1
name/1
value/1
Dagger.LabelID
Summary
Types
t/0
Dagger.ListTypeDef
Summary
Types
t/0
Functions
element_type_def/1
id/1
Dagger.ListTypeDefID
Summary
Types
t/0
Dagger.Mod.Decoder
Summary
Functions
decode/3
Dagger.Mod.Encoder
Summary
Functions
validate_and_encode/2
Dagger.Mod.Object
Sections
Declare an object
Declare a function
Summary
Types
function_def/0
function_name/0
Functions
decoder_hint/1
defn/2
field/3
get_function_doc/2
get_module_doc/1
object/1
Dagger.Module
Summary
Types
t/0
Functions
dependencies/1
description/1
enums/1
generated_context_directory/1
id/1
interfaces/1
name/1
objects/1
runtime/1
sdk/1
serve/1
source/1
sync/1
with_description/2
with_enum/2
with_interface/2
with_object/2
Dagger.ModuleConfigClient
Summary
Types
t/0
Functions
dev/1
directory/1
generator/1
id/1
Dagger.ModuleConfigClientID
Summary
Types
t/0
Dagger.ModuleID
Summary
Types
t/0
Dagger.ModuleSource
Summary
Types
t/0
Functions
as_module/1
as_string/1
clone_ref/1
commit/1
config_clients/1
config_exists/1
context_directory/1
dependencies/1
digest/1
directory/2
engine_version/1
generated_context_directory/1
html_repo_url/1
html_url/1
id/1
kind/1
local_context_directory_path/1
module_name/1
module_original_name/1
original_subpath/1
pin/1
repo_root_path/1
sdk/1
source_root_subpath/1
source_subpath/1
sync/1
version/1
with_client/4
with_dependencies/2
with_engine_version/2
with_includes/2
with_name/2
with_sdk/2
with_source_subpath/2
with_update_dependencies/2
without_dependencies/2
Dagger.ModuleSourceID
Summary
Types
t/0
Dagger.ModuleSourceKind
Summary
Types
t/0
Functions
dir_source/0
git_source/0
local_source/0
Dagger.NetworkProtocol
Summary
Types
t/0
Functions
tcp/0
udp/0
Dagger.ObjectTypeDef
Summary
Types
t/0
Functions
constructor/1
description/1
fields/1
functions/1
id/1
name/1
source_map/1
source_module_name/1
Dagger.ObjectTypeDefID
Summary
Types
t/0
Dagger.PipelineLabel
Summary
Types
t/0
Dagger.Platform
Summary
Types
t/0
Dagger.Port
Summary
Types
t/0
Functions
description/1
experimental_skip_healthcheck/1
id/1
port/1
protocol/1
Dagger.PortForward
Summary
Types
t/0
Dagger.PortID
Summary
Types
t/0
Dagger.ReturnType
Summary
Types
t/0
Functions
any/0
failure/0
success/0
Dagger.SDKConfig
Summary
Types
t/0
Functions
id/1
source/1
Dagger.SDKConfigID
Summary
Types
t/0
Dagger.ScalarTypeDef
Summary
Types
t/0
Functions
description/1
id/1
name/1
source_module_name/1
Dagger.ScalarTypeDefID
Summary
Types
t/0
Dagger.Secret
Summary
Types
t/0
Functions
id/1
name/1
plaintext/1
uri/1
Dagger.SecretID
Summary
Types
t/0
Dagger.Service
Summary
Types
t/0
Functions
endpoint/2
hostname/1
id/1
ports/1
start/1
stop/2
up/2
with_hostname/2
Dagger.ServiceID
Summary
Types
t/0
Dagger.Socket
Summary
Types
t/0
Functions
id/1
Dagger.SocketID
Summary
Types
t/0
Dagger.SourceMap
Summary
Types
t/0
Functions
column/1
filename/1
id/1
line/1
module/1
Dagger.SourceMapID
Summary
Types
t/0
Dagger.Terminal
Summary
Types
t/0
Functions
id/1
sync/1
Dagger.TerminalID
Summary
Types
t/0
Dagger.TypeDef
Summary
Types
t/0
Functions
as_enum/1
as_input/1
as_interface/1
as_list/1
as_object/1
as_scalar/1
id/1
kind/1
optional/1
with_constructor/2
with_enum/3
with_enum_value/3
with_field/4
with_function/2
with_interface/3
with_kind/2
with_list_of/2
with_object/3
with_optional/2
with_scalar/3
Dagger.TypeDefID
Summary
Types
t/0
Dagger.TypeDefKind
Summary
Types
t/0
Functions
boolean_kind/0
enum_kind/0
float_kind/0
input_kind/0
integer_kind/0
interface_kind/0
list_kind/0
object_kind/0
scalar_kind/0
string_kind/0
void_kind/0
Dagger.Void
Summary
Types
t/0
Exceptions
Dagger.Core.ExecError
Summary
Functions
from_map/1
with_original_error/2
Dagger.Core.GraphQL.Response.Error
Summary
Functions
from_map/1
Dagger.Mod.TypeMismatchError
mix dagger.entrypoint.invoke
Sections
Arguments
Summary
Functions
run/1
Search documentation of dagger
Settings
Dagger.Mod.TypeMismatchError
exception
(dagger v0.18.2)
View Source
An error raise when the value is incompatible with type.