Sha256: f0a977acd592261e86e4b30050185694a456d42176a6b9fd51d249a794eb1bd1

Contents?: true

Size: 1002 Bytes

Versions: 11

Compression:

Stored size: 1002 Bytes

Contents

require "pulpcore_client"

module Katello
  module Pulp3
    module Api
      class Docker < Core
        def self.recursive_manage_class
          PulpContainerClient::RecursiveManage
        end

        def self.tag_image_class
          PulpContainerClient::TagImage
        end

        def recursive_add_api
          PulpContainerClient::ContainerRecursiveAddApi.new(api_client)
        end

        def container_push_api
          PulpContainerClient::RepositoriesContainerPushApi.new(api_client)
        end

        def container_push_repo_for_name(name)
          # There should be only one repository in Pulp with the requested name
          container_push_api.list(name: name)&.results&.first
        end

        def container_push_distribution_for_repository(repository_href)
          # There should be only one repository in Pulp with the requested repository_href
          distributions_api.list(repository: repository_href)&.results&.first
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
katello-4.14.3 app/services/katello/pulp3/api/docker.rb
katello-4.14.2 app/services/katello/pulp3/api/docker.rb
katello-4.15.0 app/services/katello/pulp3/api/docker.rb
katello-4.15.0.rc2 app/services/katello/pulp3/api/docker.rb
katello-4.15.0.rc1 app/services/katello/pulp3/api/docker.rb
katello-4.14.1 app/services/katello/pulp3/api/docker.rb
katello-4.14.0 app/services/katello/pulp3/api/docker.rb
katello-4.14.0.rc3 app/services/katello/pulp3/api/docker.rb
katello-4.14.0.rc2 app/services/katello/pulp3/api/docker.rb
katello-4.14.0.rc1.1 app/services/katello/pulp3/api/docker.rb
katello-4.14.0.rc1 app/services/katello/pulp3/api/docker.rb