Repository navigation
Expand file tree
/
Copy pathIdentity.php
More file actions
120 lines (105 loc) · 3.27 KB
/
Copy pathIdentity.php
File metadata and controls
120 lines (105 loc) · 3.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
declare(strict_types=1);
namespace Docker\API\Model;
use Docker\API\Runtime\AdditionalAndPatternProperties;
use Docker\API\Runtime\AdditionalPropertiesInterface;
class Identity implements AdditionalPropertiesInterface
{
use AdditionalAndPatternProperties;
/**
* @var array
*/
protected $initialized = [];
public function isInitialized($property): bool
{
return \array_key_exists($property, $this->initialized);
}
/**
* Signature contains the properties of verified signatures for the image.
*
* @var list<SignatureIdentity>|null
*/
protected $signature;
/**
* Pull contains remote location information if image was created via pull.
* If image was pulled via mirror, this contains the original repository location.
* After successful push this images also contains the pushed repository location.
*
* @var list<PullIdentity>|null
*/
protected $pull;
/**
* Build contains build reference information if image was created via build.
*
* @var list<BuildIdentity>|null
*/
protected $build;
/**
* Signature contains the properties of verified signatures for the image.
*
* @return list<SignatureIdentity>|null
*/
public function getSignature(): ?array
{
return $this->signature;
}
/**
* Signature contains the properties of verified signatures for the image.
*
* @param list<SignatureIdentity>|null $signature
*/
public function setSignature(?array $signature): self
{
$this->initialized['signature'] = true;
$this->signature = $signature;
return $this;
}
/**
* Pull contains remote location information if image was created via pull.
* If image was pulled via mirror, this contains the original repository location.
* After successful push this images also contains the pushed repository location.
*
* @return list<PullIdentity>|null
*/
public function getPull(): ?array
{
return $this->pull;
}
/**
* Pull contains remote location information if image was created via pull.
* If image was pulled via mirror, this contains the original repository location.
* After successful push this images also contains the pushed repository location.
*
* @param list<PullIdentity>|null $pull
*/
public function setPull(?array $pull): self
{
$this->initialized['pull'] = true;
$this->pull = $pull;
return $this;
}
/**
* Build contains build reference information if image was created via build.
*
* @return list<BuildIdentity>|null
*/
public function getBuild(): ?array
{
return $this->build;
}
/**
* Build contains build reference information if image was created via build.
*
* @param list<BuildIdentity>|null $build
*/
public function setBuild(?array $build): self
{
$this->initialized['build'] = true;
$this->build = $build;
return $this;
}
public function definedProperties(): array
{
return ['signature' => ['Signature', 'getSignature', 'setSignature'], 'pull' => ['Pull', 'getPull', 'setPull'], 'build' => ['Build', 'getBuild', 'setBuild']];
}
}