controller

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	GetClient(name string) (types.LokiClient, bool)
	Stop()
}

Controller represent a k8s controller watching for resources and create Loki clients base on them

func NewController

func NewController(informer cache.SharedIndexInformer, conf *config.Config, defaultClient types.LokiClient, logger log.Logger) (Controller, error)

NewController return Controller interface

type ControllerClient added in v0.37.0

type ControllerClient interface {
	types.LokiClient
	GetState() clusterState
	SetState(state clusterState)
}

Jump to

Keyboard shortcuts

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