Sha256: 558b7f06923c39d47e13b0e3ed911ba7afe765a2229df6fe044d57ab282c6fee

Contents?: true

Size: 856 Bytes

Versions: 455

Compression:

Stored size: 856 Bytes

Contents

class Puppet::Network::HTTP::API::Master::V3
  require 'puppet/network/http/api/master/v3/authorization'
  require 'puppet/network/http/api/master/v3/environments'
  require 'puppet/network/http/api/master/v3/environment'
  require 'puppet/network/http/api/indirected_routes'

  AUTHZ = Authorization.new

  INDIRECTED = Puppet::Network::HTTP::Route.
      path(/.*/).
      any(Puppet::Network::HTTP::API::IndirectedRoutes.new)

  ENVIRONMENTS = Puppet::Network::HTTP::Route.
      path(%r{^/environments$}).get(AUTHZ.wrap do
    Environments.new(Puppet.lookup(:environments))
  end)

  ENVIRONMENT = Puppet::Network::HTTP::Route.
      path(%r{^/environment/[^/]+$}).get(AUTHZ.wrap do
    Environment.new
  end)

  def self.routes
    Puppet::Network::HTTP::Route.path(%r{v3}).
        any.
        chain(ENVIRONMENTS, ENVIRONMENT, INDIRECTED)
  end
end

Version data entries

455 entries across 455 versions & 3 rubygems

Version Path
puppet-6.29.0 lib/puppet/network/http/api/master/v3.rb
puppet-6.29.0-x86-mingw32 lib/puppet/network/http/api/master/v3.rb
puppet-6.29.0-x64-mingw32 lib/puppet/network/http/api/master/v3.rb
puppet-6.29.0-universal-darwin lib/puppet/network/http/api/master/v3.rb
puppet-6.28.0 lib/puppet/network/http/api/master/v3.rb
puppet-6.28.0-x86-mingw32 lib/puppet/network/http/api/master/v3.rb
puppet-6.28.0-x64-mingw32 lib/puppet/network/http/api/master/v3.rb
puppet-6.28.0-universal-darwin lib/puppet/network/http/api/master/v3.rb
puppet-6.27.0 lib/puppet/network/http/api/master/v3.rb
puppet-6.27.0-x86-mingw32 lib/puppet/network/http/api/master/v3.rb
puppet-6.27.0-x64-mingw32 lib/puppet/network/http/api/master/v3.rb
puppet-6.27.0-universal-darwin lib/puppet/network/http/api/master/v3.rb
puppet-6.26.0 lib/puppet/network/http/api/master/v3.rb
puppet-6.26.0-x86-mingw32 lib/puppet/network/http/api/master/v3.rb
puppet-6.26.0-x64-mingw32 lib/puppet/network/http/api/master/v3.rb
puppet-6.26.0-universal-darwin lib/puppet/network/http/api/master/v3.rb
puppet-6.25.1 lib/puppet/network/http/api/master/v3.rb
puppet-6.25.1-x86-mingw32 lib/puppet/network/http/api/master/v3.rb
puppet-6.25.1-x64-mingw32 lib/puppet/network/http/api/master/v3.rb
puppet-6.25.1-universal-darwin lib/puppet/network/http/api/master/v3.rb