Struct krill::pubd::RepositoryContent
source · 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
impl RepositoryContent
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
impl RepositoryContent
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 copy 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
impl WalSupport for RepositoryContent
type Command = RepositoryContentCommand
type Change = RepositoryContentChange
type Error = Error
Auto Trait Implementations§
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