controller

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: MPL-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdateCollectorSet

func CreateOrUpdateCollectorSet(collectorset *crv1alpha1.CollectorSet, controller *Controller) ([]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 *client.LMSdkGo
	Storage            storage.Storage
	CollectorsetConfig *config.Config
}

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