Sha256: 5b343222b334b7ee54b8bcfe65550a39458ac2219cf14379ca60d3d574eaede3

Contents?: true

Size: 779 Bytes

Versions: 43

Compression:

Stored size: 779 Bytes

Contents

# frozen_string_literal: true

module Rdkafka
  class Admin
    class DescribeAclHandle < AbstractHandle
      layout :pending, :bool,
             :response, :int,
             :response_string, :pointer,
             :acls, :pointer,
             :acls_count, :int

      # @return [String] the name of the operation.
      def operation_name
        "describe acl"
      end

      # @return [DescribeAclReport] instance with an array of acls that matches the request filters.
      def create_result
        DescribeAclReport.new(acls: self[:acls], acls_count: self[:acls_count])
      end

      def raise_error
        raise RdkafkaError.new(
            self[:response],
            broker_message: self[:response_string].read_string
        )
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
karafka-rdkafka-0.18.0 lib/rdkafka/admin/describe_acl_handle.rb
karafka-rdkafka-0.18.0.rc1 lib/rdkafka/admin/describe_acl_handle.rb
rdkafka-0.19.0 lib/rdkafka/admin/describe_acl_handle.rb
karafka-rdkafka-0.17.6 lib/rdkafka/admin/describe_acl_handle.rb
karafka-rdkafka-0.17.5 lib/rdkafka/admin/describe_acl_handle.rb
karafka-rdkafka-0.17.4 lib/rdkafka/admin/describe_acl_handle.rb
rdkafka-0.18.0 lib/rdkafka/admin/describe_acl_handle.rb
karafka-rdkafka-0.17.3 lib/rdkafka/admin/describe_acl_handle.rb
karafka-rdkafka-0.17.2 lib/rdkafka/admin/describe_acl_handle.rb
karafka-rdkafka-0.17.2.rc1 lib/rdkafka/admin/describe_acl_handle.rb
rdkafka-0.17.0 lib/rdkafka/admin/describe_acl_handle.rb
karafka-rdkafka-0.17.1 lib/rdkafka/admin/describe_acl_handle.rb
karafka-rdkafka-0.17.1.beta1 lib/rdkafka/admin/describe_acl_handle.rb
karafka-rdkafka-0.17.0 lib/rdkafka/admin/describe_acl_handle.rb
rdkafka-0.15.2 lib/rdkafka/admin/describe_acl_handle.rb
karafka-rdkafka-0.14.11 lib/rdkafka/admin/describe_acl_handle.rb
karafka-rdkafka-0.15.2 lib/rdkafka/admin/describe_acl_handle.rb
rdkafka-0.16.1 lib/rdkafka/admin/describe_acl_handle.rb
karafka-rdkafka-0.16.1 lib/rdkafka/admin/describe_acl_handle.rb
karafka-rdkafka-0.16.0 lib/rdkafka/admin/describe_acl_handle.rb