Sha256: e171fd6b13b069f7e4b25cf0b54ca02a54e13044f6c60ef9662d6734fb705a1e

Contents?: true

Size: 953 Bytes

Versions: 20

Compression:

Stored size: 953 Bytes

Contents

module Katello
  class DockerManifest < Katello::Model
    include Concerns::PulpDatabaseUnit

    has_one :docker_tag, :dependent => :destroy, :class_name => "Katello::DockerTag"
    has_many :repository_docker_manifests, :dependent => :destroy
    has_many :repositories, :through => :repository_docker_manifests, :inverse_of => :docker_manifests

    CONTENT_TYPE = Pulp::DockerManifest::CONTENT_TYPE
    scoped_search :on => :name, :complete_value => true
    scoped_search :in => :docker_tag, :on => :name, :rename => :tag, :complete_value => true, :only_explicit => true

    def self.repository_association_class
      RepositoryDockerManifest
    end

    def update_from_json(json)
      update_attributes(:name => json[:name],
                        :schema_version => json[:schema_version],
                        :digest => json[:digest],
                        :downloaded => json[:downloaded]
                       )
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
katello-3.2.1.1 app/models/katello/docker_manifest.rb
katello-3.2.1 app/models/katello/docker_manifest.rb
katello-3.2.0 app/models/katello/docker_manifest.rb
katello-3.2.0.rc3 app/models/katello/docker_manifest.rb
katello-3.2.0.rc2 app/models/katello/docker_manifest.rb
katello-3.2.0.rc1.1 app/models/katello/docker_manifest.rb
katello-3.2.0.rc1 app/models/katello/docker_manifest.rb
katello-3.1.0.1 app/models/katello/docker_manifest.rb
katello-3.1.0 app/models/katello/docker_manifest.rb
katello-3.1.0.rc2.1 app/models/katello/docker_manifest.rb
katello-3.0.2 app/models/katello/docker_manifest.rb
katello-3.1.0.rc1 app/models/katello/docker_manifest.rb
katello-3.0.1 app/models/katello/docker_manifest.rb
katello-3.0.0 app/models/katello/docker_manifest.rb
katello-3.0.0.rc7 app/models/katello/docker_manifest.rb
katello-3.0.0.rc5 app/models/katello/docker_manifest.rb
katello-3.0.0.rc4 app/models/katello/docker_manifest.rb
katello-3.0.0.rc3 app/models/katello/docker_manifest.rb
katello-3.0.0.rc2 app/models/katello/docker_manifest.rb
katello-3.0.0.rc1 app/models/katello/docker_manifest.rb