Documentation ¶
Overview ¶
Package authorizer provide generic implementations and utility methods for Fleetspeak's authorizer component type.
Index ¶
- type LabelFilter
- func (f LabelFilter) Allow1(net.Addr) bool
- func (f LabelFilter) Allow2(_ net.Addr, i authorizer.ContactInfo) bool
- func (f LabelFilter) Allow3(net.Addr, authorizer.ContactInfo, authorizer.ClientInfo) bool
- func (f LabelFilter) Allow4(net.Addr, authorizer.ContactInfo, authorizer.ClientInfo, ...) (bool, *fspb.ValidationInfo)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LabelFilter ¶
type LabelFilter struct {
Label string
}
LabelFilter is an authorizer.Authorizer which refuses connections from clients that do not have a specific label.
func (LabelFilter) Allow1 ¶
func (f LabelFilter) Allow1(net.Addr) bool
Allow1 implements Authorizer.
func (LabelFilter) Allow2 ¶
func (f LabelFilter) Allow2(_ net.Addr, i authorizer.ContactInfo) bool
Allow2 implements Authorizer.
func (LabelFilter) Allow3 ¶
func (f LabelFilter) Allow3(net.Addr, authorizer.ContactInfo, authorizer.ClientInfo) bool
Allow3 implements Authorizer.
func (LabelFilter) Allow4 ¶
func (f LabelFilter) Allow4(net.Addr, authorizer.ContactInfo, authorizer.ClientInfo, []authorizer.SignatureInfo) (bool, *fspb.ValidationInfo)
Allow4 implements Authorizer.
Click to show internal directories.
Click to hide internal directories.