// GetACLs returns all the available Apache Kafka Access Control Lists.
GetACLs returns all the available Apache Kafka Access Control Lists.
// GetACLs returns all the available Apache Kafka Access Control Lists .
func (c *Client) GetACLs() ([]ACL, error) {
	resp, err := c.Do(http.MethodGet, aclPath, "", nil)
	if err != nil {
		return nil, err
	}
	if resp.StatusCode == http.StatusBadRequest {
		return nil, fmt.Errorf("no authorizer is configured on the broker")
	}
	var acls []ACL
	err = c.ReadJSON(resp, &acls)
	return acls, err
}
func ( c * Client ) GetACLs ( ) ( [ ] ACL , error ) { resp , err := c . Do ( http . MethodGet , aclPath , " " , nil ) if err != nil { return nil , err } if resp . StatusCode == http . StatusBadRequest { return nil , fmt . Errorf ( " " ) } var acls [ ] ACL err = c . ReadJSON ( resp , & acls ) return acls , err }
GetACLs returns all the available Apache Kafka Access Control Lists.
GetACLs returns all the available Apache Kafka Access Control Lists .
// unlike with other calls this one returns a plain text with no authorize-type error message // instead of 403, so make that check only on the acl API: