Documentation ¶
Index ¶
- func NewACLDescriptor(typedDescriptor *ACLDescriptor) *KVDescriptor
- type ACLDescriptor
- type ACLDescriptorAdapter
- func (da *ACLDescriptorAdapter) Add(key string, value proto.Message) (metadata Metadata, err error)
- func (da *ACLDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error
- func (da *ACLDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency
- func (da *ACLDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair
- func (da *ACLDescriptorAdapter) Dump(correlate []KVWithMetadata) ([]KVWithMetadata, error)
- func (da *ACLDescriptorAdapter) Modify(key string, oldValue, newValue proto.Message, oldMetadata Metadata) (newMetadata Metadata, err error)
- func (da *ACLDescriptorAdapter) ModifyWithRecreate(key string, oldValue, newValue proto.Message, metadata Metadata) bool
- func (da *ACLDescriptorAdapter) Update(key string, value proto.Message, metadata Metadata) error
- func (da *ACLDescriptorAdapter) ValueComparator(key string, oldValue, newValue proto.Message) bool
- type ACLKVWithMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewACLDescriptor ¶
func NewACLDescriptor(typedDescriptor *ACLDescriptor) *KVDescriptor
Types ¶
type ACLDescriptor ¶
type ACLDescriptor struct { Name string KeySelector KeySelector ValueTypeName string KeyLabel func(key string) string ValueComparator func(key string, oldValue, newValue *acl.Acl) bool NBKeyPrefix string WithMetadata bool MetadataMapFactory MetadataMapFactory Add func(key string, value *acl.Acl) (metadata *aclidx.ACLMetadata, err error) Delete func(key string, value *acl.Acl, metadata *aclidx.ACLMetadata) error Modify func(key string, oldValue, newValue *acl.Acl, oldMetadata *aclidx.ACLMetadata) (newMetadata *aclidx.ACLMetadata, err error) ModifyWithRecreate func(key string, oldValue, newValue *acl.Acl, metadata *aclidx.ACLMetadata) bool Update func(key string, value *acl.Acl, metadata *aclidx.ACLMetadata) error IsRetriableFailure func(err error) bool Dependencies func(key string, value *acl.Acl) []Dependency DerivedValues func(key string, value *acl.Acl) []KeyValuePair Dump func(correlate []ACLKVWithMetadata) ([]ACLKVWithMetadata, error) DumpDependencies []string /* descriptor name */ }
type ACLDescriptorAdapter ¶
type ACLDescriptorAdapter struct {
// contains filtered or unexported fields
}
func (*ACLDescriptorAdapter) Add ¶
func (da *ACLDescriptorAdapter) Add(key string, value proto.Message) (metadata Metadata, err error)
func (*ACLDescriptorAdapter) Delete ¶
func (da *ACLDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error
func (*ACLDescriptorAdapter) Dependencies ¶
func (da *ACLDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency
func (*ACLDescriptorAdapter) DerivedValues ¶
func (da *ACLDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair
func (*ACLDescriptorAdapter) Dump ¶
func (da *ACLDescriptorAdapter) Dump(correlate []KVWithMetadata) ([]KVWithMetadata, error)
func (*ACLDescriptorAdapter) Modify ¶
func (da *ACLDescriptorAdapter) Modify(key string, oldValue, newValue proto.Message, oldMetadata Metadata) (newMetadata Metadata, err error)
func (*ACLDescriptorAdapter) ModifyWithRecreate ¶
func (da *ACLDescriptorAdapter) ModifyWithRecreate(key string, oldValue, newValue proto.Message, metadata Metadata) bool
func (*ACLDescriptorAdapter) Update ¶
func (da *ACLDescriptorAdapter) Update(key string, value proto.Message, metadata Metadata) error
func (*ACLDescriptorAdapter) ValueComparator ¶
func (da *ACLDescriptorAdapter) ValueComparator(key string, oldValue, newValue proto.Message) bool
type ACLKVWithMetadata ¶
type ACLKVWithMetadata struct { Key string Value *acl.Acl Metadata *aclidx.ACLMetadata Origin ValueOrigin }
Click to show internal directories.
Click to hide internal directories.