Sha256: bc84ddba0d4742cff7d3a60cd1b9237be0be59980db4b599fa74dbc0e70ac135

Contents?: true

Size: 732 Bytes

Versions: 15

Compression:

Stored size: 732 Bytes

Contents

# frozen_string_literal: true

module Rdkafka
  class Admin
    class DescribeAclReport

      # acls that exists in the cluster for the resource_type, resource_name and pattern_type filters provided in the request.
      # @return [Rdkafka::Bindings::AclBindingResult] array of matching acls.
      attr_reader :acls

      def initialize(acls:, acls_count:)
        @acls=[]
        if acls != FFI::Pointer::NULL
          acl_binding_result_pointers  = acls.read_array_of_pointer(acls_count)
          (1..acls_count).map do |acl_index|
            acl_binding_result = AclBindingResult.new(acl_binding_result_pointers[acl_index - 1])
            @acls << acl_binding_result
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
rdkafka-0.15.2 lib/rdkafka/admin/describe_acl_report.rb
karafka-rdkafka-0.14.11 lib/rdkafka/admin/describe_acl_report.rb
rdkafka-0.16.0.beta1 lib/rdkafka/admin/describe_acl_report.rb
karafka-rdkafka-0.14.10 lib/rdkafka/admin/describe_acl_report.rb
rdkafka-0.15.1 lib/rdkafka/admin/describe_acl_report.rb
karafka-rdkafka-0.14.9 lib/rdkafka/admin/describe_acl_report.rb
karafka-rdkafka-0.14.8 lib/rdkafka/admin/describe_acl_report.rb
karafka-rdkafka-0.14.7 lib/rdkafka/admin/describe_acl_report.rb
karafka-rdkafka-0.14.6 lib/rdkafka/admin/describe_acl_report.rb
karafka-rdkafka-0.14.5 lib/rdkafka/admin/describe_acl_report.rb
karafka-rdkafka-0.14.4 lib/rdkafka/admin/describe_acl_report.rb
karafka-rdkafka-0.14.3 lib/rdkafka/admin/describe_acl_report.rb
karafka-rdkafka-0.14.2 lib/rdkafka/admin/describe_acl_report.rb
rdkafka-0.15.0 lib/rdkafka/admin/describe_acl_report.rb
karafka-rdkafka-0.14.1 lib/rdkafka/admin/describe_acl_report.rb