pub struct ImageSource {
pub spec: String,
pub server: Option<String>,
pub protocol: Option<String>,
pub alias: String,
pub local_registry: bool,
}Expand description
Where the image comes from.
Fields§
§spec: StringThe spec string, for messages.
server: Option<String>None for a local image.
protocol: Option<String>§alias: String§local_registry: boolA registry: image, not yet bound to an org and the local registry
(ImageSource::bind); alias is then APP[:TAG][@DIGEST].
Implementations§
Source§impl ImageSource
impl ImageSource
pub fn parse(s: &str) -> Result<Self>
Sourcepub fn bind(self, org: Option<&OrgId>, addr: Option<&str>) -> Result<Self>
pub fn bind(self, org: Option<&OrgId>, addr: Option<&str>) -> Result<Self>
Bind a registry: image to org’s repository in the local registry
at addr. Anything else is returned as is.
Trait Implementations§
Source§impl Clone for ImageSource
impl Clone for ImageSource
Source§impl Debug for ImageSource
impl Debug for ImageSource
Source§impl PartialEq for ImageSource
impl PartialEq for ImageSource
Source§impl Serialize for ImageSource
impl Serialize for ImageSource
impl StructuralPartialEq for ImageSource
Auto Trait Implementations§
impl Freeze for ImageSource
impl RefUnwindSafe for ImageSource
impl Send for ImageSource
impl Sync for ImageSource
impl Unpin for ImageSource
impl UnsafeUnpin for ImageSource
impl UnwindSafe for ImageSource
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