pub struct RemoteImageService;Expand description
Service for detecting and managing remote images
Implementations§
Source§impl RemoteImageService
impl RemoteImageService
Sourcepub fn new() -> RemoteImageService
pub fn new() -> RemoteImageService
Create a new remote image service
Sourcepub async fn detect_prebuilt(
&self,
targets: &TargetsConfig,
project_dir: &Path,
) -> Result<PrebuiltDetectionResult, Error>
pub async fn detect_prebuilt( &self, targets: &TargetsConfig, project_dir: &Path, ) -> Result<PrebuiltDetectionResult, Error>
Detect whether a pre-built image can be used
Returns information about whether to use pre-built or build locally.
Sourcepub async fn fetch_manifest(&self) -> Result<RemoteImageManifest, Error>
pub async fn fetch_manifest(&self) -> Result<RemoteImageManifest, Error>
Fetch the remote image manifest via mecha10-api
Calls GET /api/downloads/manifest, which streams remote-manifest/latest.json
out of the private Minio instance without exposing it directly to the client.
Sourcepub fn hash_nodes(&self, targets: &TargetsConfig) -> String
pub fn hash_nodes(&self, targets: &TargetsConfig) -> String
Compute a hash of the remote nodes for matching against manifest
Sourcepub fn image_env_var() -> &'static str
pub fn image_env_var() -> &'static str
Get the image environment variable name
Trait Implementations§
Source§impl Default for RemoteImageService
impl Default for RemoteImageService
Source§fn default() -> RemoteImageService
fn default() -> RemoteImageService
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RemoteImageService
impl RefUnwindSafe for RemoteImageService
impl Send for RemoteImageService
impl Sync for RemoteImageService
impl Unpin for RemoteImageService
impl UnsafeUnpin for RemoteImageService
impl UnwindSafe for RemoteImageService
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more