Documentation ¶
Index ¶
- Constants
- func ParseCSR(csr []byte) (*x509.CertificateRequest, error)
- type Client
- func (c *Client) ApproveRequest(id, message, value string) error
- func (c *Client) CheckDomainNames(domains []string) ([]models.DomainResponse, error)
- func (c *Client) CheckMatchingOrganization(domains []string) ([]models.OrganizationResponse, error)
- func (c *Client) GetCertificate(id string) (*models.CertificateResponse, error)
- func (c *Client) GetMyTransactions() ([]models.TransactionResponse, error)
- func (c *Client) GetOrganizations() ([]models.Organization, error)
- func (c *Client) GetPendingReviews() ([]models.ReviewResponse, error)
- func (c *Client) GetRevocationReasons() ([]models.RevocationReasonsResponse, error)
- func (c *Client) RequestCertificate(domains []string, csr string, transactionType string, ...) (*models.CertificateRequestResponse, error)
- func (c *Client) RevokeCertificate(reason models.RevocationReasonsResponse, comment string, transactionId string) error
- func (c *Client) SessionRefresh(force bool) error
- func (c *Client) TriggerValidation(organizatonId, email string) error
- type Domain
- type Option
- type UnexpectedResponseCodeError
- type UnexpectedResponseContentTypeError
Constants ¶
View Source
const ( BaseURL = "https://cm.harica.gr" LoginPath = "/api/User/Login" LoginPathTotp = "/api/User/Login2FA" CreatePrevalidaitonPath = "/api/OrganizationAdmin/CreatePrevalidatedValidation" GetOrganizationsPath = "/api/OrganizationAdmin/GetOrganizations" UpdateReviewsPath = "/api/OrganizationValidatorSSL/UpdateReviews" GetReviewableTransactionsPath = "/api/OrganizationValidatorSSL/GetSSLReviewableTransactions" RevokeCertificatePath = "/api/OrganizationValidatorSSL/RevokeCertificate" GetCertificatePath = "/api/Certificate/GetCertificate" RevocationReasonsPath = "/api/Certificate/GetRevocationReasons" DomainValidationsPath = "/api/ServerCertificate/GetDomainValidations" CheckMatchingOrganizationPath = "/api/ServerCertificate/CheckMachingOrganization" CheckDomainNamesPath = "/api/ServerCertificate/CheckDomainNames" RequestServerCertificatePath = "/api/ServerCertificate/RequestServerCertificate" GetMyTransactionsPath = "/api/ServerCertificate/GetMyTransactions" ApplicationJson = "application/json" DnsValidation = "3.2.2.4.7" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ApproveRequest ¶
func (*Client) CheckDomainNames ¶
func (c *Client) CheckDomainNames(domains []string) ([]models.DomainResponse, error)
func (*Client) CheckMatchingOrganization ¶
func (c *Client) CheckMatchingOrganization(domains []string) ([]models.OrganizationResponse, error)
func (*Client) GetCertificate ¶
func (c *Client) GetCertificate(id string) (*models.CertificateResponse, error)
func (*Client) GetMyTransactions ¶ added in v1.3.0
func (c *Client) GetMyTransactions() ([]models.TransactionResponse, error)
func (*Client) GetOrganizations ¶
func (c *Client) GetOrganizations() ([]models.Organization, error)
func (*Client) GetPendingReviews ¶
func (c *Client) GetPendingReviews() ([]models.ReviewResponse, error)
func (*Client) GetRevocationReasons ¶
func (c *Client) GetRevocationReasons() ([]models.RevocationReasonsResponse, error)
func (*Client) RequestCertificate ¶
func (c *Client) RequestCertificate(domains []string, csr string, transactionType string, organization models.OrganizationResponse) (*models.CertificateRequestResponse, error)
func (*Client) RevokeCertificate ¶
func (*Client) SessionRefresh ¶ added in v1.1.0
func (*Client) TriggerValidation ¶
type UnexpectedResponseCodeError ¶ added in v1.4.0
type UnexpectedResponseCodeError struct {
Code int
}
func (*UnexpectedResponseCodeError) Error ¶ added in v1.4.0
func (e *UnexpectedResponseCodeError) Error() string
type UnexpectedResponseContentTypeError ¶
type UnexpectedResponseContentTypeError struct {
ContentType string
}
func (*UnexpectedResponseContentTypeError) Error ¶
func (e *UnexpectedResponseContentTypeError) Error() string
Click to show internal directories.
Click to hide internal directories.