twemproxyconfig

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HealthPoolName    string = "health"
	HealthBindAddress string = "127.0.0.1:22333"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	generators.BaseOptionsV2
	Spec saasv1alpha1.TwemproxyConfigSpec
	// contains filtered or unexported fields
}

Generator configures the generators for Sentinel

func NewGenerator

func NewGenerator(ctx context.Context, instance *saasv1alpha1.TwemproxyConfig, cl client.Client,
	pool *server.ServerPool, log logr.Logger) (Generator, error)

NewGenerator returns a new Options struct

func (*Generator) ConfigMap

func (gen *Generator) ConfigMap() *resource.Template[*corev1.ConfigMap]

Returns the twemproxy config ConfigMap

func (*Generator) GetTargets

func (gen *Generator) GetTargets(poolName string) map[string]twemproxy.Server

func (*Generator) GrafanaDashboard

func (gen *Generator) GrafanaDashboard() *resource.Template[*grafanav1alpha1.GrafanaDashboard]

Jump to

Keyboard shortcuts

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