Dagger.GitBundle (dagger v1.0.0-beta.12)

Copy Markdown View Source

A Git bundle: a self-describing container of refs and the objects needed to reconstruct them, optionally rooted at prerequisite commits.

Summary

Functions

Return the bundle bytes as a File.

A unique identifier for this GitBundle.

Object format capability: sha1 or sha256.

Commits that must already exist wherever this bundle is applied.

Refs advertised by the bundle and the object IDs they resolve to.

Perform full structural verification of the bundle and error if it is malformed.

Bundle format version (2 or 3).

Types

t()

@type t() :: %Dagger.GitBundle{client: term(), query_builder: term()}

Functions

as_file(git_bundle)

@spec as_file(t()) :: Dagger.File.t()

Return the bundle bytes as a File.

id(git_bundle)

@spec id(t()) :: {:ok, String.t()} | {:error, term()}

A unique identifier for this GitBundle.

object_format(git_bundle)

@spec object_format(t()) :: {:ok, String.t()} | {:error, term()}

Object format capability: sha1 or sha256.

prerequisite_sh_as(git_bundle)

@spec prerequisite_sh_as(t()) :: {:ok, [String.t()]} | {:error, term()}

Commits that must already exist wherever this bundle is applied.

refs(git_bundle)

@spec refs(t()) :: {:ok, [Dagger.GitBundleRef.t()]} | {:error, term()}

Refs advertised by the bundle and the object IDs they resolve to.

validate(git_bundle)

@spec validate(t()) :: t()

Perform full structural verification of the bundle and error if it is malformed.

version(git_bundle)

@spec version(t()) :: {:ok, integer()} | {:error, term()}

Bundle format version (2 or 3).