compose-viz/compose_viz/models/device.py

21 lines
524 B
Python
Raw Permalink Normal View History

2022-06-08 14:57:28 +02:00
from typing import Optional
2022-06-06 18:41:15 +02:00
class Device:
2022-06-08 14:57:28 +02:00
def __init__(self, host_path: str, container_path: str, cgroup_permissions: Optional[str] = None):
2022-06-06 18:41:15 +02:00
self._host_path = host_path
self._container_path = container_path
self._cgroup_permissions = cgroup_permissions
@property
def host_path(self):
return self._host_path
@property
def container_path(self):
return self._container_path
2022-06-08 14:57:28 +02:00
2022-06-06 18:41:15 +02:00
@property
def cgroup_permissions(self):
2022-06-08 14:57:28 +02:00
return self._cgroup_permissions