20 lines
577 B
Go
20 lines
577 B
Go
package state
|
|
|
|
import (
|
|
"github.com/hashicorp/consul/agent/configentry"
|
|
"github.com/hashicorp/consul/agent/structs"
|
|
"github.com/hashicorp/go-memdb"
|
|
)
|
|
|
|
// GetSamenessGroup returns a SamenessGroupConfigEntry from the state
|
|
// store using the provided parameters.
|
|
func (s *Store) GetSamenessGroup(ws memdb.WatchSet,
|
|
name string,
|
|
overrides map[configentry.KindName]structs.ConfigEntry,
|
|
partition string) (uint64, *structs.SamenessGroupConfigEntry, error) {
|
|
tx := s.db.ReadTxn()
|
|
defer tx.Abort()
|
|
|
|
return getSamenessGroupConfigEntryTxn(tx, ws, name, overrides, partition)
|
|
}
|