Documentation ¶
Index ¶
- Constants
- type ACLDescriptor
- func (d *ACLDescriptor) Add(key string, acl *acl.Acl) (metadata *aclidx.ACLMetadata, err error)
- func (d *ACLDescriptor) Delete(key string, acl *acl.Acl, metadata *aclidx.ACLMetadata) error
- func (d *ACLDescriptor) DerivedValues(key string, value *acl.Acl) (derived []api.KeyValuePair)
- func (d *ACLDescriptor) Dump(correlate []adapter.ACLKVWithMetadata) (dump []adapter.ACLKVWithMetadata, err error)
- func (d *ACLDescriptor) EquivalentACLs(key string, oldACL, newACL *acl.Acl) bool
- func (d *ACLDescriptor) GetDescriptor() *adapter.ACLDescriptor
- func (d *ACLDescriptor) IsRetriableFailure(err error) bool
- func (d *ACLDescriptor) Modify(key string, oldACL, newACL *acl.Acl, oldMetadata *aclidx.ACLMetadata) (newMetadata *aclidx.ACLMetadata, err error)
- func (d *ACLDescriptor) ModifyWithRecreate(key string, oldACL, newACL *acl.Acl, metadata *aclidx.ACLMetadata) bool
- type ACLToInterfaceDescriptor
- func (d *ACLToInterfaceDescriptor) Add(key string, emptyVal proto.Message) (metadata scheduler.Metadata, err error)
- func (d *ACLToInterfaceDescriptor) Delete(key string, emptyVal proto.Message, metadata scheduler.Metadata) error
- func (d *ACLToInterfaceDescriptor) Dependencies(key string, emptyVal proto.Message) []scheduler.Dependency
- func (d *ACLToInterfaceDescriptor) GetDescriptor() *scheduler.KVDescriptor
- func (d *ACLToInterfaceDescriptor) IsACLInterfaceKey(key string) bool
Constants ¶
const (
// ACLDescriptorName is descriptor name
ACLDescriptorName = "vpp-acl"
)
const (
// ACLToInterfaceDescriptorName is name for descriptor
ACLToInterfaceDescriptorName = "vpp-acl-to-interface"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACLDescriptor ¶
type ACLDescriptor struct {
// contains filtered or unexported fields
}
ACLDescriptor is descriptor for ACL
func NewACLDescriptor ¶
func NewACLDescriptor(aclHandler vppcalls.ACLVppAPI, ifPlugin ifplugin.API, logger logging.PluginLogger) *ACLDescriptor
NewACLDescriptor is constructor for ACL descriptor
func (*ACLDescriptor) Add ¶
func (d *ACLDescriptor) Add(key string, acl *acl.Acl) (metadata *aclidx.ACLMetadata, err error)
Add configures ACL
func (*ACLDescriptor) Delete ¶
func (d *ACLDescriptor) Delete(key string, acl *acl.Acl, metadata *aclidx.ACLMetadata) error
Delete deletes ACL
func (*ACLDescriptor) DerivedValues ¶
func (d *ACLDescriptor) DerivedValues(key string, value *acl.Acl) (derived []api.KeyValuePair)
DerivedValues returns list of derived values for ACL.
func (*ACLDescriptor) Dump ¶
func (d *ACLDescriptor) Dump(correlate []adapter.ACLKVWithMetadata) (dump []adapter.ACLKVWithMetadata, err error)
Dump returns list of dumped ACLs with metadata
func (*ACLDescriptor) EquivalentACLs ¶
func (d *ACLDescriptor) EquivalentACLs(key string, oldACL, newACL *acl.Acl) bool
EquivalentACLs compares two ACLs
func (*ACLDescriptor) GetDescriptor ¶
func (d *ACLDescriptor) GetDescriptor() *adapter.ACLDescriptor
GetDescriptor returns descriptor suitable for registration (via adapter) with the KVScheduler.
func (*ACLDescriptor) IsRetriableFailure ¶
func (d *ACLDescriptor) IsRetriableFailure(err error) bool
IsRetriableFailure returns <false> for errors related to invalid configuration.
func (*ACLDescriptor) Modify ¶
func (d *ACLDescriptor) Modify(key string, oldACL, newACL *acl.Acl, oldMetadata *aclidx.ACLMetadata) (newMetadata *aclidx.ACLMetadata, err error)
Modify modifies ACL
func (*ACLDescriptor) ModifyWithRecreate ¶
func (d *ACLDescriptor) ModifyWithRecreate(key string, oldACL, newACL *acl.Acl, metadata *aclidx.ACLMetadata) bool
ModifyWithRecreate checks if modification requires recreation
type ACLToInterfaceDescriptor ¶
type ACLToInterfaceDescriptor struct {
// contains filtered or unexported fields
}
ACLToInterfaceDescriptor represents assignment of ACL to interface.
func NewACLToInterfaceDescriptor ¶
func NewACLToInterfaceDescriptor(aclIndex aclidx.ACLMetadataIndex, aclHandler vppcalls.ACLVppAPI, log logging.PluginLogger) *ACLToInterfaceDescriptor
NewACLToInterfaceDescriptor returns new ACLInterface descriptor
func (*ACLToInterfaceDescriptor) Add ¶
func (d *ACLToInterfaceDescriptor) Add(key string, emptyVal proto.Message) (metadata scheduler.Metadata, err error)
Add enables DHCP client.
func (*ACLToInterfaceDescriptor) Delete ¶
func (d *ACLToInterfaceDescriptor) Delete(key string, emptyVal proto.Message, metadata scheduler.Metadata) error
Delete disables DHCP client.
func (*ACLToInterfaceDescriptor) Dependencies ¶
func (d *ACLToInterfaceDescriptor) Dependencies(key string, emptyVal proto.Message) []scheduler.Dependency
Dependencies lists the interface as the only dependency for the binding.
func (*ACLToInterfaceDescriptor) GetDescriptor ¶
func (d *ACLToInterfaceDescriptor) GetDescriptor() *scheduler.KVDescriptor
GetDescriptor returns descriptor suitable for registration with the KVScheduler.
func (*ACLToInterfaceDescriptor) IsACLInterfaceKey ¶
func (d *ACLToInterfaceDescriptor) IsACLInterfaceKey(key string) bool
IsACLInterfaceKey returns true if the key is identifying ACL interface (derived value)