ssl

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSSLChecker

func NewSSLChecker(conf interface{}, pluginConf interface{}) (plugins.Checker, error)

NewSSLChecker create a SSL checker

Types

type Duration

type Duration struct {
	time.Duration
}

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() (b []byte, err error)

func (Duration) String

func (d Duration) String() string

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) (err error)

type SSLChecker

type SSLChecker struct {
	// contains filtered or unexported fields
}

SSLChecker is a plugin to check SSL certificate expiration date

func (SSLChecker) Name

func (c SSLChecker) Name() string

Name returns the name of the checker

func (SSLChecker) Periodicity

func (c SSLChecker) Periodicity() *time.Duration

Periodicity returns the delay between two checks

func (*SSLChecker) Run

func (c *SSLChecker) Run(ctx context.Context) plugins.Result

Run is performing the checker protocol

func (SSLChecker) ServiceName

func (c SSLChecker) ServiceName() string

ServiceName returns the name of the NSCA service associated to the checker

Jump to

Keyboard shortcuts

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