ssllabs

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// API SSLLabs API URL
	API = "https://api.ssllabs.com/api/v3/"
	// StatusDNS assessment still in DNS resolution phase
	StatusDNS = "DNS"
	// StatusError error running the assessment (e.g target behind a firewall)
	StatusError = "ERROR"
	// StatusInProgress assessment in progress
	StatusInProgress = "IN_PROGRESS"
	// StatusReady SSLLabs assessment finished successfully
	StatusReady = "READY"
	// StatusHTTPError error processing the HTTP response from SSLLabs API
	StatusHTTPError = "HTTP_ERROR"
	// StatusServerError SSLLabs API server error or rate limiting
	StatusServerError = "SERVER_ERROR"
	// StatusDeadlineExceeded assessment deadline exceeded
	StatusDeadlineExceeded = "DEADLINE_EXCEEDED"
	// StatusAborted assessment canceled by the client
	StatusAborted = "ABORTED"
)

Variables

This section is empty.

Functions

func Analyze

func Analyze(ctx context.Context, logger log.Logger, target string) (result *ssllabsApi.AnalyzeInfo, err error)

Analyze executes the SSL test HTTP requests

Types

type APIInfo

type APIInfo struct {
	EngineVersion      string `json:"engineVersion"`
	CriteriaVersion    string `json:"criteriaVersion"`
	MaxAssessments     int    `json:"maxAssessments"`
	CurrentAssessments int    `json:"currentAssessments"`
}

APIInfo /info endpoint result

func Info

func Info() (info APIInfo, err error)

Info calls /info endpoint and returns and Info

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL