config

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MenuConfigMap = "k8s-ces-menu-json"
	EnvVarStage   = "STAGE"
	StageLocal    = "local"
	DevConfigPath = "k8s/dev-resources/k8s-ces-warp-config.yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Sources []Source
	Target  string
	Order   Order
	Support []SupportSource
}

Configuration for warp menu creation

func ReadConfiguration

func ReadConfiguration(ctx context.Context, client client.Client, namespace string) (*Configuration, error)

ReadConfiguration reads the service discovery configuration. Either from file in development mode with environment variable stage=development or from the cluster state

type Order

type Order map[string]int

Order can be used to modify ordering via configuration

type Source

type Source struct {
	Path string
	Type string
	Tag  string
}

Source in etcd

type SupportSource

type SupportSource struct {
	Identifier string
	External   bool
	Href       string
}

SupportSource for SupportEntries from yaml

Jump to

Keyboard shortcuts

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