c

com.google.cloud.tools.jib.image.json

V22ManifestTemplate

class V22ManifestTemplate extends BuildableManifestTemplate

JSON Template for Docker Manifest Schema V2.2

Example manifest JSON:


{
  "schemaVersion": 2,
  "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
  "config": {
    "mediaType": "application/vnd.docker.container.image.v1+json",
    "size": 631,
    "digest": "sha256:26b84ca5b9050d32e68f66ad0f3e2bbcd247198a6e6e09a7effddf126eb8d873"
  ,
  "layers": [
    {
      "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
      "size": 1991435,
      "digest": "sha256:b56ae66c29370df48e7377c8f9baa744a3958058a766793f821dadcb144a4647"
    },
    {
      "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
      "size": 32,
      "digest": "sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4"
    }
  ]
}
}

See also

Image Manifest Version 2, Schema 2

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. V22ManifestTemplate
  2. BuildableManifestTemplate
  3. ManifestTemplate
  4. JsonTemplate
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new V22ManifestTemplate()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addLayer(size: Long, digest: DescriptorDigest): Unit

    Adds a layer to the manifest.

    Adds a layer to the manifest.

    size

    the size of the layer.

    digest

    the layer descriptor digest.

    Definition Classes
    V22ManifestTemplateBuildableManifestTemplate
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def getContainerConfiguration(): ContentDescriptorTemplate

    returns

    the content descriptor of the container configuration

    Definition Classes
    V22ManifestTemplateBuildableManifestTemplate
  12. def getLayers(): List[ContentDescriptorTemplate]

    returns

    an unmodifiable view of the layers

    Definition Classes
    V22ManifestTemplateBuildableManifestTemplate
  13. def getManifestMediaType(): String

    returns

    the media type for this manifest, specific to the image format

    Definition Classes
    V22ManifestTemplateBuildableManifestTemplate
  14. def getSchemaVersion(): Int
    Definition Classes
    V22ManifestTemplateManifestTemplate
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def setContainerConfiguration(size: Long, digest: DescriptorDigest): Unit

    Sets the content descriptor of the container configuration.

    Sets the content descriptor of the container configuration.

    size

    the size of the container configuration.

    digest

    the container configuration content descriptor digest.

    Definition Classes
    V22ManifestTemplateBuildableManifestTemplate
  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from BuildableManifestTemplate

Inherited from ManifestTemplate

Inherited from JsonTemplate

Inherited from AnyRef

Inherited from Any

Ungrouped