Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrGoGetUnexpectedError = errors.New("go-get unexpected error") ErrGoGetPathNotFound = errors.New("go-get path not found") ErrGoGetNotFound = errors.New("go-get meta tag not found") ErrGoGetContentMismatch = errors.New("go-get meta tag content mismatch") )
Functions ¶
This section is empty.
Types ¶
type GoGetTest ¶
type GoGetTest struct {
// contains filtered or unexported fields
}
GoGetTest can be used to validate go-get meta tags for a set of import paths.
type HealthzSpec ¶
type HealthzTest ¶
type HealthzTest struct {
// contains filtered or unexported fields
}
HealthzTest can be used to validate /healthz endpoints.
func NewHealthzTest ¶
func NewHealthzTest(client *http.Client, specs ...HealthzSpec) *HealthzTest
type RedirectSpec ¶
type RedirectSpec struct {
URL string `yaml:"url" json:"url"`
Target string `yaml:"target" json:"target"`
Code int `yaml:"code" json:"code"`
}
RedirectSpec represents a specification for a redirect test.
type RedirectTest ¶
type RedirectTest struct {
// contains filtered or unexported fields
}
RedirectTest can be used to validate redirects for a set of URLs.
func NewRedirectTest ¶
func NewRedirectTest(client *http.Client, redirects ...RedirectSpec) *RedirectTest
NewRedirectTest creates a new RedirectTest, if client.CheckRedirect is nil, it will be set to http.ErrUseLastResponse to ensure that redirects are not followed.
type TLSSpec ¶
type TLSSpec struct {
Host string `yaml:"host"`
Port string `yaml:"port"`
ExpandDNSNames bool `yaml:"expand-dns-names"` // see tlsvalidate.WithExpandDNSNames
CheckSerialNumbers bool `yaml:"check-serial-numbers"` // see tlsvalidate.WithCheckSerialNumbers
ValidFor time.Duration `yaml:"valid-for"` // see tlsvalidate.WithValidForAtLeast
TLSMinVersion uint16 `yaml:"tls-min-version"` // see tlsvalidate.WithTLSMinVersion
IssuerREs []string `yaml:"issuer-res"` // see tlsvalidate.WithIssuerRegexps
CustomCAPEM string `yaml:"custom-ca-pem"` // used tlsvalidate.WithCustomRootCAPEM
// contains filtered or unexported fields
}
TLSSpec represents a specification for a TLS test.
func WithCustomCAPEMFile ¶
WithCustomCAPEMFile sets the custom CA PEM file for all specs if not already set in each/any spec.
Click to show internal directories.
Click to hide internal directories.