Documentation ¶
Index ¶
- func SelectorsHelperCache(s *Selectors)
- func SelectorsHelperCacheValue(s *Selectors) string
- type AcquireConfigurationFailRes
- type AcquireConfigurationReq
- type AcquireConfigurationRes
- type Configuration
- type DataPump
- type DataWriter
- type Event
- type GetConfigurationRes
- type PublishReq
- type PublishRes
- type RawConfiguration
- type RequestedConfigurationKey
- type Selectors
- type VersionComparator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SelectorsHelperCache ¶
func SelectorsHelperCache(s *Selectors)
Types ¶
type AcquireConfigurationReq ¶
type AcquireConfigurationReq struct { Requested []RequestedConfigurationKey `cbor:"req,"` Selectors Selectors `cbor:"selectors,"` OptionalSelectors Selectors `cbor:"opt_selectors,"` }
type AcquireConfigurationRes ¶
type AcquireConfigurationRes struct {
Requested []Configuration `cbor:"req,"`
}
type Configuration ¶
type Configuration struct { // Group is a set of configurations Group string `cbor:"group,"` // Key is the name of the configuration Key string `cbor:"key,"` // Version represents the unique configuration history Version string `cbor:"version,"` // Value is the complete data of the configuration Value []byte `cbor:"value,"` // Signature represents the data integrity of the configuration Signature string `cbor:"sign,"` // Selector represents the part where the configuration will be used Selectors Selectors `cbor:"selectors,"` // OptionalSelectors is used for optional selectors matching OptionalSelectors Selectors `cbor:"opt_selectors,"` // Timestamp is the unix timestamp in second of the effective time(create/update) of this configuration Timestamp int64 `cbor:"timestamp,"` }
func (*Configuration) GenerateSignature ¶ added in v0.10.10
func (c *Configuration) GenerateSignature() string
func (*Configuration) ValidateSignature ¶ added in v0.10.10
func (c *Configuration) ValidateSignature() bool
type DataWriter ¶ added in v0.10.10
type Event ¶
type Event struct { Configuration *Configuration Created bool Modified bool Deleted bool }
type GetConfigurationRes ¶
type GetConfigurationRes struct { Code string `cbor:"code,"` Message string `cbor:"msg,"` Configuration Configuration `cbor:"cfg"` }
type PublishReq ¶
type PublishReq struct { Configuration RawConfiguration `cbor:"cfg,"` Selectors Selectors `cbor:"selectors,"` OptionalSelectors Selectors `cbor:"opt_selectors,"` Operator string `cbor:"operator,"` Description string `cbor:"description"` }
type PublishRes ¶
type RawConfiguration ¶
type Selectors ¶
type VersionComparator ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.