View Source Dagger.GitRepository (dagger v0.12.3)

A git repository.

Summary

Functions

Returns details of a branch.

Returns details of a commit.

Returns details for HEAD.

A unique identifier for this GitRepository.

Returns details of a ref.

Returns details of a tag.

tags that match any of the given glob patterns.

Header to authenticate the remote with.

Token to authenticate the remote with.

Types

@type t() :: %Dagger.GitRepository{client: term(), selection: term()}

Functions

Link to this function

branch(git_repository, name)

View Source
@spec branch(t(), String.t()) :: Dagger.GitRef.t()

Returns details of a branch.

Link to this function

commit(git_repository, id)

View Source
@spec commit(t(), String.t()) :: Dagger.GitRef.t()

Returns details of a commit.

@spec head(t()) :: Dagger.GitRef.t()

Returns details for HEAD.

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

A unique identifier for this GitRepository.

Link to this function

ref(git_repository, name)

View Source
@spec ref(t(), String.t()) :: Dagger.GitRef.t()

Returns details of a ref.

Link to this function

tag(git_repository, name)

View Source
@spec tag(t(), String.t()) :: Dagger.GitRef.t()

Returns details of a tag.

Link to this function

tags(git_repository, optional_args \\ [])

View Source
@spec tags(t(), [{:patterns, [String.t()]}]) :: {:ok, [String.t()]} | {:error, term()}

tags that match any of the given glob patterns.

Link to this function

with_auth_header(git_repository, header)

View Source
@spec with_auth_header(t(), Dagger.Secret.t()) :: t()

Header to authenticate the remote with.

Link to this function

with_auth_token(git_repository, token)

View Source
@spec with_auth_token(t(), Dagger.Secret.t()) :: t()

Token to authenticate the remote with.