Current section

Files

Jump to
dagger lib dagger gen module_source_view.ex
Raw

lib/dagger/gen/module_source_view.ex

# This file generated by `dagger_codegen`. Please DO NOT EDIT.
defmodule Dagger.ModuleSourceView do
@moduledoc "A named set of path filters that can be applied to directory arguments provided to functions."
use Dagger.Core.QueryBuilder
@derive Dagger.ID
defstruct [:selection, :client]
@type t() :: %__MODULE__{}
@doc "A unique identifier for this ModuleSourceView."
@spec id(t()) :: {:ok, Dagger.ModuleSourceViewID.t()} | {:error, term()}
def id(%__MODULE__{} = module_source_view) do
selection =
module_source_view.selection |> select("id")
execute(selection, module_source_view.client)
end
@doc "The name of the view"
@spec name(t()) :: {:ok, String.t()} | {:error, term()}
def name(%__MODULE__{} = module_source_view) do
selection =
module_source_view.selection |> select("name")
execute(selection, module_source_view.client)
end
@doc "The patterns of the view used to filter paths"
@spec patterns(t()) :: {:ok, [String.t()]} | {:error, term()}
def patterns(%__MODULE__{} = module_source_view) do
selection =
module_source_view.selection |> select("patterns")
execute(selection, module_source_view.client)
end
end