api

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LazyLoadedStringMapProvider

type LazyLoadedStringMapProvider interface {
	GetStringMap(string) (map[string]interface{}, error)
}

LazyLoadedStringMapProvider is a variant of string-map providers that connects to/loads the source at the time of getting a value

type LazyLoadedStringProvider

type LazyLoadedStringProvider interface {
	GetString(string) (string, error)
}

LazyLoadedStringProvider is a variant of value providers that connects to/loads the source at the time of getting a value

type Merger

type Merger interface {
	Merge(map[string]interface{}, map[string]interface{}) (map[string]interface{}, error)
	IgnorePrefix() string
}

type StaticConfig

type StaticConfig interface {
	String(...string) string
	Config(...string) StaticConfig
	Exists(...string) bool
	Map(...string) map[string]interface{}
	StringSlice(...string) []string
}

StaticConfig is pre-loaded configuration that has zero changes to fail at the time of getting values. Examples of StaticConfig:

values:

  • provider: type: string name: ssm prefix: myteam/mysvc1 region: ap-northeast-1 inline: dst1: src1

values:

  • provider: type: map name: ssm prefix: myteam/mysvc1 region: ap-northeast-1 strategy: raw inline: dst1: src1

values:

  • provider: type: map name: ssm prefix: myteam/mysvc1 region: ap-northeast-1 strategy: yaml inline: dst1: src1

values:

  • provider: type: string name: vault address: http://127.0.0.1:8200 path: secrets/myteam/mysvc1 inline: dst1: src1

values:

Jump to

Keyboard shortcuts

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