Struct RepositoryConfig
pub struct RepositoryConfig {
pub repo_url: Option<String>,
pub root_keys: Option<Vec<RepositoryKeyConfig>>,
pub mirrors: Option<Vec<MirrorConfig>>,
pub root_version: Option<u32>,
pub root_threshold: Option<u32>,
pub use_local_mirror: Option<bool>,
pub storage_type: Option<RepositoryStorageType>,
/* private fields */
}
Expand description
The configuration necessary to connect to a repository and its mirrors.
Fields§
§repo_url: Option<String>
A fuchsia-pkg URL identifying the repository. Required.
Example: fuchsia-pkg://example.com/
root_keys: Option<Vec<RepositoryKeyConfig>>
A vector of public keys that have signed the initial trusted root metadata. Required.
These keys must match one of the trusted keys known to the system.
mirrors: Option<Vec<MirrorConfig>>
The repository mirrors that serve the package contents. Required.
root_version: Option<u32>
The initial trusted root metadata version. Optional, if absent presumed to be 1.
This value describes the initial root metadata version the resolver will
fetch to initialize trust, once it’s signatures has been verified by the
root_keys
. It will then walk the chain of N+1, N+2, and etc to the
latest version before the resolver fetches any targets.
It is recommended that this root_version
number and root_keys
are
kept reasonably in sync with the most recent published version of the
root metadata, as that avoids the risk of an old and unused root key
being used to compromise resolvers during the trust initialization.
root_threshold: Option<u32>
The number of root_keys
that need to have signed the root metadata for it
to be considered trusted. This value must be greater than or equal to 1.
Optional, if absent presumed to be 1.
use_local_mirror: Option<bool>
Whether the package resolver should check attached storage for blobs and repository metadata. Optional, if absent presumed to be false.
storage_type: Option<RepositoryStorageType>
Controls how repository metadata is persisted across reboots. Optional, if absent presumed to be EPHEMERAL.
Trait Implementations§
§impl Clone for RepositoryConfig
impl Clone for RepositoryConfig
§fn clone(&self) -> RepositoryConfig
fn clone(&self) -> RepositoryConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for RepositoryConfig
impl Debug for RepositoryConfig
§impl<D> Decode<RepositoryConfig, D> for RepositoryConfigwhere
D: ResourceDialect,
impl<D> Decode<RepositoryConfig, D> for RepositoryConfigwhere
D: ResourceDialect,
§fn new_empty() -> RepositoryConfig
fn new_empty() -> RepositoryConfig
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for RepositoryConfig
impl Default for RepositoryConfig
§fn default() -> RepositoryConfig
fn default() -> RepositoryConfig
§impl<D> Encode<RepositoryConfig, D> for &RepositoryConfigwhere
D: ResourceDialect,
impl<D> Encode<RepositoryConfig, D> for &RepositoryConfigwhere
D: ResourceDialect,
§impl PartialEq for RepositoryConfig
impl PartialEq for RepositoryConfig
§impl TypeMarker for RepositoryConfig
impl TypeMarker for RepositoryConfig
§type Owned = RepositoryConfig
type Owned = RepositoryConfig
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for RepositoryConfig
impl ValueTypeMarker for RepositoryConfig
§type Borrowed<'a> = &'a RepositoryConfig
type Borrowed<'a> = &'a RepositoryConfig
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<RepositoryConfig as TypeMarker>::Owned,
) -> <RepositoryConfig as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<RepositoryConfig as TypeMarker>::Owned, ) -> <RepositoryConfig as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.