Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTimeout = time.Second
Functions ¶
This section is empty.
Types ¶
type AXFRScanner ¶
type AXFRScanner struct {
DNSServer string
Domain string
Ports []int16
Scans []ConnScanner
Concurrency int
// contains filtered or unexported fields
}
AXFRScanner will query DNS records via AXFR and aggregate the results of each IP (and theirrelated DNS records) represented in the set of DNS records.
type Certer ¶
type Certer interface {
Read(context.Context, chan<- *x509.Certificate, chan<- error)
}
type ChanCerter ¶
type ChanCerter struct {
// contains filtered or unexported fields
}
func (ChanCerter) Read ¶
func (cc ChanCerter) Read(ctx context.Context, cout chan<- *x509.Certificate, eout chan<- error)
type ConnScanFunc ¶
type ConnScanner ¶
type HandshakeScanner ¶
A HandshakeScanner can scan a connection with multiple DNSNames
type KubeSecretScanner ¶
type KubeSecretScanner struct {
KubeConfig *rest.Config
// Any extra ways of extracting data from secrets files
Extra []func(v1.Secret) ([]*x509.Certificate, error)
}
A KubeSecretScanner can scan kubernetes secrets from inside the cluster.
func (*KubeSecretScanner) Read ¶
func (s *KubeSecretScanner) Read(ctx context.Context, certs chan<- *x509.Certificate, errs chan<- error)
Read implements Certer
type MultiScanner ¶
MultiScanner can aggregate multiple scanners concurrently
type SecretDataError ¶
SecretDataError describes secrets that were invalid, and the secret key.
func (*SecretDataError) Error ¶
func (k *SecretDataError) Error() string
type SliceCerter ¶
type SliceCerter []*x509.Certificate
func (SliceCerter) Read ¶
func (sc SliceCerter) Read(ctx context.Context, cout chan<- *x509.Certificate, eout chan<- error)
Click to show internal directories.
Click to hide internal directories.