sentinel

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 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 Generator

type Generator struct {
	generators.BaseOptionsV2
	Spec    saasv1alpha1.SentinelSpec
	Options pod.Options
}

Generator configures the generators for Sentinel

func NewGenerator

func NewGenerator(instance, namespace string, spec saasv1alpha1.SentinelSpec) Generator

NewGenerator returns a new Options struct

func (*Generator) ClusterTopology

func (gen *Generator) ClusterTopology(ctx context.Context) (map[string]map[string]string, error)

func (*Generator) PodServiceName

func (gen *Generator) PodServiceName(index int) string

PodServiceName generates the name of the pod specific Service

func (*Generator) Resources

func (gen *Generator) Resources() []resource.TemplateInterface

Resources returns a list of templates

func (*Generator) SentinelURIs

func (gen *Generator) SentinelURIs() []string

SentinelEndpoints returns the list of redis URLs of all the sentinels These URLs point to the Pod specific Service of each sentinel Pod

Jump to

Keyboard shortcuts

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