Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
docker-py
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
docker-py
Commits
947c47f6
Kaydet (Commit)
947c47f6
authored
Ock 30, 2018
tarafından
Joffrey F
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move ExecResult definition to models.containers
Signed-off-by:
Joffrey F
<
joffrey@docker.com
>
üst
600cc15c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
containers.py
docker/models/containers.py
+12
-5
__init__.py
docker/types/__init__.py
+1
-2
containers.py
docker/types/containers.py
+0
-6
No files found.
docker/models/containers.py
Dosyayı görüntüle @
947c47f6
import
copy
from
collections
import
namedtuple
from
..api
import
APIClient
from
..errors
import
(
ContainerError
,
ImageNotFound
,
create_unexpected_kwargs_error
)
from
..types
import
ExecResult
,
HostConfig
from
..types
import
HostConfig
from
..utils
import
version_gte
from
.images
import
Image
from
.resource
import
Collection
,
Model
...
...
@@ -173,10 +174,11 @@ class Container(Model):
)
if
socket
or
stream
:
return
ExecResult
(
None
,
exec_output
)
else
:
return
ExecResult
(
self
.
client
.
api
.
exec_inspect
(
resp
[
'Id'
])[
'ExitCode'
],
exec_output
)
return
ExecResult
(
self
.
client
.
api
.
exec_inspect
(
resp
[
'Id'
])[
'ExitCode'
],
exec_output
)
def
export
(
self
):
"""
...
...
@@ -1007,3 +1009,8 @@ def _host_volume_from_bind(bind):
return
bits
[
0
]
else
:
return
bits
[
1
]
ExecResult
=
namedtuple
(
'ExecResult'
,
'exit_code,output'
)
""" A result of Container.exec_run with the properties ``exit_code`` and
``output``. """
docker/types/__init__.py
Dosyayı görüntüle @
947c47f6
# flake8: noqa
from
.containers
import
(
ContainerConfig
,
ExecResult
,
HostConfig
,
LogConfig
,
Ulimit
)
from
.containers
import
ContainerConfig
,
HostConfig
,
LogConfig
,
Ulimit
from
.healthcheck
import
Healthcheck
from
.networks
import
EndpointConfig
,
IPAMConfig
,
IPAMPool
,
NetworkingConfig
from
.services
import
(
...
...
docker/types/containers.py
Dosyayı görüntüle @
947c47f6
from
collections
import
namedtuple
import
six
import
warnings
...
...
@@ -12,11 +11,6 @@ from .base import DictType
from
.healthcheck
import
Healthcheck
ExecResult
=
namedtuple
(
'ExecResult'
,
'exit_code,output'
)
""" A result of Container.exec_run with the properties ``exit_code`` and
``output``. """
class
LogConfigTypesEnum
(
object
):
_values
=
(
'json-file'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment