Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client provides access to config entry data.
func (*Client) GetConfigEntry ¶
func (c *Client) GetConfigEntry( ctx context.Context, req *structs.ConfigEntryQuery, ) (structs.ConfigEntryResponse, cache.ResultMeta, error)
GetConfigEntry returns the config entry (if possible) given the provided config entry query
func (*Client) GetSamenessGroup ¶
func (c *Client) GetSamenessGroup( ctx context.Context, req *structs.ConfigEntryQuery, ) (structs.SamenessGroupConfigEntry, cache.ResultMeta, error)
GetSamenessGroup returns the sameness group config entry (if possible) given the provided config entry query
type ConfigEntryListView ¶
type ConfigEntryListView struct {
// contains filtered or unexported fields
}
ConfigEntryListView implements a submatview.View for a list of config entries that are all of the same kind (name is treated as unique).
func NewConfigEntryListView ¶
func NewConfigEntryListView(kind string, entMeta acl.EnterpriseMeta) *ConfigEntryListView
NewConfigEntryListView contructs a ConfigEntryListView based on the enterprise meta data and the kind
func (*ConfigEntryListView) Reset ¶
func (v *ConfigEntryListView) Reset()
Reset resets the states of the list view to an empty map of Config Entries
func (*ConfigEntryListView) Result ¶
func (v *ConfigEntryListView) Result(index uint64) any
Result returns the structs.IndexedConfigEntries stored by this view.
func (*ConfigEntryListView) Update ¶
func (v *ConfigEntryListView) Update(events []*pbsubscribe.Event) error
Update updates the states containing a config entry based on events
type ConfigEntryView ¶
type ConfigEntryView struct {
// contains filtered or unexported fields
}
ConfigEntryView implements a submatview.View for a single config entry.
func (*ConfigEntryView) Reset ¶
func (v *ConfigEntryView) Reset()
Reset resets the state to nil for the ConfigEntryView
func (*ConfigEntryView) Result ¶
func (v *ConfigEntryView) Result(index uint64) any
Result returns the structs.ConfigEntryResponse stored by this view.
func (*ConfigEntryView) Update ¶
func (v *ConfigEntryView) Update(events []*pbsubscribe.Event) error
Update updates the state containing a config entry based on events