Skip to main content

Args

Struct Args 

Source
pub(crate) struct Args {
Show 17 fields pub(crate) addr: SocketAddr, pub(crate) fleet_backend: FleetBackend, pub(crate) k8s_caliband_ca_file: Option<PathBuf>, pub(crate) k8s_caliband_token_file: Option<PathBuf>, pub(crate) k8s_caliband_server_name: String, pub(crate) kubeconfig: Option<PathBuf>, pub(crate) data_dir: Option<PathBuf>, pub(crate) host: String, pub(crate) poll_interval_ms: u64, pub(crate) no_autostart: bool, pub(crate) caliband_bin: String, pub(crate) default_env: Vec<(String, String)>, pub(crate) retention_days: u64, pub(crate) database_url: Option<String>, pub(crate) replica_id: Option<String>, pub(crate) lease_ttl_secs: f64, pub(crate) heartbeat_interval_ms: Option<u64>,
}
Expand description

Prospero control-plane daemon.

Fields§

§addr: SocketAddr

Address to bind the HTTP API + dashboard on.

§fleet_backend: FleetBackend

Fleet control-plane backend: local (caliband over Unix) or k8s (CalibanTask CRs; requires a build with --features k8s). See docs/container.md “Fleet backends”.

§k8s_caliband_ca_file: Option<PathBuf>

k8s only: PEM CA bundle trusting caliband’s session-plane serving cert. When set, per-agent dials use TLS; unset ⇒ plaintext (unchanged).

§k8s_caliband_token_file: Option<PathBuf>

k8s only: file holding the session-plane bearer token (contents trimmed). When set, per-agent dials present the token; unset ⇒ no token.

§k8s_caliband_server_name: String

k8s only: SNI / cert-validation name for the session-plane TLS check.

§kubeconfig: Option<PathBuf>

k8s only: explicit kubeconfig file. Unset ⇒ infer (in-cluster, then ambient kubeconfig).

§data_dir: Option<PathBuf>

Directory for the registry and event store.

§host: String

Host identity reported in fleet snapshots.

§poll_interval_ms: u64

Poll interval in milliseconds.

§no_autostart: bool

Do not auto-start caliband daemons for registered repos.

§caliband_bin: String

Path/name of the caliban daemon binary used for autostart.

§default_env: Vec<(String, String)>

Default env var applied under every repo’s resolved config (repeatable).

§retention_days: u64

Delete events older than this many days on an hourly loop. 0 disables.

§database_url: Option<String>

Postgres connection URL. When set, prosperod runs in CLUSTERED mode (Postgres store/config + LISTEN/NOTIFY bus + leased ownership); when unset, it runs STANDALONE (sqlite + in-process bus + self-owns-all).

§replica_id: Option<String>

Clustered only: this replica’s identity for lease ownership. Defaults to the HOSTNAME env (the pod name under k8s). MUST be unique per replica.

§lease_ttl_secs: f64

Clustered only: lease time-to-live in seconds. A stream’s owner must heartbeat within this window or a peer may take the stream over.

§heartbeat_interval_ms: Option<u64>

Clustered only: how often (ms) to renew held leases. Defaults to a third of the lease TTL.

Trait Implementations§

Source§

impl Args for Args

Source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
Source§

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

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
Source§

fn augment_args_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§

impl CommandFactory for Args

Source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
Source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
Source§

impl Debug for Args

Source§

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

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

impl FromArgMatches for Args

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( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Parser for Args

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for Args

§

impl RefUnwindSafe for Args

§

impl Send for Args

§

impl Sync for Args

§

impl Unpin for Args

§

impl UnsafeUnpin for Args

§

impl UnwindSafe for Args

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<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.

§

impl<T> Instrument for T

§

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

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

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. 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.
§

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

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,