2023-03-28 20:12:41 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2023-03-13 21:19:11 +00:00
|
|
|
package api
|
|
|
|
|
|
|
|
type SamenessGroupConfigEntry struct {
|
2023-03-31 18:35:56 +00:00
|
|
|
Kind string
|
|
|
|
Name string
|
|
|
|
Partition string `json:",omitempty"`
|
|
|
|
DefaultForFailover bool `json:",omitempty" alias:"default_for_failover"`
|
|
|
|
IncludeLocal bool `json:",omitempty" alias:"include_local"`
|
|
|
|
Members []SamenessGroupMember
|
|
|
|
Meta map[string]string `json:",omitempty"`
|
|
|
|
CreateIndex uint64
|
|
|
|
ModifyIndex uint64
|
2023-03-13 21:19:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type SamenessGroupMember struct {
|
2023-04-21 13:18:32 +00:00
|
|
|
Partition string `json:",omitempty"`
|
|
|
|
Peer string `json:",omitempty"`
|
2023-03-13 21:19:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *SamenessGroupConfigEntry) GetKind() string { return s.Kind }
|
|
|
|
func (s *SamenessGroupConfigEntry) GetName() string { return s.Name }
|
|
|
|
func (s *SamenessGroupConfigEntry) GetPartition() string { return s.Partition }
|
|
|
|
func (s *SamenessGroupConfigEntry) GetNamespace() string { return "" }
|
|
|
|
func (s *SamenessGroupConfigEntry) GetCreateIndex() uint64 { return s.CreateIndex }
|
|
|
|
func (s *SamenessGroupConfigEntry) GetModifyIndex() uint64 { return s.ModifyIndex }
|
|
|
|
func (s *SamenessGroupConfigEntry) GetMeta() map[string]string { return s.Meta }
|