Packages

Gleam SDK for Dagger — type-safe pipelines via GraphQL codegen

Current section

Files

Jump to
dagger_gleam src dagger dsl cache_volume.gleam
Raw

src/dagger/dsl/cache_volume.gleam

// AUTO-GENERATED BY DAGGER_GLEAM - DO NOT EDIT
import dagger/types as types
import dagger/dsl/types as t
import gleam/list
pub fn cache_volume(key key: String) -> t.CacheVolume {
let field = types.Field(name: "cacheVolume", args: [#("key", types.GString(key))], subfields: [])
t.CacheVolume(op: types.Pure([field]))
}
/// A unique identifier for this CacheVolume.
pub fn id(parent: t.CacheVolume) -> t.CacheVolume {
let field = types.Field(name: "id", args: [], subfields: [])
let new_op = {
use q <- types.bind(parent.op)
types.Pure(list.append(q, [field]))
}
t.CacheVolume(op: new_op)
}