Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrTimeout = errors.New("probe timed out")
ErrTimeout is the error thrown when the probe can't reach the endpoint for a longer period of time.
Functions ¶
Types ¶
type FailingProbe ¶ added in v4.49.1
FailingProbe is a prober that will always fail.
func NewFailingProbe ¶ added in v4.49.1
func NewFailingProbe(service, name, namespace string, err error) (*FailingProbe, error)
NewFailing creates a prober that will fail. Can be used if the controller can't access valid credentials.
func (FailingProbe) Close ¶ added in v4.49.1
func (p FailingProbe) Close() error
Close closes open connections.
func (FailingProbe) GetInfo ¶ added in v4.49.1
func (p FailingProbe) GetInfo() ProbeInfo
GetInfo returns the prober infos
type HTTP ¶ added in v4.62.2
type HTTP struct { ProbeInfo // contains filtered or unexported fields }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages a collection of Probers the check connectivity to AppCat services.
func NewManager ¶
func NewManager(l logr.Logger, maintenanceStatus maintenancecontroller.MaintenanceStatus) Manager
NewManager returns a new manager.
func (Manager) Collector ¶
func (m Manager) Collector() prometheus.Collector
Collector returns the histogram to store the probe results
func (Manager) StartProbe ¶
StartProbe will send a probe once every second using the provided prober. If a prober with the same ProbeInfo already runs, it will stop the running prober.
type MariaDB ¶ added in v4.66.0
type MariaDB struct { Service string Name string Namespace string Organization string HighAvailable bool ServiceLevel string // contains filtered or unexported fields }
MariaDB is a prober to test the uptime of a MariaDB instance.
func NewFailingMariaDB ¶ added in v4.66.0
NewFailingMariaDB creates a prober that will fail. Can be used if the controller can't access valid credentials.
func NewMariaDB ¶ added in v4.66.0
func NewMariaDB(service, name, namespace, dsn, organization, caCRT, serviceLevel string, ha, TLSEnabled bool) (*MariaDB, error)
NewMariaDB connects to the provided dsn and returns a prober
type PostgreSQL ¶
type PostgreSQL struct { Service string Name string Namespace string Organization string HighAvailable bool ServiceLevel string // contains filtered or unexported fields }
PostgreSQL is a prober to test the uptime of a PostgreSQL instance.
func NewFailingPostgreSQL ¶
func NewFailingPostgreSQL(service, name, namespace string) (*PostgreSQL, error)
NewFailingPostgreSQL creates a prober that will fail. Can be used if the controller can't access valid credentials.
func NewPostgreSQL ¶
func NewPostgreSQL(service, name, namespace, dsn, organization, sla string, ha bool, ops ...func(*pgxpool.Config) error) (*PostgreSQL, error)
NewPostgreSQL connects to the provided dsn and returns a prober
func (PostgreSQL) Close ¶
func (p PostgreSQL) Close() error
Close closes open connections to the PostgreSQL server.
func (PostgreSQL) GetInfo ¶
func (p PostgreSQL) GetInfo() ProbeInfo
GetInfo returns the prober infos
type ProbeInfo ¶
type ProbeInfo struct { Service string Name string Namespace string Organization string HighAvailable bool ServiceLevel string }
ProbeInfo contains meta information on a prober and in turn an AppCat service
func NewProbeInfo ¶ added in v4.39.0
type VSHNMinio ¶ added in v4.39.0
type VSHNMinio struct { Service string Name string Namespace string HighAvailable bool Organization string ServiceLevel string // contains filtered or unexported fields }