// NewConsulConfigManager returns a new ConfigManager backed by consul. // Data will be encrypted. func NewConsulConfigManager(machines []string, keystore io.Reader) (ConfigManager, error) { store, err := consul.New(machines) if err != nil { return nil, err } return NewConfigManager(store, keystore) }
// NewStandardConsulConfigManager returns a new ConfigManager backed by consul. func NewStandardConsulConfigManager(machines []string) (ConfigManager, error) { store, err := consul.New(machines) if err != nil { return nil, err } return NewStandardConfigManager(store) }