Enum brane_ctl::spec::GenerateNodeSubcommand

source ·
pub enum GenerateNodeSubcommand {
    Central {
Show 14 fields hostname: String, infra: PathBuf, proxy: PathBuf, certs: PathBuf, packages: PathBuf, external_proxy: Option<Address>, api_name: String, drv_name: String, plr_name: String, prx_name: String, api_port: u16, plr_port: u16, drv_port: u16, prx_port: u16,
}, Worker {
Show 24 fields hostname: String, location_id: String, use_cases: Vec<Pair<String, '=', Address>>, backend: PathBuf, policy_database: PathBuf, policy_deliberation_secret: PathBuf, policy_expert_secret: PathBuf, policy_audit_log: Option<PathBuf>, proxy: PathBuf, certs: PathBuf, packages: PathBuf, data: PathBuf, results: PathBuf, temp_data: PathBuf, temp_results: PathBuf, external_proxy: Option<Address>, reg_name: String, job_name: String, chk_name: String, prx_name: String, reg_port: u16, job_port: u16, chk_port: u16, prx_port: u16,
}, Proxy { hostname: String, proxy: PathBuf, certs: PathBuf, prx_name: String, prx_port: u16, }, }
Expand description

A bit awkward here, but defines the generate subcommand for the node file. This basically defines the possible kinds of nodes to generate.

Variants§

§

Central

Starts a central node.

Fields

§hostname: String

The hostname of this node.

§infra: PathBuf

Custom infra.yml path.

§proxy: PathBuf

Custom proxy.yml path.

§certs: PathBuf

Custom certificates path.

§packages: PathBuf

Custom packages path.

§external_proxy: Option<Address>

If given, disables the proxy service on this host.

§api_name: String

The name of the API service.

§drv_name: String

The name of the driver service.

§plr_name: String

The name of the planner service.

§prx_name: String

The name of the proxy service.

§api_port: u16

The port of the API service.

§plr_port: u16

The port of the planner service.

§drv_port: u16

The port of the driver service.

§prx_port: u16

The port of the proxy service.

§

Worker

Starts a worker node.

Fields

§hostname: String

The hostname of this node.

§location_id: String

The location ID of this node.

§use_cases: Vec<Pair<String, '=', Address>>

List of use-cases to take into account.

§backend: PathBuf

Custom backend file path.

§policy_database: PathBuf

Custom hash file path.

§policy_deliberation_secret: PathBuf

Custom hash file path.

§policy_expert_secret: PathBuf

Custom hash file path.

§policy_audit_log: Option<PathBuf>

Custom audit log path (optional)

§proxy: PathBuf

Custom proxy.yml path.

§certs: PathBuf

Custom certificates path.

§packages: PathBuf

Custom packages path.

§data: PathBuf

Custom data path,

§results: PathBuf

Custom results path.

§temp_data: PathBuf

Custom results path.

§temp_results: PathBuf

Custom results path.

§external_proxy: Option<Address>

If given, disables the proxy service on this host.

§reg_name: String

The address on which to launch the registry service.

§job_name: String

The address on which to launch the driver service.

§chk_name: String

The address on which to launch the checker service.

§prx_name: String

The name of the proxy service.

§reg_port: u16

The address on which to launch the registry service.

§job_port: u16

The address on which to launch the driver service.

§chk_port: u16

The address on which to launch the checker service.

§prx_port: u16

The port of the proxy service.

§

Proxy

Starts a proxy node.

Fields

§hostname: String

The hostname of this node.

§proxy: PathBuf

Custom proxy.yml path.

§certs: PathBuf

Custom certificates path.

§prx_name: String

The name of the proxy service.

§prx_port: u16

The port of the proxy service.

Trait Implementations§

source§

impl Debug for GenerateNodeSubcommand

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl EnumDebug for GenerateNodeSubcommand

source§

fn type_name() -> &'static str

Returns the static name of the type used for EnumDebug-printing. Read more
source§

fn variant_names() -> &'static [&'static str]

Returns all variants in the trait as a list of names. Read more
source§

fn variant_name(&self) -> &'static str

Returns the static name of the variant. Read more
source§

fn variant(&self) -> EnumDebugFormatter<'_, Self>

Returns a formatter for this enum that writes its variant name. Read more
source§

fn variants() -> Copied<Iter<'static, &'static str>>

Returns an iterator over all variants in this enum. Read more
source§

impl FromArgMatches for GenerateNodeSubcommand

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Subcommand for GenerateNodeSubcommand

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> IntoSql for T

source§

fn into_sql<T>(self) -> Self::Expression

Convert self to an expression for Diesel’s query builder. Read more
source§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,

Convert &self to an expression for Diesel’s query builder. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T