adapter

package
v2.0.0-alpha+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL