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§
Source§impl Clone for RepositoryConfig
impl Clone for RepositoryConfig
Source§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 moreSource§impl Debug for RepositoryConfig
impl Debug for RepositoryConfig
Source§impl<D: ResourceDialect> Decode<RepositoryConfig, D> for RepositoryConfig
impl<D: ResourceDialect> Decode<RepositoryConfig, D> for RepositoryConfig
Source§impl Default for RepositoryConfig
impl Default for RepositoryConfig
Source§fn default() -> RepositoryConfig
fn default() -> RepositoryConfig
Source§impl<D: ResourceDialect> Encode<RepositoryConfig, D> for &RepositoryConfig
impl<D: ResourceDialect> Encode<RepositoryConfig, D> for &RepositoryConfig
Source§impl PartialEq for RepositoryConfig
impl PartialEq for RepositoryConfig
Source§impl TypeMarker for RepositoryConfig
impl TypeMarker for RepositoryConfig
Source§type Owned = RepositoryConfig
type Owned = RepositoryConfig
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§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.Source§impl ValueTypeMarker for RepositoryConfig
impl ValueTypeMarker for RepositoryConfig
Source§type Borrowed<'a> = &'a RepositoryConfig
type Borrowed<'a> = &'a RepositoryConfig
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for RepositoryConfig
impl StructuralPartialEq for RepositoryConfig
Auto Trait Implementations§
impl Freeze for RepositoryConfig
impl RefUnwindSafe for RepositoryConfig
impl Send for RepositoryConfig
impl Sync for RepositoryConfig
impl Unpin for RepositoryConfig
impl UnwindSafe for RepositoryConfig
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)