Class DockerImageSpec

java.lang.Object
org.ivoa.dm.executionbroker.DockerImageSpec
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="execbroker:DockerImageSpec", role=objectType) public class DockerImageSpec extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Details of the container image. objectType: DockerImageSpec
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • locations

      @VoDml(id="execbroker:DockerImageSpec.locations", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> locations
      An array of repository locations. {repository}/{namespace}/{container}:{tag} e.g. ghcr.io/ivoa/oligia-webtop:ubuntu-2022.01.13. : Attribute locations : multiplicity 1..*
    • digest

      @VoDml(id="execbroker:DockerImageSpec.digest", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String digest
      Images that use the v2 or later format have a content-addressable identifier called a digest. As long as the input used to generate the image is unchanged, the digest value is predictable. The digest is generated as a sha256 checksum when the image is built. The digest can be used to verify the contents of an image. : Attribute digest : multiplicity 1
    • platform

      @VoDml(id="execbroker:DockerImageSpec.platform", role=attribute, type="execbroker:DockerPlatformSpec", typeRole=dataType) protected DockerPlatformSpec platform
      . : Attribute platform : multiplicity 1
  • Constructor Details

    • DockerImageSpec

      public DockerImageSpec()
      Creates a new DockerImageSpec
    • DockerImageSpec

      public DockerImageSpec(List<String> locations, String digest, DockerPlatformSpec platform)
      full parameter constructor.
      Parameters:
      locations - An array of repository locations. {repository}/{namespace}/{container}:{tag} e.g. ghcr.io/ivoa/oligia-webtop:ubuntu-2022.01.13.
      digest - Images that use the v2 or later format have a content-addressable identifier called a digest. As long as the input used to generate the image is unchanged, the digest value is predictable. The digest is generated as a sha256 checksum when the image is built. The digest can be used to verify the contents of an image.
      platform - .
    • DockerImageSpec

      public DockerImageSpec(DockerImageSpec other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • updateUsing

      public void updateUsing(DockerImageSpec other)
      Update this object with the content of the given object. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • getLocations

      public List<String> getLocations()
      Returns locations Attribute.
      Returns:
      locations Attribute
    • setLocations

      public void setLocations(List<String> pLocations)
      Set locations Attribute.
      Parameters:
      pLocations - value to set
    • withLocations

      public DockerImageSpec withLocations(List<String> pLocations)
      fluent setter for locations Attribute.
      Parameters:
      pLocations - value to set
      Returns:
      DockerImageSpec
    • getDigest

      public String getDigest()
      Returns digest Attribute.
      Returns:
      digest Attribute
    • setDigest

      public void setDigest(String pDigest)
      Set digest Attribute.
      Parameters:
      pDigest - value to set
    • withDigest

      public DockerImageSpec withDigest(String pDigest)
      fluent setter for digest Attribute.
      Parameters:
      pDigest - value to set
      Returns:
      DockerImageSpec
    • getPlatform

      public DockerPlatformSpec getPlatform()
      Returns platform Attribute.
      Returns:
      platform Attribute
    • setPlatform

      public void setPlatform(DockerPlatformSpec pPlatform)
      Set platform Attribute.
      Parameters:
      pPlatform - value to set
    • withPlatform

      public DockerImageSpec withPlatform(DockerPlatformSpec pPlatform)
      fluent setter for platform Attribute.
      Parameters:
      pPlatform - value to set
      Returns:
      DockerImageSpec
    • createDockerImageSpec

      public static DockerImageSpec createDockerImageSpec(Consumer<DockerImageSpec.DockerImageSpecBuilder> f)
      create a DockerImageSpec in functional builder style.
      Parameters:
      f - the functional builder.
      Returns:
      an object initialized from the builder.
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>