[snowpatch] [PATCH] Replace ssh agent authentication with explicit key
Andrew Donnellan
andrew.donnellan at au1.ibm.com
Fri Dec 2 11:28:25 AEDT 2016
On 01/12/16 17:04, Andrew Donnellan wrote:
> diff --git a/src/settings.rs b/src/settings.rs
> index a4a5614..b440885 100644
> --- a/src/settings.rs
> +++ b/src/settings.rs
> @@ -28,6 +28,14 @@ use std::collections::BTreeMap;
> // TODO: Give more informative error messages when we fail to parse.
>
> #[derive(RustcDecodable, Clone)]
> +pub struct Git {
> + pub user: String,
> + pub public_key: Option<String>,
> + pub private_key: String,
This should probably be Option as well.
> + pub passphrase: Option<String>
We should probably enforce having either keys or passphrase...
> +}
> +
> +#[derive(RustcDecodable, Clone)]
> pub struct Patchwork {
> pub url: String,
> pub port: Option<u16>,
> @@ -65,6 +73,7 @@ impl Project {
>
> #[derive(RustcDecodable, Clone)]
> pub struct Config {
> + pub git: Git,
> pub patchwork: Patchwork,
> pub jenkins: Jenkins,
> pub projects: BTreeMap<String, Project>
>
--
Andrew Donnellan OzLabs, ADL Canberra
andrew.donnellan at au1.ibm.com IBM Australia Limited
More information about the snowpatch
mailing list