pub(crate) enum GenerateSubcommand {
Node {
hosts: Vec<Pair<String, ':', IpAddr>>,
fix_dirs: bool,
config_path: PathBuf,
kind: Box<GenerateNodeSubcommand>,
},
Certs {
fix_dirs: bool,
path: PathBuf,
temp_dir: PathBuf,
kind: Box<GenerateCertsSubcommand>,
},
Infra {
locations: Vec<Pair<String, ':', String>>,
fix_dirs: bool,
path: PathBuf,
names: Vec<Pair<String, '=', String>>,
reg_ports: Vec<Pair<String, '=', u16>>,
job_ports: Vec<Pair<String, '=', u16>>,
},
Backend {
fix_dirs: bool,
path: PathBuf,
capabilities: Vec<Capability>,
disable_hashing: bool,
kind: Box<GenerateBackendSubcommand>,
},
PolicyDatabase {
fix_dirs: bool,
path: PathBuf,
branch: String,
},
PolicySecret {
fix_dirs: bool,
path: PathBuf,
key_id: String,
jwt_alg: KeyAlgorithm,
},
PolicyToken {
initiator: String,
system: String,
exp: Duration,
fix_dirs: bool,
path: PathBuf,
secret_path: PathBuf,
},
Proxy {
fix_dirs: bool,
path: PathBuf,
outgoing_range: InclusiveRange<u16>,
incoming: Vec<Pair<u16, ':', Address>>,
forward: Option<Address>,
forward_protocol: ProxyProtocol,
},
}
Expand description
Defines generate-related subcommands for the branectl
tool.
Variants§
Node
Fields
§
hosts: Vec<Pair<String, ':', IpAddr>>
Defines one or more additional hostnames to define in the nested Docker container.
§
kind: Box<GenerateNodeSubcommand>
Defines the possible nodes to generate a new node.yml file for.
Certs
Fields
§
kind: Box<GenerateCertsSubcommand>
The type of certificate to generate.
Infra
Fields
Backend
Fields
§
capabilities: Vec<Capability>
The list of capabilities to advertise for this domain.
§
kind: Box<GenerateBackendSubcommand>
Defines the possible backends to generate a new backend.yml file for.
PolicyDatabase
Fields
PolicySecret
Fields
§
jwt_alg: KeyAlgorithm
The algorithm used to sign JWTs.
PolicyToken
Fields
Proxy
Fields
§
outgoing_range: InclusiveRange<u16>
Defines the range of ports that we can allocate for outgoing connections.
§
forward_protocol: ProxyProtocol
Defines which protocol to use if forwarding.
Trait Implementations§
Source§impl Debug for GenerateSubcommand
impl Debug for GenerateSubcommand
Source§impl FromArgMatches for GenerateSubcommand
impl FromArgMatches for GenerateSubcommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
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>
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 GenerateSubcommand
impl Subcommand for GenerateSubcommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
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 moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self
can parse a specific subcommandAuto Trait Implementations§
impl Freeze for GenerateSubcommand
impl RefUnwindSafe for GenerateSubcommand
impl Send for GenerateSubcommand
impl Sync for GenerateSubcommand
impl Unpin for GenerateSubcommand
impl UnwindSafe for GenerateSubcommand
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more