Struct krill::pubd::RepositoryManager [−][src]
pub struct RepositoryManager { /* fields omitted */ }
Expand description
RepositoryManager is responsible for:
- verifying that a publisher is allowed to publish
- publish content to RRDP and rsync
Implementations
impl RepositoryManager
[src]
impl RepositoryManager
[src]pub fn initialized(&self) -> KrillResult<bool>
[src]
pub fn init(&self, uris: PublicationServerUris) -> KrillResult<()>
[src]
pub fn init(&self, uris: PublicationServerUris) -> KrillResult<()>
[src]Create the publication server, will fail if it was already created.
pub fn repository_clear(&self) -> KrillResult<()>
[src]
pub fn repository_clear(&self) -> KrillResult<()>
[src]Clear the publication server. Will fail if it still has publishers. Or if it does not exist.
pub fn publishers(&self) -> KrillResult<Vec<PublisherHandle>>
[src]
pub fn publishers(&self) -> KrillResult<Vec<PublisherHandle>>
[src]List all current publishers
impl RepositoryManager
[src]
impl RepositoryManager
[src]pub fn rfc8181(
&self,
publisher_handle: PublisherHandle,
msg_bytes: Bytes
) -> KrillResult<Bytes>
[src]
pub fn rfc8181(
&self,
publisher_handle: PublisherHandle,
msg_bytes: Bytes
) -> KrillResult<Bytes>
[src]Handle an RFC8181 request and sign the response.
pub fn rrdp_session_reset(&self) -> KrillResult<()>
[src]
pub fn rrdp_session_reset(&self) -> KrillResult<()>
[src]Do an RRDP session reset.
pub fn publish(
&self,
name: PublisherHandle,
delta: PublishDelta
) -> KrillResult<()>
[src]
pub fn publish(
&self,
name: PublisherHandle,
delta: PublishDelta
) -> KrillResult<()>
[src]Let a known publisher publish in a repository.
pub fn repo_stats(&self) -> KrillResult<RepoStats>
[src]
pub fn list(&self, publisher: &PublisherHandle) -> KrillResult<ListReply>
[src]
pub fn list(&self, publisher: &PublisherHandle) -> KrillResult<ListReply>
[src]Returns a list reply for a known publisher in a repository.
impl RepositoryManager
[src]
impl RepositoryManager
[src]pub fn repo_info_for(&self, name: &PublisherHandle) -> KrillResult<RepoInfo>
[src]
pub fn repo_info_for(&self, name: &PublisherHandle) -> KrillResult<RepoInfo>
[src]Returns the repository URI information for a publisher.
pub fn get_publisher_details(
&self,
name: &PublisherHandle
) -> KrillResult<PublisherDetails>
[src]
&self,
name: &PublisherHandle
) -> KrillResult<PublisherDetails>
pub fn repository_response(
&self,
publisher: &PublisherHandle
) -> KrillResult<RepositoryResponse>
[src]
pub fn repository_response(
&self,
publisher: &PublisherHandle
) -> KrillResult<RepositoryResponse>
[src]Returns the RFC8183 Repository Response for the publisher.
pub fn create_publisher(
&self,
req: PublisherRequest,
actor: &Actor
) -> KrillResult<()>
[src]
pub fn create_publisher(
&self,
req: PublisherRequest,
actor: &Actor
) -> KrillResult<()>
[src]Adds a publisher. This will fail if a publisher already exists for the handle in the request.
pub fn remove_publisher(
&self,
name: PublisherHandle,
actor: &Actor
) -> KrillResult<()>
[src]
pub fn remove_publisher(
&self,
name: PublisherHandle,
actor: &Actor
) -> KrillResult<()>
[src]Removes a publisher and all of its content.
impl RepositoryManager
[src]
impl RepositoryManager
[src]pub fn write_repository(&self) -> KrillResult<()>
[src]
pub fn write_repository(&self) -> KrillResult<()>
[src]Update the RRDP files and rsync content on disk.
Auto Trait Implementations
impl !RefUnwindSafe for RepositoryManager
impl Send for RepositoryManager
impl Sync for RepositoryManager
impl Unpin for RepositoryManager
impl !UnwindSafe for RepositoryManager
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,