Documentation ¶
Index ¶
Constants ¶
View Source
const ( ERROR_SERVER_RETURN_NOT_200 = "server returned an error" ERROR_FAILED_TO_FETCH = "failed to fetch" ERROR_FAILED_TO_MARSHAL_JSON = "failed to marshal json" ERROR_FAILED_TO_PARSE_CERT = "failed to parse certificate" ERROR_FAILED_TO_READ_BODY = "failed to read body" )
View Source
const SSLMATE_API_URL = "https://api.certspotter.com/v1/issuances"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSLMateCert ¶
type SSLMateSearchAPI ¶
type SSLMateSearchAPI struct {
Token string
}
func Default ¶
func Default() *SSLMateSearchAPI
func New ¶
func New(token string) *SSLMateSearchAPI
func (*SSLMateSearchAPI) Search ¶
func (api *SSLMateSearchAPI) Search(query *Query) ([]x509.Certificate, *Index, error)
func (*SSLMateSearchAPI) SearchJsonCerts ¶
func (api *SSLMateSearchAPI) SearchJsonCerts(query *Query) (Json, error)
func (*SSLMateSearchAPI) SearchSSLMateCerts ¶
func (api *SSLMateSearchAPI) SearchSSLMateCerts(query *Query) ([]SSLMateCert, error)
Click to show internal directories.
Click to hide internal directories.