pingdomcheck

package
v0.0.0-...-50f0284 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add controller to Manager and Start it when the Manager is Started

Types

type PingdomClient

type PingdomClient interface {
	CreateHttpPingdomCheck(reqLogger logr.Logger, name string, url string) (int, error)
	UpdateHttpPingdomCheck(reqLogger logr.Logger, ID int, name string, url string) error
	DeleteHttpPingdomCheck(reqLogger logr.Logger, ID int) error
}

Interface definition

func NewRCPingdomClient

func NewRCPingdomClient(user string, password string, apikey string) (PingdomClient, error)

Get instance

type RCPingdomClient

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

Implementation based on russellcardullo pingdom client

func (*RCPingdomClient) CreateHttpPingdomCheck

func (rc *RCPingdomClient) CreateHttpPingdomCheck(reqLogger logr.Logger, name string, Url string) (int, error)

Create new http pingdomcheck

func (*RCPingdomClient) DeleteHttpPingdomCheck

func (rc *RCPingdomClient) DeleteHttpPingdomCheck(reqLogger logr.Logger, ID int) error

Delete http pingdomcheck

func (*RCPingdomClient) UpdateHttpPingdomCheck

func (rc *RCPingdomClient) UpdateHttpPingdomCheck(reqLogger logr.Logger, ID int, name string, Url string) error

Update http pingdomcheck

type ReconcilePingdomCheck

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

ReconcilePingdomCheck reconciles a PingdomCheck object

func (*ReconcilePingdomCheck) Reconcile

func (r *ReconcilePingdomCheck) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile resources lifecycle defined by PingdomCheck CRD

Jump to

Keyboard shortcuts

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