Sha256: 4bdb36d9a38eabc2898fdc910cc5943573b58a3442a79888b326be4a745e6f1b

Contents?: true

Size: 696 Bytes

Versions: 46

Compression:

Stored size: 696 Bytes

Contents

# frozen_string_literal: true

module Rdkafka
  class Admin
    class DeleteAclReport

      # deleted acls
      # @return [Rdkafka::Bindings::AclBindingResult]
      attr_reader :deleted_acls

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

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
karafka-rdkafka-0.14.5 lib/rdkafka/admin/delete_acl_report.rb
karafka-rdkafka-0.14.4 lib/rdkafka/admin/delete_acl_report.rb
karafka-rdkafka-0.14.3 lib/rdkafka/admin/delete_acl_report.rb
karafka-rdkafka-0.14.2 lib/rdkafka/admin/delete_acl_report.rb
rdkafka-0.15.0 lib/rdkafka/admin/delete_acl_report.rb
karafka-rdkafka-0.14.1 lib/rdkafka/admin/delete_acl_report.rb