dagger/dsl/address

Types

pub type Opts {
  Opts(
    exclude: option.Option(List(String)),
    include: option.Option(List(String)),
    gitignore: option.Option(Bool),
    no_cache: option.Option(Bool),
  )
}

Constructors

Values

pub fn address(value value: String) -> types.Address
pub fn container(parent: types.Address) -> types.Container

Load a container from the address.

pub fn directory(
  parent: types.Address,
  with with_fn: fn(Opts) -> Opts,
) -> types.Directory

Load a directory from the address.

pub fn exclude(opts: Opts, val: List(String)) -> Opts
pub fn file(
  parent: types.Address,
  with with_fn: fn(Opts) -> Opts,
) -> types.File

Load a file from the address.

pub fn git_ref(parent: types.Address) -> types.GitRef

Load a git ref (branch, tag or commit) from the address.

pub fn git_repository(
  parent: types.Address,
) -> types.GitRepository

Load a git repository from the address.

pub fn gitignore(opts: Opts, val: Bool) -> Opts
pub fn id(parent: types.Address) -> types.Address

A unique identifier for this Address.

pub fn include(opts: Opts, val: List(String)) -> Opts
pub fn no_cache(opts: Opts, val: Bool) -> Opts
pub fn none(opts: Opts) -> Opts
pub fn secret(parent: types.Address) -> types.Secret

Load a secret from the address.

pub fn service(parent: types.Address) -> types.Service

Load a service from the address.

pub fn socket(parent: types.Address) -> types.Socket

Load a local socket from the address.

pub fn value(
  parent: types.Address,
  client client: types.Client,
  then handler: fn(Result(String, types.QueryError)) -> a,
) -> a

The address value

Search Document