Struct routinator::store::StoredManifest [−][src]
pub struct StoredManifest { /* fields omitted */ }
Expand description
The content of a manifest placed in the store.
This type collects all data that is stored as the manifest for a publication point.
This contains the raw bytes of both the manifest itself plus data that will be needed to use the manifest during processing. In particular:
- The expiry time of the manifest’s EE certificate via the
not_after
method. This is used during cleanup to determine whether to keep a publication point. It is stored to avoid having to parse the whole manifest. - The caRepository URI of the CA certificate that has issued the manifest
via the
ca_repository
method. This is necessary to convert the file names mentioned on the manifest into their full rsync URIs. Confusingly, this information is not available on the manifest itself and therefore needs to be stored. - The raw bytes of the manifest via the
manifest
method. - The raw bytes of the CRL referenced by the manifest via the
crl
method. There must always be exactly one CRL used by a publication point. As it needs to be available for validation, we might as well store it together with the manifest.
Implementations
Creates a new stored manifest.
The new value is created from the components of the stored manifest. See the methods with the same name for their meaning.
Reads a stored manifest from an IO reader.
Returns the expire time of the manifest.
This should be equal to the ‘not after’ validity time of the EE certificate included with the manifest.
Returns the rsync URI of the directory containing the objects.
As the manifest only lists relative file names, this URI is necessary to convert them into full rsync URIs.
The URI should be taken from the ‘caRepository’ subject information access extension of the CA certificate that was used to issue the manifest’s EE certificate.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for StoredManifest
impl Send for StoredManifest
impl Sync for StoredManifest
impl Unpin for StoredManifest
impl UnwindSafe for StoredManifest
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more