pub struct ConfigContext { /* private fields */ }Implementations§
Source§impl ConfigContext
impl ConfigContext
pub fn new( artifact: String, artifact_context: PathBuf, artifact_namespace: String, artifact_system: String, artifact_unlock: bool, artifact_variable: Vec<String>, client_agent: AgentServiceClient<Channel>, client_artifact: ArtifactServiceClient<Channel>, port: u16, registry: String, ) -> Result<Self>
pub async fn add_artifact(&mut self, artifact: &Artifact) -> Result<String>
pub async fn fetch_artifact(&mut self, digest: &str) -> Result<String>
pub async fn fetch_artifact_alias(&mut self, alias: &str) -> Result<String>
pub fn get_artifact_store(&self) -> HashMap<String, Artifact>
pub fn get_artifact(&self, digest: &str) -> Option<Artifact>
pub fn get_artifact_context_path(&self) -> &PathBuf
pub fn get_artifact_name(&self) -> &str
pub fn get_artifact_namespace(&self) -> &str
pub fn get_system(&self) -> ArtifactSystem
pub fn get_variable(&self, name: &str) -> Option<String>
pub async fn run(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for ConfigContext
impl Clone for ConfigContext
Source§fn clone(&self) -> ConfigContext
fn clone(&self) -> ConfigContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for ConfigContext
impl !RefUnwindSafe for ConfigContext
impl !UnwindSafe for ConfigContext
impl Send for ConfigContext
impl Sync for ConfigContext
impl Unpin for ConfigContext
impl UnsafeUnpin for ConfigContext
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request