discovery

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelEnable                      = "sablier.enable"
	LabelGroup                       = "sablier.group"
	LabelGroupDefaultValue           = "default"
	LabelReplicas                    = "sablier.replicas"
	LabelReplicasDefaultValue uint64 = 1
)

Variables

This section is empty.

Functions

func StopAllUnregisteredInstances

func StopAllUnregisteredInstances(ctx context.Context, provider providers.Provider, registered []string) error

StopAllUnregisteredInstances stops all auto-discovered running instances that are not yet registered as running instances by Sablier. By default, Sablier does not stop all already running instances. Meaning that you need to make an initial request in order to trigger the scaling to zero.

Types

type Group

type Group struct {
	Name      string
	Instances []Instance
}

type Instance

type Instance struct {
	Name string
}

Jump to

Keyboard shortcuts

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