Documentation ¶
Index ¶
- type CertData
- type CertDataSet
- type HostSet
- func (hostSet *HostSet) Add(items ...string)
- func (hostSet *HostSet) Process(warnAtDays int, timeout time.Duration) *CertDataSet
- func (hostSet *HostSet) ProcessCertFile(bytes []byte, warnAtDays int, timeout time.Duration) *CertDataSet
- func (hostSet *HostSet) ProcessFuture(warnAtDays int, timeout time.Duration) *CertDataSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertData ¶
type CertData struct { // ID int `json:"-" yaml:"-"` Host string `json:"host" yaml:"host"` HostError bool `json:"hosterror" yaml:"hosterror"` Message string `json:"message" yaml:"message"` ExpiryWarning bool `json:"expirywarning" yaml:"expirywarning"` Issuer string `json:"issuer" yaml:"issuer"` Port string `json:"port" yaml:"port"` TotalDays int `json:"totaldays" yaml:"totaldays"` DaysToExpiry int `json:"daystoexpiry" yaml:"daystoexpiry"` WarnAtDays int `json:"warnatdays" yaml:"warnatdays"` CheckTime string `json:"checktime" yaml:"checktime"` NotBefore string `json:"notbefore" yaml:"notbefore"` NotAfter string `json:"notafter" yaml:"notafter"` FetchTime string `json:"fetchtime" yaml:"fetchtime"` }
CertData values for a TLS certificate
type CertDataSet ¶
type CertDataSet struct { Total int `json:"total" yaml:"total"` HostErrors int `json:"hosterrors" yaml:"hosterrors"` ExpiredWarnings int `json:"expirywarnings" yaml:"expirywarnings"` CertData []CertData `json:"certdata" yaml:"certdata"` }
CertDataSet a set of TLS certificate data for a list of hosts plus summary
func (*CertDataSet) JSON ¶
func (certDataSet *CertDataSet) JSON() (bytes []byte, err error)
JSON get JSON representation of data for a set of host certificates
func (*CertDataSet) YAML ¶
func (certDataSet *CertDataSet) YAML() (bytes []byte, err error)
YAML get YAML representation of data for a set of host certificates
type HostSet ¶
type HostSet struct {
Hosts []string
}
HostSet hosts to process into cert value set
func (*HostSet) Process ¶
func (hostSet *HostSet) Process(warnAtDays int, timeout time.Duration) *CertDataSet
Process process list of hosts and for each get back cert values
func (*HostSet) ProcessCertFile ¶ added in v0.1.1
func (hostSet *HostSet) ProcessCertFile(bytes []byte, warnAtDays int, timeout time.Duration) *CertDataSet
ProcessCertFile process a certificate file
func (*HostSet) ProcessFuture ¶
func (hostSet *HostSet) ProcessFuture(warnAtDays int, timeout time.Duration) *CertDataSet
ProcessFuture process list of hosts and for each get back cert values
Click to show internal directories.
Click to hide internal directories.