configmanager

package
v0.0.0-...-32f485c Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CheckMetadata   = flag.Bool("check_metadata", false, `enable fetching service name, config ID and rollout strategy from service metadata server`)
	RolloutStrategy = flag.String("rollout_strategy", "fixed", `service config rollout strategy, must be either "managed" or "fixed"`)
	ServiceConfigId = flag.String("service_config_id", "", "initial service config id")
	ServiceName     = flag.String("service", "", "endpoint service name")
	ServicePath     = flag.String("service_json_path", "", `file path to the endpoint service config.
					When this flag is used, fixed rollout_strategy will be used,
					GCP metadata server will not be called to fetch access token, and
					following flags will be ignored; --service_config_id, --service,
					--rollout_strategy`)
)

Functions

This section is empty.

Types

type ConfigManager

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

Config Manager handles service configuration fetching and updating. TODO(jilinxia): handles multi service name.

func NewConfigManager

NewConfigManager creates new instance of Config Manager. mf is set to nil on non-gcp deployments

func (*ConfigManager) Cache

func (m *ConfigManager) Cache() cache.Cache

Cache returns snapshot cache.

func (*ConfigManager) Debugf

func (m *ConfigManager) Debugf(format string, args ...interface{})

Debugf implements the Debugf method for Log interface.

func (*ConfigManager) Errorf

func (m *ConfigManager) Errorf(format string, args ...interface{})

Errorf implements the Errorf method for Log interface.

func (*ConfigManager) ID

func (m *ConfigManager) ID(node *corepb.Node) string

func (*ConfigManager) Infof

func (m *ConfigManager) Infof(format string, args ...interface{})

Infof implements the Infof method for Log interface.

func (*ConfigManager) Warnf

func (m *ConfigManager) Warnf(format string, args ...interface{})

Warnf implements the Warnf method for Log interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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