[][src]Struct krill::daemon::krillserver::KrillServer

pub struct KrillServer { /* fields omitted */ }

This is the master krill server that is doing all the orchestration for all the components.

Implementations

impl KrillServer[src]

pub fn build(config: &Config) -> KrillResult<Self>[src]

Creates a new publication server. Note that state is preserved on disk in the work_dir provided.

pub fn service_base_uri(&self) -> &Https[src]

pub fn server_info(&self) -> ServerInfo[src]

impl KrillServer[src]

pub fn is_api_allowed(&self, auth: &Auth) -> bool[src]

pub fn limit_api(&self) -> u64[src]

pub fn limit_rfc8181(&self) -> u64[src]

pub fn limit_rfc6492(&self) -> u64[src]

impl KrillServer[src]

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

Returns the repository server stats

pub fn publishers(&self) -> KrillResult<Vec<Handle>>[src]

Returns all currently configured publishers. (excludes deactivated)

pub fn add_publisher(
    &self,
    req: PublisherRequest
) -> KrillResult<RepositoryResponse>
[src]

Adds the publishers, blows up if it already existed.

pub fn remove_publisher(
    &mut self,
    publisher: PublisherHandle
) -> KrillEmptyResult
[src]

Removes a publisher, blows up if it didn't exist.

pub fn get_publisher(
    &self,
    publisher: &PublisherHandle
) -> KrillResult<PublisherDetails>
[src]

Returns a publisher.

pub fn rrdp_base_path(&self) -> PathBuf[src]

impl KrillServer[src]

pub fn repository_response(
    &self,
    publisher: &PublisherHandle
) -> KrillResult<RepositoryResponse>
[src]

pub fn rfc8181(
    &self,
    publisher: PublisherHandle,
    msg_bytes: Bytes
) -> KrillResult<Bytes>
[src]

impl KrillServer[src]

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

pub fn trust_anchor_cert(&self) -> Option<Cert>[src]

pub fn ca_add_child(
    &self,
    parent: &ParentHandle,
    req: AddChildRequest
) -> KrillResult<ParentCaContact>
[src]

Adds a child to a CA and returns the ParentCaInfo that the child will need to contact this CA for resource requests.

pub fn ca_parent_contact(
    &self,
    parent: &ParentHandle,
    child: ChildHandle
) -> KrillResult<ParentCaContact>
[src]

Shows the parent contact for a child.

pub fn ca_parent_response(
    &self,
    parent: &ParentHandle,
    child: ChildHandle
) -> KrillResult<ParentResponse>
[src]

Shows the parent contact for a child.

pub fn ca_child_update(
    &self,
    parent: &ParentHandle,
    child: ChildHandle,
    req: UpdateChildRequest
) -> KrillEmptyResult
[src]

Update IdCert or resources of a child.

pub fn ca_child_remove(
    &self,
    handle: &Handle,
    child: ChildHandle
) -> KrillEmptyResult
[src]

Update IdCert or resources of a child.

pub fn ca_child_show(
    &self,
    parent: &ParentHandle,
    child: &ChildHandle
) -> KrillResult<ChildCaInfo>
[src]

Show details for a child under the TA.

impl KrillServer[src]

pub fn ca_child_req(&self, handle: &Handle) -> KrillResult<ChildRequest>[src]

Returns the child request for a CA, or NONE if the CA cannot be found.

pub async fn ca_parent_add<'_>(
    &'_ self,
    handle: Handle,
    parent: ParentCaReq
) -> KrillEmptyResult
[src]

Adds a parent to a CA, will check first if the parent can be reached.

pub async fn ca_parent_update<'_>(
    &'_ self,
    handle: Handle,
    parent: ParentHandle,
    contact: ParentCaContact
) -> KrillEmptyResult
[src]

Updates a parent contact for a CA

pub fn ca_parent_remove(
    &self,
    handle: Handle,
    parent: ParentHandle
) -> KrillEmptyResult
[src]

impl KrillServer[src]

pub fn cas_stats(&self) -> HashMap<Handle, CertAuthStats>[src]

pub async fn all_ca_issues<'_>(&'_ self) -> KrillResult<AllCertAuthIssues>[src]

pub async fn ca_issues<'_, '_>(
    &'_ self,
    ca_handle: &'_ Handle
) -> KrillResult<CertAuthIssues>
[src]

impl KrillServer[src]

pub fn republish_all(&self) -> KrillEmptyResult[src]

Republish all CAs that need it.

pub async fn resync_all<'_>(&'_ self) -> KrillEmptyResult[src]

Re-sync all CAs with their repositories

pub async fn refresh_all<'_>(&'_ self) -> KrillEmptyResult[src]

Refresh all CAs: ask for updates and shrink as needed.

impl KrillServer[src]

pub fn cas(&self) -> CertAuthList[src]

pub fn ca_info(&self, handle: &Handle) -> KrillResult<CertAuthInfo>[src]

Returns the public CA info for a CA, or NONE if the CA cannot be found.

pub fn ca_my_parent_contact(
    &self,
    handle: &Handle,
    parent: &ParentHandle
) -> KrillResult<ParentCaContact>
[src]

Returns the parent contact for a CA and parent, or NONE if either the CA or the parent cannot be found.

pub fn ca_history(
    &self,
    handle: &Handle,
    crit: CommandHistoryCriteria
) -> Option<CommandHistory>
[src]

Returns the history for a CA, or NONE in case of issues (i.e. it does not exist).

pub fn ca_command_details(
    &self,
    handle: &Handle,
    command: CommandKey
) -> KrillResult<Option<CaCommandDetails>>
[src]

pub fn ca_publisher_req(&self, handle: &Handle) -> Option<PublisherRequest>[src]

Returns the publisher request for a CA, or NONE of the CA cannot be found.

pub fn ca_init(&mut self, init: CertAuthInit) -> KrillEmptyResult[src]

pub fn ca_repo_details(&self, handle: &Handle) -> KrillResult<CaRepoDetails>[src]

Return the info about the configured repository server for a given Ca. and the actual objects published there, as reported by a list reply.

pub async fn ca_repo_state<'_, '_>(
    &'_ self,
    handle: &'_ Handle
) -> KrillResult<CurrentRepoState>
[src]

Returns the state of the current configured repo for a ca

pub async fn ca_update_repo<'_>(
    &'_ self,
    handle: Handle,
    update: RepositoryUpdate
) -> KrillEmptyResult
[src]

Update the repository for a CA, or return an error. (see CertAuth::repo_update)

pub fn ca_update_id(&self, handle: Handle) -> KrillEmptyResult[src]

pub fn ca_keyroll_init(&self, handle: Handle) -> KrillEmptyResult[src]

pub fn ca_keyroll_activate(&self, handle: Handle) -> KrillEmptyResult[src]

pub fn rfc6492(&self, handle: Handle, msg_bytes: Bytes) -> KrillResult<Bytes>[src]

impl KrillServer[src]

pub fn ca_routes_update(
    &self,
    handle: Handle,
    updates: RoaDefinitionUpdates
) -> KrillEmptyResult
[src]

pub fn ca_routes_show(&self, handle: &Handle) -> KrillResult<Vec<RoaDefinition>>[src]

pub fn ca_routes_bgp_analysis(
    &self,
    handle: &Handle
) -> KrillResult<BgpAnalysisReport>
[src]

impl KrillServer[src]

pub fn handle_delta(
    &self,
    publisher: PublisherHandle,
    delta: PublishDelta
) -> KrillEmptyResult
[src]

Handles a publish delta request sent to the API, or.. through the CmsProxy.

pub fn handle_list(&self, publisher: &PublisherHandle) -> KrillResult<ListReply>[src]

Handles a list request sent to the API, or.. through the CmsProxy.

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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.

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.