@@ -150,6 +150,8 @@ pub struct RunnerCreate {
|
||||
/// The script type this runner executes (used for routing)
|
||||
pub script_type: ScriptType,
|
||||
pub local: bool,
|
||||
/// Optional secret used for authenticated supervisor calls (if required)
|
||||
pub secret: Option<String>,
|
||||
}
|
||||
impl RunnerCreate {
|
||||
pub fn into_domain(self) -> Runner {
|
||||
@@ -162,6 +164,7 @@ impl RunnerCreate {
|
||||
topic,
|
||||
script_type,
|
||||
local,
|
||||
secret,
|
||||
} = self;
|
||||
|
||||
Runner {
|
||||
@@ -171,6 +174,7 @@ impl RunnerCreate {
|
||||
topic,
|
||||
script_type,
|
||||
local,
|
||||
secret,
|
||||
created_at: ts,
|
||||
updated_at: ts,
|
||||
}
|
||||
|
Reference in New Issue
Block a user