pub struct GitRepository {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}
Fields§
§proc: Option<Arc<DaggerSessionProc>>
§selection: Selection
§graphql_client: DynGraphQLClient
Implementations§
Source§impl GitRepository
impl GitRepository
Sourcepub async fn branches(&self) -> Result<Vec<String>, DaggerError>
pub async fn branches(&self) -> Result<Vec<String>, DaggerError>
branches that match any of the given glob patterns.
§Arguments
opt
- optional argument, see inner type for documentation, use_opts to use
Sourcepub async fn branches_opts<'a>(
&self,
opts: GitRepositoryBranchesOpts<'a>,
) -> Result<Vec<String>, DaggerError>
pub async fn branches_opts<'a>( &self, opts: GitRepositoryBranchesOpts<'a>, ) -> Result<Vec<String>, DaggerError>
branches that match any of the given glob patterns.
§Arguments
opt
- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn commit(&self, id: impl Into<String>) -> GitRef
pub fn commit(&self, id: impl Into<String>) -> GitRef
Returns details of a commit.
§Arguments
id
- Identifier of the commit (e.g., “b6315d8f2810962c601af73f86831f6866ea798b”).
Sourcepub async fn id(&self) -> Result<GitRepositoryId, DaggerError>
pub async fn id(&self) -> Result<GitRepositoryId, DaggerError>
A unique identifier for this GitRepository.
Sourcepub fn latest_version(&self) -> GitRef
pub fn latest_version(&self) -> GitRef
Returns details for the latest semver tag.
Sourcepub fn ref(&self, name: impl Into<String>) -> GitRef
pub fn ref(&self, name: impl Into<String>) -> GitRef
Returns details of a ref.
§Arguments
name
- Ref’s name (can be a commit identifier, a tag name, a branch name, or a fully-qualified ref).
tags that match any of the given glob patterns.
§Arguments
opt
- optional argument, see inner type for documentation, use_opts to use
tags that match any of the given glob patterns.
§Arguments
opt
- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn with_auth_header(&self, header: impl IntoID<SecretId>) -> GitRepository
pub fn with_auth_header(&self, header: impl IntoID<SecretId>) -> GitRepository
Header to authenticate the remote with.
§Arguments
header
- Secret used to populate the Authorization HTTP header
Sourcepub fn with_auth_token(&self, token: impl IntoID<SecretId>) -> GitRepository
pub fn with_auth_token(&self, token: impl IntoID<SecretId>) -> GitRepository
Token to authenticate the remote with.
§Arguments
token
- Secret used to populate the password during basic HTTP Authorization
Trait Implementations§
Source§impl Clone for GitRepository
impl Clone for GitRepository
Source§fn clone(&self) -> GitRepository
fn clone(&self) -> GitRepository
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl IntoID<GitRepositoryId> for GitRepository
impl IntoID<GitRepositoryId> for GitRepository
fn into_id( self, ) -> Pin<Box<dyn Future<Output = Result<GitRepositoryId, DaggerError>> + Send>>
Auto Trait Implementations§
impl Freeze for GitRepository
impl !RefUnwindSafe for GitRepository
impl Send for GitRepository
impl Sync for GitRepository
impl Unpin for GitRepository
impl !UnwindSafe for GitRepository
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more