Documentation ¶
Index ¶
- Variables
- type ConfigManager
- func (m *ConfigManager) Cache() cache.Cache
- func (m *ConfigManager) Debugf(format string, args ...interface{})
- func (m *ConfigManager) Errorf(format string, args ...interface{})
- func (m *ConfigManager) ID(node *corepb.Node) string
- func (m *ConfigManager) Infof(format string, args ...interface{})
- func (m *ConfigManager) Warnf(format string, args ...interface{})
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 ¶
func NewConfigManager(mf *metadata.MetadataFetcher, opts options.ConfigGeneratorOptions) (*ConfigManager, error)
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) 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.
Click to show internal directories.
Click to hide internal directories.