Browse Source

Use the HookType enum from the hook module

pull/5/head
Rodolphe Breard 6 years ago
parent
commit
3ccfc9e327
  1. 4
      acmed/src/certificate.rs
  2. 2
      acmed/src/hooks.rs
  3. 3
      acmed/src/storage.rs

4
acmed/src/certificate.rs

@ -1,6 +1,6 @@
use crate::acme_proto::Challenge; use crate::acme_proto::Challenge;
use crate::config::{Account, Domain, HookType};
use crate::hooks::{self, ChallengeHookData, Hook, HookEnvData, PostOperationHookData};
use crate::config::{Account, Domain};
use crate::hooks::{self, ChallengeHookData, Hook, HookEnvData, HookType, PostOperationHookData};
use crate::storage::{certificate_files_exists, get_certificate}; use crate::storage::{certificate_files_exists, get_certificate};
use acme_common::crypto::X509Certificate; use acme_common::crypto::X509Certificate;
use acme_common::error::Error; use acme_common::error::Error;

2
acmed/src/hooks.rs

@ -1,5 +1,5 @@
use crate::certificate::Certificate; use crate::certificate::Certificate;
use crate::config::HookType;
pub use crate::config::HookType;
use acme_common::error::Error; use acme_common::error::Error;
use handlebars::Handlebars; use handlebars::Handlebars;
use serde::Serialize; use serde::Serialize;

3
acmed/src/storage.rs

@ -1,6 +1,5 @@
use crate::certificate::Certificate; use crate::certificate::Certificate;
use crate::config::HookType;
use crate::hooks::{self, FileStorageHookData, HookEnvData};
use crate::hooks::{self, FileStorageHookData, HookEnvData, HookType};
use acme_common::b64_encode; use acme_common::b64_encode;
use acme_common::crypto::{KeyPair, X509Certificate}; use acme_common::crypto::{KeyPair, X509Certificate};
use acme_common::error::Error; use acme_common::error::Error;

Loading…
Cancel
Save