summaryrefslogtreecommitdiff
path: root/app/models/clusters/agents/implicit_authorization.rb
blob: a365ccdc568c1a87356b56403d972c312cea7ce7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module Clusters
  module Agents
    class ImplicitAuthorization
      attr_reader :agent

      delegate :id, to: :agent, prefix: true

      def initialize(agent:)
        @agent = agent
      end

      def config_project
        agent.project
      end

      def config
        {}
      end
    end
  end
end