Package org.ivoa.dm.executionbroker
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for DockerImageSpec, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected StringImages that use the v2 or later format have a content-addressable identifier called a digest.An array of repository locations.protected DockerPlatformSpec. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DockerImageSpecDockerImageSpec(List<String> locations, String digest, DockerPlatformSpec platform) full parameter constructor.DockerImageSpec(DockerImageSpec other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic DockerImageSpeccreate a DockerImageSpec in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns digest Attribute.getId()Returns locations Attribute.Returns platform Attribute.voidSet digest Attribute.voidsetLocations(List<String> pLocations) Set locations Attribute.voidsetPlatform(DockerPlatformSpec pPlatform) Set platform Attribute.voidupdateUsing(DockerImageSpec other) Update this object with the content of the given object.withDigest(String pDigest) fluent setter for digest Attribute.withLocations(List<String> pLocations) fluent setter for locations Attribute.withPlatform(DockerPlatformSpec pPlatform) fluent setter for platform Attribute.
-
Field Details
-
_id
inserted database key -
locations
@VoDml(id="execbroker:DockerImageSpec.locations", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> locationsAn 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 digestImages 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
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
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
- the id
-
updateUsing
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
Returns locations Attribute.- Returns:
- locations Attribute
-
setLocations
Set locations Attribute.- Parameters:
pLocations- value to set
-
withLocations
fluent setter for locations Attribute.- Parameters:
pLocations- value to set- Returns:
- DockerImageSpec
-
getDigest
Returns digest Attribute.- Returns:
- digest Attribute
-
setDigest
Set digest Attribute.- Parameters:
pDigest- value to set
-
withDigest
fluent setter for digest Attribute.- Parameters:
pDigest- value to set- Returns:
- DockerImageSpec
-
getPlatform
Returns platform Attribute.- Returns:
- platform Attribute
-
setPlatform
Set platform Attribute.- Parameters:
pPlatform- value to set
-
withPlatform
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:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-