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]

pub fn build(
    config: Arc<Config>,
    signer: Arc<KrillSigner>
) -> Result<Self, Error>
[src]

Builds a RepositoryManager. This will use a disk based KeyValueStore using the the data directory specified in the supplied Config.

impl RepositoryManager[src]

pub fn initialized(&self) -> KrillResult<bool>[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]

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]

List all current publishers

impl RepositoryManager[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]

Do an RRDP session reset.

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]

Returns a list reply for a known publisher in a repository.

impl RepositoryManager[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]

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]

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]

Removes a publisher and all of its content.

impl RepositoryManager[src]

pub fn write_repository(&self) -> KrillResult<()>[src]

Update the RRDP files and rsync content on disk.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[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]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T> Instrument for T[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]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Err>

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V