Documentation
¶
Index ¶
Constants ¶
View Source
const AnonymousPrincipal = "anonymous"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer struct {
// contains filtered or unexported fields
}
func NewAuthorizer ¶
func NewAuthorizer(cfg Config) *Authorizer
func (*Authorizer) Enabled ¶
func (a *Authorizer) Enabled() bool
func (*Authorizer) KafkaBindings ¶ added in v2.2.0
func (a *Authorizer) KafkaBindings() []KafkaBinding
type Config ¶
type Config struct {
Enabled bool `json:"enabled"`
DefaultPolicy string `json:"default_policy"`
Principals []PrincipalRules `json:"principals"`
}
type KafkaBinding ¶ added in v2.2.0
type KafkaBinding struct {
ResourceType kmsg.ACLResourceType
ResourceName string
PatternType kmsg.ACLResourcePatternType
Principal string
Host string
Operation kmsg.ACLOperation
Permission kmsg.ACLPermissionType
}
type PrincipalRules ¶
Click to show internal directories.
Click to hide internal directories.