pub struct Config {
pub api: String,
pub repo: String,
pub owner: String,
pub key_file: String,
pub namespace: String,
pub base_ref: Option<String>,
pub auth_file: Option<String>,
pub auth_user: Option<String>,
}Expand description
Install-time settings: the node, the repository, and the owner identity that signs. Supplied by the operator, not by the orchestrator, so a request cannot redirect a workspace at another repository or sign with another key.
Fields§
§api: StringNode API base URL.
repo: StringRepository as owner/repo.
owner: StringOwner channel that signs lifecycle authorizations.
key_file: StringAbsolute path to the owner’s 32-byte key file.
namespace: StringIdentifier namespace separating this orchestrator from others.
base_ref: Option<String>View ref an ensure resolves its base revision from.
auth_file: Option<String>Basic-auth credentials file, absolute when present.
auth_user: Option<String>Basic-auth username; needs auth_file.
Implementations§
Source§impl Config
impl Config
Sourcepub fn parse(value: &Value) -> Result<Self, Failure>
pub fn parse(value: &Value) -> Result<Self, Failure>
Parses and validates operator configuration.
Every path is required to be absolute, because the adapter is invoked by a scheduler whose working directory is its own business, and a relative key path would resolve somewhere nobody chose.
§Errors
Returns a Failure naming the first field that is missing or
unusable.