config

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSConfig added in v1.2.0

type AWSConfig struct {
	Region          string `json:"region" yaml:"region"`
	AccessKeyID     string `json:"access_key_id" yaml:"accessKeyId"`
	SecretAccessKey string `json:"secret_access_key" yaml:"secretAccessKey"`

	RDSTagFilters         map[string]string `json:"rds_tag_filters" yaml:"rdsTagFilters"`
	ElasticacheTagFilters map[string]string `json:"elasticache_tag_filters" yaml:"elasticacheTagFilters"`
}

func (*AWSConfig) Equal added in v1.2.0

func (c *AWSConfig) Equal(other *AWSConfig) bool

type ApplicationInstrumentation added in v1.2.0

type ApplicationInstrumentation struct {
	Type        string            `json:"type"`
	Host        string            `json:"host"`
	Port        string            `json:"port"`
	Credentials Credentials       `json:"credentials"`
	Params      map[string]string `json:"params"`
	Instance    string            `json:"instance"`
}

type Config added in v1.2.0

type Config struct {
	ApplicationInstrumentation []ApplicationInstrumentation `json:"application_instrumentation"`

	AWSConfig *AWSConfig `json:"aws_config"`
}

type Credentials added in v1.2.0

type Credentials struct {
	Username string `json:"username" yaml:"username"`
	Password string `json:"password" yaml:"password"`
}

type Database added in v1.11.0

type Database struct {
	Type        string            `yaml:"type"`
	Host        string            `yaml:"host"`
	Port        string            `yaml:"port"`
	RDS         string            `yaml:"rds"`
	Elasticache string            `yaml:"elasticache"`
	CloudSQL    string            `yaml:"cloudsql"`
	Memorystore string            `yaml:"memorystore"`
	Credentials Credentials       `yaml:"credentials"`
	Params      map[string]string `yaml:"params"`
}

type GCPConfig added in v1.11.2

type GCPConfig struct {
	ProjectID               string            `json:"project_id" yaml:"projectId"`
	Region                  string            `json:"region" yaml:"region"`
	CredentialsJSON         string            `json:"credentials_json" yaml:"credentialsJson"`
	CloudSQLLabelFilters    map[string]string `json:"cloudsql_label_filters" yaml:"cloudsqlLabelFilters"`
	MemorystoreLabelFilters map[string]string `json:"memorystore_label_filters" yaml:"memorystoreLabelFilters"`
}

func (*GCPConfig) Equal added in v1.11.2

func (c *GCPConfig) Equal(other *GCPConfig) bool

type Listener

type Listener interface {
	ListenConfigUpdates(updates <-chan Config)
}

type Static added in v1.11.0

type Static struct {
	AWS       *AWSConfig `yaml:"aws"`
	GCP       *GCPConfig `yaml:"gcp"`
	Databases []Database `yaml:"databases"`
}

func LoadStatic added in v1.11.0

func LoadStatic(path string) (*Static, error)

func (*Static) Validate added in v1.11.0

func (s *Static) Validate() error

type Updater

type Updater struct {
	// contains filtered or unexported fields
}

func NewUpdater

func NewUpdater() (*Updater, error)

func (*Updater) Start

func (u *Updater) Start()

func (*Updater) Stop

func (u *Updater) Stop()

func (*Updater) SubscribeForUpdates added in v1.2.0

func (u *Updater) SubscribeForUpdates(l Listener)

Jump to

Keyboard shortcuts

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