Reference documentation and code samples for the Grafeas V1 Client class LayerDetails.
Details about the layer a package was found in.
Generated from protobuf message grafeas.v1.LayerDetails
Namespace
Grafeas \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ index |
int
The index of the layer in the container image. |
↳ diff_id |
string
The diff ID (typically a sha256 hash) of the layer in the container image. |
↳ chain_id |
string
The layer chain ID (sha256 hash) of the layer in the container image. https://github.com/opencontainers/image-spec/blob/main/config.md#layer-chainid |
↳ command |
string
The layer build command that was used to build the layer. This may not be found in all layers depending on how the container image is built. |
↳ base_images |
array<BaseImage>
The base images the layer is found within. |
getIndex
The index of the layer in the container image.
Returns | |
---|---|
Type | Description |
int |
setIndex
The index of the layer in the container image.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getDiffId
The diff ID (typically a sha256 hash) of the layer in the container image.
Returns | |
---|---|
Type | Description |
string |
setDiffId
The diff ID (typically a sha256 hash) of the layer in the container image.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getChainId
The layer chain ID (sha256 hash) of the layer in the container image.
https://github.com/opencontainers/image-spec/blob/main/config.md#layer-chainid
Returns | |
---|---|
Type | Description |
string |
setChainId
The layer chain ID (sha256 hash) of the layer in the container image.
https://github.com/opencontainers/image-spec/blob/main/config.md#layer-chainid
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getCommand
The layer build command that was used to build the layer. This may not be found in all layers depending on how the container image is built.
Returns | |
---|---|
Type | Description |
string |
setCommand
The layer build command that was used to build the layer. This may not be found in all layers depending on how the container image is built.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getBaseImages
The base images the layer is found within.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setBaseImages
The base images the layer is found within.
Parameter | |
---|---|
Name | Description |
var |
array<BaseImage>
|
Returns | |
---|---|
Type | Description |
$this |