pub struct RunnerConfig {
pub kind: String,
pub config: Value,
}Expand description
How to start a remote runner. The kind field is dispatched against
the orchestrator’s RunnerInitializer registry; config is the
initializer’s private payload (image name, k8s namespace, sandbox
flags, …). The orchestrator does not interpret config.
Examples (the strings are conventions, not a closed set):
{ "kind": "sandbox", "config": { "image": "..." } }— browsr container running distri-cli.{ "kind": "loopback", "config": {} }— loopback HTTP to another orchestrator instance (DEV_MODE / OSS distri-server).{ "kind": "k8s", "config": { "namespace": "...", "image": "..." } }— future Kubernetes runner.
Fields§
§kind: StringRegistry key for the [RunnerInitializer] that knows how to
start and talk to this runner.
config: ValueInitializer-private payload. Default {} for runners that need
no config beyond their kind.
Implementations§
Source§impl RunnerConfig
impl RunnerConfig
Trait Implementations§
Source§impl Clone for RunnerConfig
impl Clone for RunnerConfig
Source§fn clone(&self) -> RunnerConfig
fn clone(&self) -> RunnerConfig
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 moreSource§impl Debug for RunnerConfig
impl Debug for RunnerConfig
Source§impl<'de> Deserialize<'de> for RunnerConfig
impl<'de> Deserialize<'de> for RunnerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RunnerConfig
Source§impl PartialEq for RunnerConfig
impl PartialEq for RunnerConfig
Source§fn eq(&self, other: &RunnerConfig) -> bool
fn eq(&self, other: &RunnerConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RunnerConfig
impl Serialize for RunnerConfig
impl StructuralPartialEq for RunnerConfig
Auto Trait Implementations§
impl Freeze for RunnerConfig
impl RefUnwindSafe for RunnerConfig
impl Send for RunnerConfig
impl Sync for RunnerConfig
impl Unpin for RunnerConfig
impl UnsafeUnpin for RunnerConfig
impl UnwindSafe for RunnerConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.