controller

package
v0.0.0-...-9374869 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdateCollectorSet

func CreateOrUpdateCollectorSet(collectorset *crv1alpha1.CollectorSet, lmClient *lm.DefaultApi, client clientset.Interface) ([]int32, error)

CreateOrUpdateCollectorSet creates a replicaset for each collector in a CollectorSet

func DeleteCollectorSet

func DeleteCollectorSet(collectorset *crv1alpha1.CollectorSet, client clientset.Interface) error

DeleteCollectorSet deletes the collectorset.

Types

type Controller

type Controller struct {
	*collectorsetclient.Client
	CollectorSetScheme *runtime.Scheme
	LogicmonitorClient *lm.DefaultApi
	Storage            storage.Storage
}

Controller is the Kubernetes controller object for LogicMonitor collectors.

func New

func New(collectorsetconfig *config.Config, storage storage.Storage) (*Controller, error)

New instantiates and returns a Controller and an error if any.

func (*Controller) Run

func (c *Controller) Run(ctx context.Context) error

Run starts a CollectorSet resource controller.

Jump to

Keyboard shortcuts

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