testcontainers-build 0.1.0

Build Testcontainers images from folders, remote contexts, and pluggable Git providers
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::{BuildContext, GitRequest, Result};
use async_trait::async_trait;

/// Define how to check out a Git source.
/// Replace this provider to change hosting or authentication.
#[async_trait]
pub trait GitProvider: Send + Sync {
    /// Check out the requested revision.
    /// Return a context that owns the checkout resources.
    async fn checkout(&self, request: &GitRequest) -> Result<BuildContext>;
}