[−][src]Struct krill::daemon::krillserver::KrillServer
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]
&self,
req: PublisherRequest
) -> KrillResult<RepositoryResponse>
Adds the publishers, blows up if it already existed.
pub fn remove_publisher(
&mut self,
publisher: PublisherHandle
) -> KrillEmptyResult
[src]
&mut self,
publisher: PublisherHandle
) -> KrillEmptyResult
Removes a publisher, blows up if it didn't exist.
pub fn get_publisher(
&self,
publisher: &PublisherHandle
) -> KrillResult<PublisherDetails>
[src]
&self,
publisher: &PublisherHandle
) -> KrillResult<PublisherDetails>
Returns a publisher.
pub fn rrdp_base_path(&self) -> PathBuf
[src]
impl KrillServer
[src]
pub fn repository_response(
&self,
publisher: &PublisherHandle
) -> KrillResult<RepositoryResponse>
[src]
&self,
publisher: &PublisherHandle
) -> KrillResult<RepositoryResponse>
pub fn rfc8181(
&self,
publisher: PublisherHandle,
msg_bytes: Bytes
) -> KrillResult<Bytes>
[src]
&self,
publisher: PublisherHandle,
msg_bytes: Bytes
) -> KrillResult<Bytes>
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]
&self,
parent: &ParentHandle,
req: AddChildRequest
) -> KrillResult<ParentCaContact>
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]
&self,
parent: &ParentHandle,
child: ChildHandle
) -> KrillResult<ParentCaContact>
Shows the parent contact for a child.
pub fn ca_parent_response(
&self,
parent: &ParentHandle,
child: ChildHandle
) -> KrillResult<ParentResponse>
[src]
&self,
parent: &ParentHandle,
child: ChildHandle
) -> KrillResult<ParentResponse>
Shows the parent contact for a child.
pub fn ca_child_update(
&self,
parent: &ParentHandle,
child: ChildHandle,
req: UpdateChildRequest
) -> KrillEmptyResult
[src]
&self,
parent: &ParentHandle,
child: ChildHandle,
req: UpdateChildRequest
) -> KrillEmptyResult
Update IdCert or resources of a child.
pub fn ca_child_remove(
&self,
handle: &Handle,
child: ChildHandle
) -> KrillEmptyResult
[src]
&self,
handle: &Handle,
child: ChildHandle
) -> KrillEmptyResult
Update IdCert or resources of a child.
pub fn ca_child_show(
&self,
parent: &ParentHandle,
child: &ChildHandle
) -> KrillResult<ChildCaInfo>
[src]
&self,
parent: &ParentHandle,
child: &ChildHandle
) -> KrillResult<ChildCaInfo>
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]
&'_ self,
handle: Handle,
parent: ParentCaReq
) -> KrillEmptyResult
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]
&'_ self,
handle: Handle,
parent: ParentHandle,
contact: ParentCaContact
) -> KrillEmptyResult
Updates a parent contact for a CA
pub fn ca_parent_remove(
&self,
handle: Handle,
parent: ParentHandle
) -> KrillEmptyResult
[src]
&self,
handle: Handle,
parent: ParentHandle
) -> KrillEmptyResult
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]
&'_ self,
ca_handle: &'_ Handle
) -> KrillResult<CertAuthIssues>
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]
&self,
handle: &Handle,
parent: &ParentHandle
) -> KrillResult<ParentCaContact>
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]
&self,
handle: &Handle,
crit: CommandHistoryCriteria
) -> Option<CommandHistory>
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]
&self,
handle: &Handle,
command: CommandKey
) -> KrillResult<Option<CaCommandDetails>>
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]
&'_ self,
handle: &'_ Handle
) -> KrillResult<CurrentRepoState>
Returns the state of the current configured repo for a ca
pub async fn ca_update_repo<'_>(
&'_ self,
handle: Handle,
update: RepositoryUpdate
) -> KrillEmptyResult
[src]
&'_ self,
handle: Handle,
update: RepositoryUpdate
) -> KrillEmptyResult
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]
&self,
handle: Handle,
updates: RoaDefinitionUpdates
) -> KrillEmptyResult
pub fn ca_routes_show(&self, handle: &Handle) -> KrillResult<Vec<RoaDefinition>>
[src]
pub fn ca_routes_bgp_analysis(
&self,
handle: &Handle
) -> KrillResult<BgpAnalysisReport>
[src]
&self,
handle: &Handle
) -> KrillResult<BgpAnalysisReport>
impl KrillServer
[src]
pub fn handle_delta(
&self,
publisher: PublisherHandle,
delta: PublishDelta
) -> KrillEmptyResult
[src]
&self,
publisher: PublisherHandle,
delta: PublishDelta
) -> KrillEmptyResult
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
impl !RefUnwindSafe for KrillServer
impl Send for KrillServer
impl Sync for KrillServer
impl Unpin for KrillServer
impl !UnwindSafe for KrillServer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,