statuscake

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FactoryFunc

func FactoryFunc(k8sClient kubernetes.Interface, prov v1alpha1.NamespacedProvider) (provider.Interface, error)

FactoryFunc is the function which will allow us to create clients on the fly which connect to StatusCake.

func Register

func Register(fact provider.FactoryInterface)

Register registers the provider with a certain factory using the FactoryFunc.

Types

type Client

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

Client is a wrapper around the StatusCake API Client. This wrapper provides a mapping from a Provider interface to the actual StatusCake Client.

func (*Client) Create

func (c *Client) Create(spec v1alpha1.MonitorTemplateSpec) (string, error)

Create translates the MonitorTemplateSpec and creates a new instance with StatusCake.

func (*Client) Delete

func (c *Client) Delete(id string) error

Delete deletes the monitor which is linked to the given ID from StatusCake.

func (*Client) Update

func (c *Client) Update(id string, spec v1alpha1.MonitorTemplateSpec) (string, error)

Update updates the Monitor linked to the given ID with the new configuration.

Jump to

Keyboard shortcuts

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