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, Result};
use async_trait::async_trait;

/// Resolve a source before the image build starts.
/// Return a context that owns any temporary resources.
#[async_trait]
pub trait BuildContextProvider: Send + Sync {
    /// Resolve the build context.
    /// Keep temporary resources in its owner.
    async fn resolve(&self) -> Result<BuildContext>;
}