pub struct RepositoryContent { /* private fields */ }
Expand description
This type manages the content of the repository. Note that access to the repository is managed by an event sourced component which handles RFC8181 based access, and which can enforce restrictions, such as the base uri for publishers.
Implementations§
Source§impl RepositoryContent
§Construct
impl RepositoryContent
§Construct
pub fn new(rrdp: RrdpServer, rsync: RsyncdStore) -> Self
pub fn init( rrdp_base_uri: Https, rsync_jail: Rsync, session: RrdpSession, repo_base_dir: &Path, ) -> Self
Source§impl RepositoryContent
§Publisher Content
impl RepositoryContent
§Publisher Content
pub fn clear(&self)
Sourcepub fn list_reply(&self, publisher: &PublisherHandle) -> KrillResult<ListReply>
pub fn list_reply(&self, publisher: &PublisherHandle) -> KrillResult<ListReply>
Gets a list reply containing all objects for this publisher.
pub fn reset_session(&self) -> KrillResult<Vec<RepositoryContentChange>>
pub fn write_repository(&self, config: RrdpUpdatesConfig) -> KrillResult<()>
Sourcepub fn publisher_stats(&self) -> HashMap<PublisherHandle, PublisherStats>
pub fn publisher_stats(&self) -> HashMap<PublisherHandle, PublisherStats>
Returns the stats for all current publishers
Trait Implementations§
Source§impl Clone for RepositoryContent
impl Clone for RepositoryContent
Source§fn clone(&self) -> RepositoryContent
fn clone(&self) -> RepositoryContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RepositoryContent
impl Debug for RepositoryContent
Source§impl<'de> Deserialize<'de> for RepositoryContent
impl<'de> Deserialize<'de> for RepositoryContent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RepositoryContent
impl Serialize for RepositoryContent
Source§impl WalSupport for RepositoryContent
§Write-ahead logging support
impl WalSupport for RepositoryContent
§Write-ahead logging support
type Command = RepositoryContentCommand
type Change = RepositoryContentChange
type Error = Error
Auto Trait Implementations§
impl !Freeze for RepositoryContent
impl RefUnwindSafe for RepositoryContent
impl Send for RepositoryContent
impl Sync for RepositoryContent
impl Unpin for RepositoryContent
impl UnwindSafe for RepositoryContent
Blanket Implementations§
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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