Container Image
Bases: ComponentManager
, Agent
Class that represents a container image.
Source code in edge_sim_py/components/container_image.py
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 |
|
__init__(obj_id=None, name='', digest='', tag='0.0.0', architecture='', layers=[])
Creates a ContainerImage object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
obj_id |
int
|
Object identifier. Defaults to None. |
None
|
name |
str
|
Image name. Defaults to "". |
''
|
digest |
str
|
Image digest. Defaults to "". |
''
|
tag |
str
|
Image tag (i.e., version code). Defaults to "0.0.0". |
'0.0.0'
|
architecture |
str
|
Image architecture (e.g., "amd64"). Defaults to "". |
''
|
layers |
list
|
Digests of layers that compose the image. Defaults to []. |
[]
|
Returns:
Name | Type | Description |
---|---|---|
object |
object
|
Created ContainerImage object. |
Source code in edge_sim_py/components/container_image.py
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 |
|
collect()
Method that collects a set of metrics for the object.
Returns:
Name | Type | Description |
---|---|---|
metrics |
dict
|
Object metrics. |
Source code in edge_sim_py/components/container_image.py
84 85 86 87 88 89 90 91 |
|
step()
Method that executes the events involving the object at each time step.
Source code in edge_sim_py/components/container_image.py
93 94 95 |
|