Welcome to mirror list, hosted at ThFree Co, Russian Federation.

entity_list.rb « kubeclient « lib « kubeclient « gems « vendor - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2f734560a4bc36c7a82725faa402980a96f59379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'delegate'
module Kubeclient
  module Common
    # Kubernetes Entity List
    class EntityList < DelegateClass(Array)
      attr_reader :continue, :kind, :resourceVersion

      def initialize(kind, resource_version, list, continue = nil)
        @kind = kind
        # rubocop:disable Style/VariableName
        @resourceVersion = resource_version
        @continue = continue
        super(list)
      end

      def last?
        continue.nil?
      end
    end
  end
end