wal 0.0.0 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rspec +1 -0
- data/README.md +49 -0
- data/Rakefile +9 -1
- data/exe/wal +64 -0
- data/lib/wal/active_record_context_extension.rb +15 -0
- data/lib/wal/noop_watcher.rb +12 -0
- data/lib/wal/record_watcher.rb +389 -0
- data/lib/wal/replicator.rb +205 -0
- data/lib/wal/streaming_watcher.rb +74 -0
- data/lib/wal/version.rb +2 -1
- data/lib/wal/watcher.rb +95 -0
- data/lib/wal.rb +128 -1
- data/rbi/wal.rbi +295 -0
- data/sig/wal.rbs +184 -2
- data/sorbet/config +7 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/activemodel.rbi +89 -0
- data/sorbet/rbi/annotations/activerecord.rbi +98 -0
- data/sorbet/rbi/annotations/activesupport.rbi +463 -0
- data/sorbet/rbi/annotations/minitest.rbi +119 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/actioncable@8.0.2.rbi +9 -0
- data/sorbet/rbi/gems/actionmailbox@8.0.2.rbi +9 -0
- data/sorbet/rbi/gems/actionmailer@8.0.2.rbi +9 -0
- data/sorbet/rbi/gems/actionpack@8.0.2.rbi +21122 -0
- data/sorbet/rbi/gems/actiontext@8.0.2.rbi +9 -0
- data/sorbet/rbi/gems/actionview@8.0.2.rbi +16423 -0
- data/sorbet/rbi/gems/activejob@8.0.2.rbi +9 -0
- data/sorbet/rbi/gems/activemodel@8.0.2.rbi +6866 -0
- data/sorbet/rbi/gems/activerecord@8.0.2.rbi +43227 -0
- data/sorbet/rbi/gems/activestorage@8.0.2.rbi +9 -0
- data/sorbet/rbi/gems/activesupport@8.0.2.rbi +21110 -0
- data/sorbet/rbi/gems/ast@2.4.3.rbi +585 -0
- data/sorbet/rbi/gems/base64@0.3.0.rbi +545 -0
- data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
- data/sorbet/rbi/gems/bigdecimal@3.2.2.rbi +78 -0
- data/sorbet/rbi/gems/builder@3.3.0.rbi +9 -0
- data/sorbet/rbi/gems/commander@5.0.0.rbi +9 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi +11657 -0
- data/sorbet/rbi/gems/connection_pool@2.5.3.rbi +9 -0
- data/sorbet/rbi/gems/crass@1.0.6.rbi +623 -0
- data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
- data/sorbet/rbi/gems/diff-lcs@1.6.2.rbi +1134 -0
- data/sorbet/rbi/gems/docker-api@2.4.0.rbi +1719 -0
- data/sorbet/rbi/gems/docopt@0.6.1.rbi +9 -0
- data/sorbet/rbi/gems/drb@2.2.3.rbi +1661 -0
- data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
- data/sorbet/rbi/gems/excon@1.2.7.rbi +1514 -0
- data/sorbet/rbi/gems/globalid@1.2.1.rbi +9 -0
- data/sorbet/rbi/gems/highline@3.0.1.rbi +9 -0
- data/sorbet/rbi/gems/i18n@1.14.7.rbi +2359 -0
- data/sorbet/rbi/gems/io-console@0.8.0.rbi +9 -0
- data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
- data/sorbet/rbi/gems/loofah@2.24.1.rbi +1105 -0
- data/sorbet/rbi/gems/mail@2.8.1.rbi +9 -0
- data/sorbet/rbi/gems/marcel@1.0.4.rbi +9 -0
- data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +9 -0
- data/sorbet/rbi/gems/minitest@5.25.5.rbi +1704 -0
- data/sorbet/rbi/gems/multi_json@1.15.0.rbi +268 -0
- data/sorbet/rbi/gems/net-imap@0.5.9.rbi +9 -0
- data/sorbet/rbi/gems/net-pop@0.1.2.rbi +9 -0
- data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +292 -0
- data/sorbet/rbi/gems/net-smtp@0.5.1.rbi +9 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
- data/sorbet/rbi/gems/nio4r@2.7.4.rbi +9 -0
- data/sorbet/rbi/gems/nokogiri@1.18.8.rbi +8206 -0
- data/sorbet/rbi/gems/ostruct@0.6.2.rbi +354 -0
- data/sorbet/rbi/gems/parallel@1.27.0.rbi +291 -0
- data/sorbet/rbi/gems/parlour@9.1.1.rbi +3071 -0
- data/sorbet/rbi/gems/parser@3.3.8.0.rbi +7338 -0
- data/sorbet/rbi/gems/pg-replication-protocol@0.0.7.rbi +633 -0
- data/sorbet/rbi/gems/pg@1.5.9.rbi +2806 -0
- data/sorbet/rbi/gems/pp@0.6.2.rbi +368 -0
- data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +477 -0
- data/sorbet/rbi/gems/prism@1.4.0.rbi +41732 -0
- data/sorbet/rbi/gems/psych@5.2.3.rbi +2435 -0
- data/sorbet/rbi/gems/racc@1.8.1.rbi +160 -0
- data/sorbet/rbi/gems/rack-session@2.1.1.rbi +727 -0
- data/sorbet/rbi/gems/rack-test@2.2.0.rbi +734 -0
- data/sorbet/rbi/gems/rack@3.1.16.rbi +4940 -0
- data/sorbet/rbi/gems/rackup@2.2.1.rbi +230 -0
- data/sorbet/rbi/gems/rails-dom-testing@2.3.0.rbi +858 -0
- data/sorbet/rbi/gems/rails-html-sanitizer@1.6.2.rbi +785 -0
- data/sorbet/rbi/gems/rails@8.0.2.rbi +9 -0
- data/sorbet/rbi/gems/railties@8.0.2.rbi +3865 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
- data/sorbet/rbi/gems/rake@13.2.1.rbi +3120 -0
- data/sorbet/rbi/gems/rbi@0.3.6.rbi +6893 -0
- data/sorbet/rbi/gems/rbs@3.9.4.rbi +6978 -0
- data/sorbet/rbi/gems/rdoc@6.12.0.rbi +12760 -0
- data/sorbet/rbi/gems/reline@0.6.0.rbi +2451 -0
- data/sorbet/rbi/gems/rexml@3.4.1.rbi +5240 -0
- data/sorbet/rbi/gems/rspec-core@3.13.4.rbi +11348 -0
- data/sorbet/rbi/gems/rspec-expectations@3.13.5.rbi +8189 -0
- data/sorbet/rbi/gems/rspec-mocks@3.13.5.rbi +5350 -0
- data/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi +164 -0
- data/sorbet/rbi/gems/rspec-support@3.13.4.rbi +1630 -0
- data/sorbet/rbi/gems/rspec@3.13.1.rbi +83 -0
- data/sorbet/rbi/gems/securerandom@0.4.1.rbi +75 -0
- data/sorbet/rbi/gems/spoom@1.6.3.rbi +6985 -0
- data/sorbet/rbi/gems/stringio@3.1.5.rbi +9 -0
- data/sorbet/rbi/gems/tapioca@0.16.11.rbi +3628 -0
- data/sorbet/rbi/gems/testcontainers-core@0.2.0.rbi +1005 -0
- data/sorbet/rbi/gems/testcontainers-postgres@0.2.0.rbi +145 -0
- data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
- data/sorbet/rbi/gems/timeout@0.4.3.rbi +157 -0
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5918 -0
- data/sorbet/rbi/gems/uri@1.0.3.rbi +2349 -0
- data/sorbet/rbi/gems/useragent@0.16.11.rbi +9 -0
- data/sorbet/rbi/gems/websocket-driver@0.8.0.rbi +9 -0
- data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +9 -0
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
- data/sorbet/rbi/gems/yard@0.9.37.rbi +18379 -0
- data/sorbet/rbi/gems/zeitwerk@2.7.3.rbi +9 -0
- data/sorbet/tapioca/config.yml +5 -0
- data/sorbet/tapioca/require.rb +12 -0
- metadata +231 -6
@@ -0,0 +1,1719 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `docker-api` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem docker-api`.
|
6
|
+
|
7
|
+
|
8
|
+
# The top-level module for this gem. Its purpose is to hold global
|
9
|
+
# configuration variables that are used as defaults in other classes.
|
10
|
+
#
|
11
|
+
# source://docker-api//lib/docker.rb#23
|
12
|
+
module Docker
|
13
|
+
private
|
14
|
+
|
15
|
+
# Login to the Docker registry.
|
16
|
+
#
|
17
|
+
# source://docker-api//lib/docker.rb#135
|
18
|
+
def authenticate!(options = T.unsafe(nil), connection = T.unsafe(nil)); end
|
19
|
+
|
20
|
+
# source://docker-api//lib/docker.rb#95
|
21
|
+
def connection; end
|
22
|
+
|
23
|
+
# Returns the value of attribute creds.
|
24
|
+
#
|
25
|
+
# source://docker-api//lib/docker.rb#24
|
26
|
+
def creds; end
|
27
|
+
|
28
|
+
# Sets the attribute creds
|
29
|
+
#
|
30
|
+
# @param value the value to set the attribute creds to.
|
31
|
+
#
|
32
|
+
# source://docker-api//lib/docker.rb#24
|
33
|
+
def creds=(_arg0); end
|
34
|
+
|
35
|
+
# source://docker-api//lib/docker.rb#41
|
36
|
+
def default_socket_url; end
|
37
|
+
|
38
|
+
# source://docker-api//lib/docker.rb#49
|
39
|
+
def env_options; end
|
40
|
+
|
41
|
+
# source://docker-api//lib/docker.rb#45
|
42
|
+
def env_url; end
|
43
|
+
|
44
|
+
# Get more information about the Docker server.
|
45
|
+
#
|
46
|
+
# source://docker-api//lib/docker.rb#115
|
47
|
+
def info(connection = T.unsafe(nil)); end
|
48
|
+
|
49
|
+
# Returns the value of attribute logger.
|
50
|
+
#
|
51
|
+
# source://docker-api//lib/docker.rb#24
|
52
|
+
def logger; end
|
53
|
+
|
54
|
+
# Sets the attribute logger
|
55
|
+
#
|
56
|
+
# @param value the value to set the attribute logger to.
|
57
|
+
#
|
58
|
+
# source://docker-api//lib/docker.rb#24
|
59
|
+
def logger=(_arg0); end
|
60
|
+
|
61
|
+
# source://docker-api//lib/docker.rb#81
|
62
|
+
def options; end
|
63
|
+
|
64
|
+
# source://docker-api//lib/docker.rb#90
|
65
|
+
def options=(new_options); end
|
66
|
+
|
67
|
+
# Ping the Docker server.
|
68
|
+
#
|
69
|
+
# source://docker-api//lib/docker.rb#120
|
70
|
+
def ping(connection = T.unsafe(nil)); end
|
71
|
+
|
72
|
+
# Determine if the server is podman or docker.
|
73
|
+
#
|
74
|
+
# @return [Boolean]
|
75
|
+
#
|
76
|
+
# source://docker-api//lib/docker.rb#125
|
77
|
+
def podman?(connection = T.unsafe(nil)); end
|
78
|
+
|
79
|
+
# source://docker-api//lib/docker.rb#99
|
80
|
+
def reset!; end
|
81
|
+
|
82
|
+
# source://docker-api//lib/docker.rb#105
|
83
|
+
def reset_connection!; end
|
84
|
+
|
85
|
+
# Determine if the session is rootless.
|
86
|
+
#
|
87
|
+
# @return [Boolean]
|
88
|
+
#
|
89
|
+
# source://docker-api//lib/docker.rb#130
|
90
|
+
def rootless?(connection = T.unsafe(nil)); end
|
91
|
+
|
92
|
+
# source://docker-api//lib/docker.rb#62
|
93
|
+
def ssl_options; end
|
94
|
+
|
95
|
+
# source://docker-api//lib/docker.rb#72
|
96
|
+
def url; end
|
97
|
+
|
98
|
+
# source://docker-api//lib/docker.rb#85
|
99
|
+
def url=(new_url); end
|
100
|
+
|
101
|
+
# Get the version of Go, Docker, and optionally the Git commit.
|
102
|
+
#
|
103
|
+
# source://docker-api//lib/docker.rb#110
|
104
|
+
def version(connection = T.unsafe(nil)); end
|
105
|
+
|
106
|
+
class << self
|
107
|
+
# Login to the Docker registry.
|
108
|
+
#
|
109
|
+
# source://docker-api//lib/docker.rb#135
|
110
|
+
def authenticate!(options = T.unsafe(nil), connection = T.unsafe(nil)); end
|
111
|
+
|
112
|
+
# source://docker-api//lib/docker.rb#95
|
113
|
+
def connection; end
|
114
|
+
|
115
|
+
# Returns the value of attribute creds.
|
116
|
+
#
|
117
|
+
# source://docker-api//lib/docker.rb#24
|
118
|
+
def creds; end
|
119
|
+
|
120
|
+
# Sets the attribute creds
|
121
|
+
#
|
122
|
+
# @param value the value to set the attribute creds to.
|
123
|
+
#
|
124
|
+
# source://docker-api//lib/docker.rb#24
|
125
|
+
def creds=(_arg0); end
|
126
|
+
|
127
|
+
# source://docker-api//lib/docker.rb#41
|
128
|
+
def default_socket_url; end
|
129
|
+
|
130
|
+
# source://docker-api//lib/docker.rb#49
|
131
|
+
def env_options; end
|
132
|
+
|
133
|
+
# source://docker-api//lib/docker.rb#45
|
134
|
+
def env_url; end
|
135
|
+
|
136
|
+
# Get more information about the Docker server.
|
137
|
+
#
|
138
|
+
# source://docker-api//lib/docker.rb#115
|
139
|
+
def info(connection = T.unsafe(nil)); end
|
140
|
+
|
141
|
+
# Returns the value of attribute logger.
|
142
|
+
#
|
143
|
+
# source://docker-api//lib/docker.rb#24
|
144
|
+
def logger; end
|
145
|
+
|
146
|
+
# Sets the attribute logger
|
147
|
+
#
|
148
|
+
# @param value the value to set the attribute logger to.
|
149
|
+
#
|
150
|
+
# source://docker-api//lib/docker.rb#24
|
151
|
+
def logger=(_arg0); end
|
152
|
+
|
153
|
+
# source://docker-api//lib/docker.rb#81
|
154
|
+
def options; end
|
155
|
+
|
156
|
+
# source://docker-api//lib/docker.rb#90
|
157
|
+
def options=(new_options); end
|
158
|
+
|
159
|
+
# Ping the Docker server.
|
160
|
+
#
|
161
|
+
# source://docker-api//lib/docker.rb#120
|
162
|
+
def ping(connection = T.unsafe(nil)); end
|
163
|
+
|
164
|
+
# Determine if the server is podman or docker.
|
165
|
+
#
|
166
|
+
# @return [Boolean]
|
167
|
+
#
|
168
|
+
# source://docker-api//lib/docker.rb#125
|
169
|
+
def podman?(connection = T.unsafe(nil)); end
|
170
|
+
|
171
|
+
# source://docker-api//lib/docker.rb#99
|
172
|
+
def reset!; end
|
173
|
+
|
174
|
+
# source://docker-api//lib/docker.rb#105
|
175
|
+
def reset_connection!; end
|
176
|
+
|
177
|
+
# Determine if the session is rootless.
|
178
|
+
#
|
179
|
+
# @return [Boolean]
|
180
|
+
#
|
181
|
+
# source://docker-api//lib/docker.rb#130
|
182
|
+
def rootless?(connection = T.unsafe(nil)); end
|
183
|
+
|
184
|
+
# source://docker-api//lib/docker.rb#62
|
185
|
+
def ssl_options; end
|
186
|
+
|
187
|
+
# source://docker-api//lib/docker.rb#72
|
188
|
+
def url; end
|
189
|
+
|
190
|
+
# source://docker-api//lib/docker.rb#85
|
191
|
+
def url=(new_url); end
|
192
|
+
|
193
|
+
# Get the version of Go, Docker, and optionally the Git commit.
|
194
|
+
#
|
195
|
+
# source://docker-api//lib/docker.rb#110
|
196
|
+
def version(connection = T.unsafe(nil)); end
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
# This class is a base class for Docker Container and Image.
|
201
|
+
# It is implementing accessor methods for the models attributes.
|
202
|
+
#
|
203
|
+
# source://docker-api//lib/docker/base.rb#5
|
204
|
+
module Docker::Base
|
205
|
+
include ::Docker::Error
|
206
|
+
|
207
|
+
# The private new method accepts a connection and a hash of options that must include an id.
|
208
|
+
#
|
209
|
+
# @raise [ArgumentError]
|
210
|
+
#
|
211
|
+
# source://docker-api//lib/docker/base.rb#12
|
212
|
+
def initialize(connection, hash = T.unsafe(nil)); end
|
213
|
+
|
214
|
+
# Returns the value of attribute connection.
|
215
|
+
#
|
216
|
+
# source://docker-api//lib/docker/base.rb#8
|
217
|
+
def connection; end
|
218
|
+
|
219
|
+
# Sets the attribute connection
|
220
|
+
#
|
221
|
+
# @param value the value to set the attribute connection to.
|
222
|
+
#
|
223
|
+
# source://docker-api//lib/docker/base.rb#8
|
224
|
+
def connection=(_arg0); end
|
225
|
+
|
226
|
+
# Returns the value of attribute id.
|
227
|
+
#
|
228
|
+
# source://docker-api//lib/docker/base.rb#9
|
229
|
+
def id; end
|
230
|
+
|
231
|
+
# Returns the value of attribute info.
|
232
|
+
#
|
233
|
+
# source://docker-api//lib/docker/base.rb#8
|
234
|
+
def info; end
|
235
|
+
|
236
|
+
# Sets the attribute info
|
237
|
+
#
|
238
|
+
# @param value the value to set the attribute info to.
|
239
|
+
#
|
240
|
+
# source://docker-api//lib/docker/base.rb#8
|
241
|
+
def info=(_arg0); end
|
242
|
+
|
243
|
+
# The docker-api will some time return "ID" other times it will return "Id"
|
244
|
+
# and other times it will return "id". This method normalize it to "id"
|
245
|
+
# The volumes endpoint returns Name instead of ID, added in the normalize function
|
246
|
+
#
|
247
|
+
# source://docker-api//lib/docker/base.rb#24
|
248
|
+
def normalize_hash(hash); end
|
249
|
+
end
|
250
|
+
|
251
|
+
# This class represents a Connection to a Docker server. The Connection is
|
252
|
+
# immutable in that once the url and options is set they cannot be changed.
|
253
|
+
#
|
254
|
+
# source://docker-api//lib/docker/connection.rb#5
|
255
|
+
class Docker::Connection
|
256
|
+
include ::Docker::Error
|
257
|
+
|
258
|
+
# Create a new Connection. This method takes a url (String) and options
|
259
|
+
# (Hash). These are passed to Excon, so any options valid for `Excon.new`
|
260
|
+
# can be passed here.
|
261
|
+
#
|
262
|
+
# @return [Connection] a new instance of Connection
|
263
|
+
#
|
264
|
+
# source://docker-api//lib/docker/connection.rb#16
|
265
|
+
def initialize(url, opts); end
|
266
|
+
|
267
|
+
# source://docker-api//lib/docker/connection.rb#111
|
268
|
+
def delete(*args, &block); end
|
269
|
+
|
270
|
+
# source://docker-api//lib/docker/connection.rb#111
|
271
|
+
def get(*args, &block); end
|
272
|
+
|
273
|
+
# Common attribute requests
|
274
|
+
#
|
275
|
+
# source://docker-api//lib/docker/connection.rb#115
|
276
|
+
def info; end
|
277
|
+
|
278
|
+
# source://docker-api//lib/docker/connection.rb#97
|
279
|
+
def log_request(request); end
|
280
|
+
|
281
|
+
# Returns the value of attribute options.
|
282
|
+
#
|
283
|
+
# source://docker-api//lib/docker/connection.rb#11
|
284
|
+
def options; end
|
285
|
+
|
286
|
+
# source://docker-api//lib/docker/connection.rb#119
|
287
|
+
def ping; end
|
288
|
+
|
289
|
+
# @return [Boolean]
|
290
|
+
#
|
291
|
+
# source://docker-api//lib/docker/connection.rb#123
|
292
|
+
def podman?; end
|
293
|
+
|
294
|
+
# source://docker-api//lib/docker/connection.rb#111
|
295
|
+
def post(*args, &block); end
|
296
|
+
|
297
|
+
# source://docker-api//lib/docker/connection.rb#111
|
298
|
+
def put(*args, &block); end
|
299
|
+
|
300
|
+
# Send a request to the server with the `
|
301
|
+
#
|
302
|
+
# source://docker-api//lib/docker/connection.rb#42
|
303
|
+
def request(*args, &block); end
|
304
|
+
|
305
|
+
# @return [Boolean]
|
306
|
+
#
|
307
|
+
# source://docker-api//lib/docker/connection.rb#131
|
308
|
+
def rootless?; end
|
309
|
+
|
310
|
+
# source://docker-api//lib/docker/connection.rb#105
|
311
|
+
def to_s; end
|
312
|
+
|
313
|
+
# Returns the value of attribute url.
|
314
|
+
#
|
315
|
+
# source://docker-api//lib/docker/connection.rb#11
|
316
|
+
def url; end
|
317
|
+
|
318
|
+
# source://docker-api//lib/docker/connection.rb#135
|
319
|
+
def version; end
|
320
|
+
|
321
|
+
private
|
322
|
+
|
323
|
+
# Given an HTTP method, path, optional query, extra options, and block,
|
324
|
+
# compiles a request.
|
325
|
+
#
|
326
|
+
# source://docker-api//lib/docker/connection.rb#142
|
327
|
+
def compile_request_params(http_method, path, query = T.unsafe(nil), opts = T.unsafe(nil), &block); end
|
328
|
+
|
329
|
+
# The actual client that sends HTTP methods to the Docker server. This value
|
330
|
+
# is not cached, since doing so may cause socket errors after bad requests.
|
331
|
+
#
|
332
|
+
# source://docker-api//lib/docker/connection.rb#36
|
333
|
+
def resource; end
|
334
|
+
end
|
335
|
+
|
336
|
+
# This class represents a Docker Container. It's important to note that nothing
|
337
|
+
# is cached so that the information is always up to date.
|
338
|
+
#
|
339
|
+
# source://docker-api//lib/docker/container.rb#5
|
340
|
+
class Docker::Container
|
341
|
+
include ::Docker::Error
|
342
|
+
include ::Docker::Base
|
343
|
+
|
344
|
+
# source://docker-api//lib/docker/container.rb#280
|
345
|
+
def archive_in(inputs, output_path, opts = T.unsafe(nil)); end
|
346
|
+
|
347
|
+
# source://docker-api//lib/docker/container.rb#288
|
348
|
+
def archive_in_stream(output_path, opts = T.unsafe(nil), &block); end
|
349
|
+
|
350
|
+
# source://docker-api//lib/docker/container.rb#271
|
351
|
+
def archive_out(path, &block); end
|
352
|
+
|
353
|
+
# Attach to a container's standard streams / logs.
|
354
|
+
#
|
355
|
+
# source://docker-api//lib/docker/container.rb#105
|
356
|
+
def attach(options = T.unsafe(nil), excon_params = T.unsafe(nil), &block); end
|
357
|
+
|
358
|
+
# source://docker-api//lib/docker/container.rb#155
|
359
|
+
def changes(opts = T.unsafe(nil)); end
|
360
|
+
|
361
|
+
# Create an Image from a Container's change.s
|
362
|
+
#
|
363
|
+
# source://docker-api//lib/docker/container.rb#134
|
364
|
+
def commit(options = T.unsafe(nil)); end
|
365
|
+
|
366
|
+
# remove container
|
367
|
+
#
|
368
|
+
# source://docker-api//lib/docker/container.rb#250
|
369
|
+
def delete(options = T.unsafe(nil)); end
|
370
|
+
|
371
|
+
# Create an Exec instance inside the container
|
372
|
+
#
|
373
|
+
# @param command [String, Array] The command to run inside the Exec instance
|
374
|
+
# @param options [Hash] The options to pass to Docker::Exec
|
375
|
+
# @return [Docker::Exec] The Exec instance
|
376
|
+
#
|
377
|
+
# source://docker-api//lib/docker/container.rb#57
|
378
|
+
def exec(command, options = T.unsafe(nil), &block); end
|
379
|
+
|
380
|
+
# Export the Container as a tar.
|
381
|
+
#
|
382
|
+
# source://docker-api//lib/docker/container.rb#99
|
383
|
+
def export(&block); end
|
384
|
+
|
385
|
+
# source://docker-api//lib/docker/container.rb#155
|
386
|
+
def json(opts = T.unsafe(nil)); end
|
387
|
+
|
388
|
+
# source://docker-api//lib/docker/container.rb#217
|
389
|
+
def kill(*args); end
|
390
|
+
|
391
|
+
# source://docker-api//lib/docker/container.rb#208
|
392
|
+
def kill!(opts = T.unsafe(nil)); end
|
393
|
+
|
394
|
+
# source://docker-api//lib/docker/container.rb#160
|
395
|
+
def logs(opts = T.unsafe(nil)); end
|
396
|
+
|
397
|
+
# source://docker-api//lib/docker/container.rb#266
|
398
|
+
def pause; end
|
399
|
+
|
400
|
+
# source://docker-api//lib/docker/container.rb#261
|
401
|
+
def pause!; end
|
402
|
+
|
403
|
+
# source://docker-api//lib/docker/container.rb#302
|
404
|
+
def read_file(path); end
|
405
|
+
|
406
|
+
# Update the @info hash, which is the only mutable state in this object.
|
407
|
+
# e.g. if you would like a live status from the #info hash, call #refresh! first.
|
408
|
+
#
|
409
|
+
# source://docker-api//lib/docker/container.rb#10
|
410
|
+
def refresh!; end
|
411
|
+
|
412
|
+
# remove container
|
413
|
+
#
|
414
|
+
# source://docker-api//lib/docker/container.rb#250
|
415
|
+
def remove(options = T.unsafe(nil)); end
|
416
|
+
|
417
|
+
# source://docker-api//lib/docker/container.rb#183
|
418
|
+
def rename(new_name); end
|
419
|
+
|
420
|
+
# source://docker-api//lib/docker/container.rb#244
|
421
|
+
def restart(*args); end
|
422
|
+
|
423
|
+
# source://docker-api//lib/docker/container.rb#226
|
424
|
+
def restart!(opts = T.unsafe(nil)); end
|
425
|
+
|
426
|
+
# Given a command and an optional number of seconds to wait for the currently
|
427
|
+
# executing command, creates a new Container to run the specified command. If
|
428
|
+
# the command that is currently executing does not return a 0 status code, an
|
429
|
+
# UnexpectedResponseError is raised.
|
430
|
+
#
|
431
|
+
# source://docker-api//lib/docker/container.rb#43
|
432
|
+
def run(cmd, time = T.unsafe(nil)); end
|
433
|
+
|
434
|
+
# source://docker-api//lib/docker/container.rb#217
|
435
|
+
def start(*args); end
|
436
|
+
|
437
|
+
# source://docker-api//lib/docker/container.rb#203
|
438
|
+
def start!(opts = T.unsafe(nil)); end
|
439
|
+
|
440
|
+
# source://docker-api//lib/docker/container.rb#164
|
441
|
+
def stats(options = T.unsafe(nil)); end
|
442
|
+
|
443
|
+
# source://docker-api//lib/docker/container.rb#244
|
444
|
+
def stop(*args); end
|
445
|
+
|
446
|
+
# source://docker-api//lib/docker/container.rb#226
|
447
|
+
def stop!(opts = T.unsafe(nil)); end
|
448
|
+
|
449
|
+
# source://docker-api//lib/docker/container.rb#317
|
450
|
+
def store_file(path, file_content); end
|
451
|
+
|
452
|
+
# source://docker-api//lib/docker/container.rb#193
|
453
|
+
def streaming_logs(opts = T.unsafe(nil), &block); end
|
454
|
+
|
455
|
+
# Return a String representation of the Container.
|
456
|
+
#
|
457
|
+
# source://docker-api//lib/docker/container.rb#148
|
458
|
+
def to_s; end
|
459
|
+
|
460
|
+
# Return a List of Hashes that represents the top running processes.
|
461
|
+
#
|
462
|
+
# source://docker-api//lib/docker/container.rb#21
|
463
|
+
def top(opts = T.unsafe(nil)); end
|
464
|
+
|
465
|
+
# source://docker-api//lib/docker/container.rb#266
|
466
|
+
def unpause; end
|
467
|
+
|
468
|
+
# source://docker-api//lib/docker/container.rb#261
|
469
|
+
def unpause!; end
|
470
|
+
|
471
|
+
# source://docker-api//lib/docker/container.rb#189
|
472
|
+
def update(opts); end
|
473
|
+
|
474
|
+
# Wait for the current command to finish executing. Default wait time is
|
475
|
+
# `Excon.options[:read_timeout]`.
|
476
|
+
#
|
477
|
+
# source://docker-api//lib/docker/container.rb#33
|
478
|
+
def wait(time = T.unsafe(nil)); end
|
479
|
+
|
480
|
+
private
|
481
|
+
|
482
|
+
# Convenience method to return the path for a particular resource.
|
483
|
+
#
|
484
|
+
# source://docker-api//lib/docker/container.rb#356
|
485
|
+
def path_for(resource); end
|
486
|
+
|
487
|
+
class << self
|
488
|
+
# Return all of the Containers.
|
489
|
+
#
|
490
|
+
# source://docker-api//lib/docker/container.rb#344
|
491
|
+
def all(opts = T.unsafe(nil), conn = T.unsafe(nil)); end
|
492
|
+
|
493
|
+
# Create a new Container.
|
494
|
+
#
|
495
|
+
# source://docker-api//lib/docker/container.rb#328
|
496
|
+
def create(opts = T.unsafe(nil), conn = T.unsafe(nil)); end
|
497
|
+
|
498
|
+
# Return the container with specified ID
|
499
|
+
#
|
500
|
+
# source://docker-api//lib/docker/container.rb#337
|
501
|
+
def get(id, opts = T.unsafe(nil), conn = T.unsafe(nil)); end
|
502
|
+
|
503
|
+
# Prune images
|
504
|
+
#
|
505
|
+
# source://docker-api//lib/docker/container.rb#350
|
506
|
+
def prune(conn = T.unsafe(nil)); end
|
507
|
+
|
508
|
+
private
|
509
|
+
|
510
|
+
def new(*_arg0); end
|
511
|
+
end
|
512
|
+
end
|
513
|
+
|
514
|
+
# This module holds the Errors for the gem.
|
515
|
+
#
|
516
|
+
# source://docker-api//lib/docker/error.rb#4
|
517
|
+
module Docker::Error; end
|
518
|
+
|
519
|
+
# Raised when invalid arguments are passed to a method.
|
520
|
+
#
|
521
|
+
# source://docker-api//lib/docker/error.rb#11
|
522
|
+
class Docker::Error::ArgumentError < ::Docker::Error::DockerError; end
|
523
|
+
|
524
|
+
# Raised when login fails.
|
525
|
+
#
|
526
|
+
# source://docker-api//lib/docker/error.rb#38
|
527
|
+
class Docker::Error::AuthenticationError < ::Docker::Error::DockerError; end
|
528
|
+
|
529
|
+
# Raised when a request returns a 400.
|
530
|
+
#
|
531
|
+
# source://docker-api//lib/docker/error.rb#14
|
532
|
+
class Docker::Error::ClientError < ::Docker::Error::DockerError; end
|
533
|
+
|
534
|
+
# Raised when a request returns a 409.
|
535
|
+
#
|
536
|
+
# source://docker-api//lib/docker/error.rb#23
|
537
|
+
class Docker::Error::ConflictError < ::Docker::Error::DockerError; end
|
538
|
+
|
539
|
+
# The default error. It's never actually raised, but can be used to catch all
|
540
|
+
# gem-specific errors that are thrown as they all subclass from this.
|
541
|
+
#
|
542
|
+
# source://docker-api//lib/docker/error.rb#8
|
543
|
+
class Docker::Error::DockerError < ::StandardError; end
|
544
|
+
|
545
|
+
# Raised when an IO action fails.
|
546
|
+
#
|
547
|
+
# source://docker-api//lib/docker/error.rb#41
|
548
|
+
class Docker::Error::IOError < ::Docker::Error::DockerError; end
|
549
|
+
|
550
|
+
# Raised when a request returns a 404.
|
551
|
+
#
|
552
|
+
# source://docker-api//lib/docker/error.rb#20
|
553
|
+
class Docker::Error::NotFoundError < ::Docker::Error::DockerError; end
|
554
|
+
|
555
|
+
# Raised when a request returns a 500.
|
556
|
+
#
|
557
|
+
# source://docker-api//lib/docker/error.rb#26
|
558
|
+
class Docker::Error::ServerError < ::Docker::Error::DockerError; end
|
559
|
+
|
560
|
+
# Raised when a request times out.
|
561
|
+
#
|
562
|
+
# source://docker-api//lib/docker/error.rb#35
|
563
|
+
class Docker::Error::TimeoutError < ::Docker::Error::DockerError; end
|
564
|
+
|
565
|
+
# Raised when a request returns a 401.
|
566
|
+
#
|
567
|
+
# source://docker-api//lib/docker/error.rb#17
|
568
|
+
class Docker::Error::UnauthorizedError < ::Docker::Error::DockerError; end
|
569
|
+
|
570
|
+
# Raised when there is an unexpected response code / body.
|
571
|
+
#
|
572
|
+
# source://docker-api//lib/docker/error.rb#29
|
573
|
+
class Docker::Error::UnexpectedResponseError < ::Docker::Error::DockerError; end
|
574
|
+
|
575
|
+
# Raised when there is an incompatible version of Docker.
|
576
|
+
#
|
577
|
+
# source://docker-api//lib/docker/error.rb#32
|
578
|
+
class Docker::Error::VersionError < ::Docker::Error::DockerError; end
|
579
|
+
|
580
|
+
# This class represents a Docker Event.
|
581
|
+
#
|
582
|
+
# source://docker-api//lib/docker/event.rb#4
|
583
|
+
class Docker::Event
|
584
|
+
include ::Docker::Error
|
585
|
+
extend ::Docker::Error
|
586
|
+
|
587
|
+
# @return [Event] a new instance of Event
|
588
|
+
#
|
589
|
+
# source://docker-api//lib/docker/event.rb#56
|
590
|
+
def initialize(event_attributes = T.unsafe(nil)); end
|
591
|
+
|
592
|
+
# Returns the value of attribute Action.
|
593
|
+
#
|
594
|
+
# source://docker-api//lib/docker/event.rb#51
|
595
|
+
def Action; end
|
596
|
+
|
597
|
+
# Sets the attribute Action
|
598
|
+
#
|
599
|
+
# @param value the value to set the attribute Action to.
|
600
|
+
#
|
601
|
+
# source://docker-api//lib/docker/event.rb#51
|
602
|
+
def Action=(_arg0); end
|
603
|
+
|
604
|
+
# Returns the value of attribute Actor.
|
605
|
+
#
|
606
|
+
# source://docker-api//lib/docker/event.rb#52
|
607
|
+
def Actor; end
|
608
|
+
|
609
|
+
# source://docker-api//lib/docker/event.rb#78
|
610
|
+
def Actor=(actor); end
|
611
|
+
|
612
|
+
# source://docker-api//lib/docker/event.rb#74
|
613
|
+
def ID; end
|
614
|
+
|
615
|
+
# Returns the value of attribute Type.
|
616
|
+
#
|
617
|
+
# source://docker-api//lib/docker/event.rb#51
|
618
|
+
def Type; end
|
619
|
+
|
620
|
+
# Sets the attribute Type
|
621
|
+
#
|
622
|
+
# @param value the value to set the attribute Type to.
|
623
|
+
#
|
624
|
+
# source://docker-api//lib/docker/event.rb#51
|
625
|
+
def Type=(_arg0); end
|
626
|
+
|
627
|
+
# Returns the value of attribute Action.
|
628
|
+
#
|
629
|
+
# source://docker-api//lib/docker/event.rb#51
|
630
|
+
def action; end
|
631
|
+
|
632
|
+
# Returns the value of attribute Actor.
|
633
|
+
#
|
634
|
+
# source://docker-api//lib/docker/event.rb#52
|
635
|
+
def actor; end
|
636
|
+
|
637
|
+
# Deprecated interface
|
638
|
+
#
|
639
|
+
# source://docker-api//lib/docker/event.rb#54
|
640
|
+
def from; end
|
641
|
+
|
642
|
+
# Deprecated interface
|
643
|
+
#
|
644
|
+
# source://docker-api//lib/docker/event.rb#54
|
645
|
+
def from=(_arg0); end
|
646
|
+
|
647
|
+
# source://docker-api//lib/docker/event.rb#74
|
648
|
+
def id; end
|
649
|
+
|
650
|
+
# Deprecated interface
|
651
|
+
#
|
652
|
+
# source://docker-api//lib/docker/event.rb#54
|
653
|
+
def status; end
|
654
|
+
|
655
|
+
# Deprecated interface
|
656
|
+
#
|
657
|
+
# source://docker-api//lib/docker/event.rb#54
|
658
|
+
def status=(_arg0); end
|
659
|
+
|
660
|
+
# Returns the value of attribute time.
|
661
|
+
#
|
662
|
+
# source://docker-api//lib/docker/event.rb#51
|
663
|
+
def time; end
|
664
|
+
|
665
|
+
# Sets the attribute time
|
666
|
+
#
|
667
|
+
# @param value the value to set the attribute time to.
|
668
|
+
#
|
669
|
+
# source://docker-api//lib/docker/event.rb#51
|
670
|
+
def time=(_arg0); end
|
671
|
+
|
672
|
+
# Returns the value of attribute timeNano.
|
673
|
+
#
|
674
|
+
# source://docker-api//lib/docker/event.rb#51
|
675
|
+
def timeNano; end
|
676
|
+
|
677
|
+
# Sets the attribute timeNano
|
678
|
+
#
|
679
|
+
# @param value the value to set the attribute timeNano to.
|
680
|
+
#
|
681
|
+
# source://docker-api//lib/docker/event.rb#51
|
682
|
+
def timeNano=(_arg0); end
|
683
|
+
|
684
|
+
# Returns the value of attribute timeNano.
|
685
|
+
#
|
686
|
+
# source://docker-api//lib/docker/event.rb#51
|
687
|
+
def time_nano; end
|
688
|
+
|
689
|
+
# source://docker-api//lib/docker/event.rb#93
|
690
|
+
def to_s; end
|
691
|
+
|
692
|
+
# Returns the value of attribute Type.
|
693
|
+
#
|
694
|
+
# source://docker-api//lib/docker/event.rb#51
|
695
|
+
def type; end
|
696
|
+
|
697
|
+
private
|
698
|
+
|
699
|
+
# source://docker-api//lib/docker/event.rb#114
|
700
|
+
def to_s_actor_style; end
|
701
|
+
|
702
|
+
# source://docker-api//lib/docker/event.rb#103
|
703
|
+
def to_s_legacy; end
|
704
|
+
|
705
|
+
class << self
|
706
|
+
# source://docker-api//lib/docker/event.rb#44
|
707
|
+
def new_event(body, remaining, total); end
|
708
|
+
|
709
|
+
# source://docker-api//lib/docker/event.rb#40
|
710
|
+
def since(since, opts = T.unsafe(nil), conn = T.unsafe(nil), &block); end
|
711
|
+
|
712
|
+
# source://docker-api//lib/docker/event.rb#32
|
713
|
+
def stream(opts = T.unsafe(nil), conn = T.unsafe(nil), &block); end
|
714
|
+
end
|
715
|
+
end
|
716
|
+
|
717
|
+
# Represents the actor object nested within an event
|
718
|
+
#
|
719
|
+
# source://docker-api//lib/docker/event.rb#8
|
720
|
+
class Docker::Event::Actor
|
721
|
+
# @return [Actor] a new instance of Actor
|
722
|
+
#
|
723
|
+
# source://docker-api//lib/docker/event.rb#11
|
724
|
+
def initialize(actor_attributes = T.unsafe(nil)); end
|
725
|
+
|
726
|
+
# Returns the value of attribute Attributes.
|
727
|
+
#
|
728
|
+
# source://docker-api//lib/docker/event.rb#9
|
729
|
+
def Attributes; end
|
730
|
+
|
731
|
+
# Sets the attribute Attributes
|
732
|
+
#
|
733
|
+
# @param value the value to set the attribute Attributes to.
|
734
|
+
#
|
735
|
+
# source://docker-api//lib/docker/event.rb#9
|
736
|
+
def Attributes=(_arg0); end
|
737
|
+
|
738
|
+
# Returns the value of attribute ID.
|
739
|
+
#
|
740
|
+
# source://docker-api//lib/docker/event.rb#9
|
741
|
+
def ID; end
|
742
|
+
|
743
|
+
# Sets the attribute ID
|
744
|
+
#
|
745
|
+
# @param value the value to set the attribute ID to.
|
746
|
+
#
|
747
|
+
# source://docker-api//lib/docker/event.rb#9
|
748
|
+
def ID=(_arg0); end
|
749
|
+
|
750
|
+
# Returns the value of attribute Attributes.
|
751
|
+
#
|
752
|
+
# source://docker-api//lib/docker/event.rb#9
|
753
|
+
def attributes; end
|
754
|
+
|
755
|
+
# Returns the value of attribute ID.
|
756
|
+
#
|
757
|
+
# source://docker-api//lib/docker/event.rb#9
|
758
|
+
def id; end
|
759
|
+
end
|
760
|
+
|
761
|
+
# This class represents a Docker Exec Instance.
|
762
|
+
#
|
763
|
+
# source://docker-api//lib/docker/exec.rb#4
|
764
|
+
class Docker::Exec
|
765
|
+
include ::Docker::Error
|
766
|
+
include ::Docker::Base
|
767
|
+
|
768
|
+
# Get info about the Exec instance
|
769
|
+
#
|
770
|
+
# source://docker-api//lib/docker/exec.rb#39
|
771
|
+
def json; end
|
772
|
+
|
773
|
+
# Resize the TTY associated with the Exec instance
|
774
|
+
#
|
775
|
+
# @option query
|
776
|
+
# @option query
|
777
|
+
# @param query [Hash] API query parameters
|
778
|
+
# @return [Docker::Exec] self
|
779
|
+
#
|
780
|
+
# source://docker-api//lib/docker/exec.rb#101
|
781
|
+
def resize(query = T.unsafe(nil)); end
|
782
|
+
|
783
|
+
# source://docker-api//lib/docker/exec.rb#89
|
784
|
+
def start(*args); end
|
785
|
+
|
786
|
+
# Start the Exec instance. The Exec instance is deleted after this so this
|
787
|
+
# command can only be run once.
|
788
|
+
#
|
789
|
+
# @option options
|
790
|
+
# @option options
|
791
|
+
# @option options
|
792
|
+
# @param options [Hash] Options to dictate behavior of the instance
|
793
|
+
# @return [Array, Array, Int] The STDOUT, STDERR and exit code
|
794
|
+
#
|
795
|
+
# source://docker-api//lib/docker/exec.rb#54
|
796
|
+
def start!(options = T.unsafe(nil), &block); end
|
797
|
+
|
798
|
+
# Convert details about the object into a string
|
799
|
+
#
|
800
|
+
# @return [String] String representation of the Exec instance object
|
801
|
+
#
|
802
|
+
# source://docker-api//lib/docker/exec.rb#10
|
803
|
+
def to_s; end
|
804
|
+
|
805
|
+
private
|
806
|
+
|
807
|
+
# Get the request URI for the given endpoint
|
808
|
+
#
|
809
|
+
# @param endpoint [Symbol] The endpoint to grab
|
810
|
+
# @return [String] The full Remote API endpoint with ID
|
811
|
+
#
|
812
|
+
# source://docker-api//lib/docker/exec.rb#110
|
813
|
+
def path_for(endpoint); end
|
814
|
+
|
815
|
+
class << self
|
816
|
+
# Create a new Exec instance in a running container. Please note, this does
|
817
|
+
# NOT execute the instance - you must run #start. Also, each instance is
|
818
|
+
# one-time use only.
|
819
|
+
#
|
820
|
+
# @param options [Hash] Parameters to pass in to the API.
|
821
|
+
# @param conn [Docker::Connection] Connection to Docker Remote API
|
822
|
+
# @return [Docker::Exec] self
|
823
|
+
#
|
824
|
+
# source://docker-api//lib/docker/exec.rb#22
|
825
|
+
def create(options = T.unsafe(nil), conn = T.unsafe(nil)); end
|
826
|
+
|
827
|
+
private
|
828
|
+
|
829
|
+
def new(*_arg0); end
|
830
|
+
end
|
831
|
+
end
|
832
|
+
|
833
|
+
# This class represents a Docker Image.
|
834
|
+
#
|
835
|
+
# source://docker-api//lib/docker/image.rb#4
|
836
|
+
class Docker::Image
|
837
|
+
include ::Docker::Error
|
838
|
+
include ::Docker::Base
|
839
|
+
|
840
|
+
# Remove the Image from the server.
|
841
|
+
#
|
842
|
+
# source://docker-api//lib/docker/image.rb#69
|
843
|
+
def delete(opts = T.unsafe(nil)); end
|
844
|
+
|
845
|
+
# source://docker-api//lib/docker/image.rb#93
|
846
|
+
def history(opts = T.unsafe(nil)); end
|
847
|
+
|
848
|
+
# Given a path of a local file and the path it should be inserted, creates
|
849
|
+
# a new Image that has that file.
|
850
|
+
#
|
851
|
+
# source://docker-api//lib/docker/image.rb#53
|
852
|
+
def insert_local(opts = T.unsafe(nil)); end
|
853
|
+
|
854
|
+
# source://docker-api//lib/docker/image.rb#93
|
855
|
+
def json(opts = T.unsafe(nil)); end
|
856
|
+
|
857
|
+
# Push the Image to the Docker registry.
|
858
|
+
#
|
859
|
+
# @raise [ArgumentError]
|
860
|
+
#
|
861
|
+
# source://docker-api//lib/docker/image.rb#27
|
862
|
+
def push(creds = T.unsafe(nil), options = T.unsafe(nil), &block); end
|
863
|
+
|
864
|
+
# Update the @info hash, which is the only mutable state in this object.
|
865
|
+
#
|
866
|
+
# source://docker-api//lib/docker/image.rb#109
|
867
|
+
def refresh!; end
|
868
|
+
|
869
|
+
# Remove the Image from the server.
|
870
|
+
#
|
871
|
+
# source://docker-api//lib/docker/image.rb#69
|
872
|
+
def remove(opts = T.unsafe(nil)); end
|
873
|
+
|
874
|
+
# Given a command and optional list of streams to attach to, run a command on
|
875
|
+
# an Image. This will not modify the Image, but rather create a new Container
|
876
|
+
# to run the Image. If the image has an embedded config, no command is
|
877
|
+
# necessary, but it will fail with 500 if no config is saved with the image
|
878
|
+
#
|
879
|
+
# source://docker-api//lib/docker/image.rb#11
|
880
|
+
def run(cmd = T.unsafe(nil), options = T.unsafe(nil)); end
|
881
|
+
|
882
|
+
# Save the image as a tarball
|
883
|
+
#
|
884
|
+
# source://docker-api//lib/docker/image.rb#99
|
885
|
+
def save(filename = T.unsafe(nil)); end
|
886
|
+
|
887
|
+
# Save the image as a tarball to an IO object.
|
888
|
+
#
|
889
|
+
# source://docker-api//lib/docker/image.rb#104
|
890
|
+
def save_stream(opts = T.unsafe(nil), &block); end
|
891
|
+
|
892
|
+
# Tag the Image.
|
893
|
+
#
|
894
|
+
# source://docker-api//lib/docker/image.rb#43
|
895
|
+
def tag(opts = T.unsafe(nil)); end
|
896
|
+
|
897
|
+
# Return a String representation of the Image.
|
898
|
+
#
|
899
|
+
# source://docker-api//lib/docker/image.rb#85
|
900
|
+
def to_s; end
|
901
|
+
|
902
|
+
private
|
903
|
+
|
904
|
+
# Convience method to get the Dockerfile for a file hash and a path to
|
905
|
+
# output to.
|
906
|
+
#
|
907
|
+
# source://docker-api//lib/docker/image.rb#344
|
908
|
+
def dockerfile_for(file_hash, output_path); end
|
909
|
+
|
910
|
+
# source://docker-api//lib/docker/image.rb#354
|
911
|
+
def ensure_repo_tags; end
|
912
|
+
|
913
|
+
# Convenience method to return the path for a particular resource.
|
914
|
+
#
|
915
|
+
# source://docker-api//lib/docker/image.rb#337
|
916
|
+
def path_for(resource); end
|
917
|
+
|
918
|
+
class << self
|
919
|
+
# Return every Image.
|
920
|
+
#
|
921
|
+
# source://docker-api//lib/docker/image.rb#219
|
922
|
+
def all(opts = T.unsafe(nil), conn = T.unsafe(nil)); end
|
923
|
+
|
924
|
+
# Given a Dockerfile as a string, builds an Image.
|
925
|
+
#
|
926
|
+
# source://docker-api//lib/docker/image.rb#271
|
927
|
+
def build(commands, opts = T.unsafe(nil), connection = T.unsafe(nil), &block); end
|
928
|
+
|
929
|
+
# Given a directory that contains a Dockerfile, builds an Image.
|
930
|
+
#
|
931
|
+
# If a block is passed, chunks of output produced by Docker will be passed
|
932
|
+
# to that block.
|
933
|
+
#
|
934
|
+
# source://docker-api//lib/docker/image.rb#309
|
935
|
+
def build_from_dir(dir, opts = T.unsafe(nil), connection = T.unsafe(nil), creds = T.unsafe(nil), &block); end
|
936
|
+
|
937
|
+
# Given File like object containing a tar file, builds an Image.
|
938
|
+
#
|
939
|
+
# If a block is passed, chunks of output produced by Docker will be passed
|
940
|
+
# to that block.
|
941
|
+
#
|
942
|
+
# source://docker-api//lib/docker/image.rb#287
|
943
|
+
def build_from_tar(tar, opts = T.unsafe(nil), connection = T.unsafe(nil), creds = T.unsafe(nil), &block); end
|
944
|
+
|
945
|
+
# A method to build the config header and merge it into the
|
946
|
+
# headers sent by build_from_dir.
|
947
|
+
#
|
948
|
+
# source://docker-api//lib/docker/image.rb#326
|
949
|
+
def build_headers(creds = T.unsafe(nil)); end
|
950
|
+
|
951
|
+
# Create a new Image.
|
952
|
+
#
|
953
|
+
# source://docker-api//lib/docker/image.rb#121
|
954
|
+
def create(opts = T.unsafe(nil), creds = T.unsafe(nil), conn = T.unsafe(nil), &block); end
|
955
|
+
|
956
|
+
# Delete a specific image
|
957
|
+
#
|
958
|
+
# source://docker-api//lib/docker/image.rb#146
|
959
|
+
def delete(id, opts = T.unsafe(nil), conn = T.unsafe(nil)); end
|
960
|
+
|
961
|
+
# Check if an image exists.
|
962
|
+
#
|
963
|
+
# @return [Boolean]
|
964
|
+
#
|
965
|
+
# source://docker-api//lib/docker/image.rb#211
|
966
|
+
def exist?(id, opts = T.unsafe(nil), conn = T.unsafe(nil)); end
|
967
|
+
|
968
|
+
# Return a specific image.
|
969
|
+
#
|
970
|
+
# source://docker-api//lib/docker/image.rb#139
|
971
|
+
def get(id, opts = T.unsafe(nil), conn = T.unsafe(nil)); end
|
972
|
+
|
973
|
+
# Import an Image from the output of Docker::Container#export. The first
|
974
|
+
# argument may either be a File or URI.
|
975
|
+
#
|
976
|
+
# source://docker-api//lib/docker/image.rb#240
|
977
|
+
def import(imp, opts = T.unsafe(nil), conn = T.unsafe(nil)); end
|
978
|
+
|
979
|
+
# source://docker-api//lib/docker/image.rb#259
|
980
|
+
def import_stream(options = T.unsafe(nil), connection = T.unsafe(nil), &block); end
|
981
|
+
|
982
|
+
# Load a tar Image
|
983
|
+
#
|
984
|
+
# source://docker-api//lib/docker/image.rb#198
|
985
|
+
def load(tar, opts = T.unsafe(nil), conn = T.unsafe(nil), creds = T.unsafe(nil), &block); end
|
986
|
+
|
987
|
+
# Prune images
|
988
|
+
#
|
989
|
+
# source://docker-api//lib/docker/image.rb#152
|
990
|
+
def prune(conn = T.unsafe(nil)); end
|
991
|
+
|
992
|
+
# Delete a specific image
|
993
|
+
#
|
994
|
+
# source://docker-api//lib/docker/image.rb#146
|
995
|
+
def remove(id, opts = T.unsafe(nil), conn = T.unsafe(nil)); end
|
996
|
+
|
997
|
+
# Generates the block to be passed as a reponse block to Excon. The returned
|
998
|
+
# lambda will append Docker output to the first argument, and yield output to
|
999
|
+
# the passed block, if a block is given.
|
1000
|
+
#
|
1001
|
+
# source://docker-api//lib/docker/image.rb#362
|
1002
|
+
def response_block(body); end
|
1003
|
+
|
1004
|
+
# Generates the block to be passed in to the save request. This lambda will
|
1005
|
+
# append the streaming data to the file provided.
|
1006
|
+
#
|
1007
|
+
# source://docker-api//lib/docker/image.rb#371
|
1008
|
+
def response_block_for_save(file); end
|
1009
|
+
|
1010
|
+
# Save the raw binary representation or one or more Docker images
|
1011
|
+
#
|
1012
|
+
# representation of the binary data. If the filename is not nil, then
|
1013
|
+
# return nil.
|
1014
|
+
#
|
1015
|
+
# @param names [String, Array#String] The image(s) you wish to save
|
1016
|
+
# @param filename [String] The file to export the data to.
|
1017
|
+
# @param conn [Docker::Connection] The Docker connection to use
|
1018
|
+
# @return [NilClass, String] If filename is nil, return the string
|
1019
|
+
#
|
1020
|
+
# source://docker-api//lib/docker/image.rb#166
|
1021
|
+
def save(names, filename = T.unsafe(nil), conn = T.unsafe(nil)); end
|
1022
|
+
|
1023
|
+
# Stream the contents of Docker image(s) to a block.
|
1024
|
+
#
|
1025
|
+
# @param names [String, Array#String] The image(s) you wish to save
|
1026
|
+
# @param conn [Docker::Connection] The Docker connection to use
|
1027
|
+
#
|
1028
|
+
# source://docker-api//lib/docker/image.rb#184
|
1029
|
+
def save_stream(names, opts = T.unsafe(nil), conn = T.unsafe(nil), &block); end
|
1030
|
+
|
1031
|
+
# Given a query like `{ :term => 'sshd' }`, queries the Docker Registry for
|
1032
|
+
# a corresponding Image.
|
1033
|
+
#
|
1034
|
+
# source://docker-api//lib/docker/image.rb#226
|
1035
|
+
def search(query = T.unsafe(nil), connection = T.unsafe(nil), creds = T.unsafe(nil)); end
|
1036
|
+
end
|
1037
|
+
end
|
1038
|
+
|
1039
|
+
# This class allows image-based tasks to be created.
|
1040
|
+
#
|
1041
|
+
# source://docker-api//lib/docker/rake_task.rb#4
|
1042
|
+
class Docker::ImageTask < ::Rake::Task
|
1043
|
+
# @return [Boolean]
|
1044
|
+
#
|
1045
|
+
# source://docker-api//lib/docker/rake_task.rb#9
|
1046
|
+
def needed?; end
|
1047
|
+
|
1048
|
+
private
|
1049
|
+
|
1050
|
+
# @return [Boolean]
|
1051
|
+
#
|
1052
|
+
# source://docker-api//lib/docker/rake_task.rb#15
|
1053
|
+
def has_repo_tag?; end
|
1054
|
+
|
1055
|
+
# source://docker-api//lib/docker/rake_task.rb#19
|
1056
|
+
def images; end
|
1057
|
+
|
1058
|
+
# source://docker-api//lib/docker/rake_task.rb#23
|
1059
|
+
def repo; end
|
1060
|
+
|
1061
|
+
# source://docker-api//lib/docker/rake_task.rb#31
|
1062
|
+
def repo_tag; end
|
1063
|
+
|
1064
|
+
# source://docker-api//lib/docker/rake_task.rb#27
|
1065
|
+
def tag; end
|
1066
|
+
|
1067
|
+
class << self
|
1068
|
+
# source://docker-api//lib/docker/rake_task.rb#5
|
1069
|
+
def scope_name(_scope, task_name); end
|
1070
|
+
end
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
# This class represents all the messages either received by chunks from attach
|
1074
|
+
#
|
1075
|
+
# source://docker-api//lib/docker/messages.rb#4
|
1076
|
+
class Docker::Messages
|
1077
|
+
# @return [Messages] a new instance of Messages
|
1078
|
+
#
|
1079
|
+
# source://docker-api//lib/docker/messages.rb#8
|
1080
|
+
def initialize(stdout_messages = T.unsafe(nil), stderr_messages = T.unsafe(nil), all_messages = T.unsafe(nil), buffer = T.unsafe(nil)); end
|
1081
|
+
|
1082
|
+
# source://docker-api//lib/docker/messages.rb#18
|
1083
|
+
def add_message(source, message); end
|
1084
|
+
|
1085
|
+
# Returns the value of attribute all_messages.
|
1086
|
+
#
|
1087
|
+
# source://docker-api//lib/docker/messages.rb#6
|
1088
|
+
def all_messages; end
|
1089
|
+
|
1090
|
+
# Sets the attribute all_messages
|
1091
|
+
#
|
1092
|
+
# @param value the value to set the attribute all_messages to.
|
1093
|
+
#
|
1094
|
+
# source://docker-api//lib/docker/messages.rb#6
|
1095
|
+
def all_messages=(_arg0); end
|
1096
|
+
|
1097
|
+
# source://docker-api//lib/docker/messages.rb#44
|
1098
|
+
def append(messages); end
|
1099
|
+
|
1100
|
+
# Returns the value of attribute buffer.
|
1101
|
+
#
|
1102
|
+
# source://docker-api//lib/docker/messages.rb#6
|
1103
|
+
def buffer; end
|
1104
|
+
|
1105
|
+
# Sets the attribute buffer
|
1106
|
+
#
|
1107
|
+
# @param value the value to set the attribute buffer to.
|
1108
|
+
#
|
1109
|
+
# source://docker-api//lib/docker/messages.rb#6
|
1110
|
+
def buffer=(_arg0); end
|
1111
|
+
|
1112
|
+
# source://docker-api//lib/docker/messages.rb#53
|
1113
|
+
def clear; end
|
1114
|
+
|
1115
|
+
# Method to break apart application/vnd.docker.raw-stream headers
|
1116
|
+
#
|
1117
|
+
# source://docker-api//lib/docker/messages.rb#60
|
1118
|
+
def decipher_messages(body); end
|
1119
|
+
|
1120
|
+
# source://docker-api//lib/docker/messages.rb#28
|
1121
|
+
def get_message(raw_text); end
|
1122
|
+
|
1123
|
+
# Returns the value of attribute stderr_messages.
|
1124
|
+
#
|
1125
|
+
# source://docker-api//lib/docker/messages.rb#6
|
1126
|
+
def stderr_messages; end
|
1127
|
+
|
1128
|
+
# Sets the attribute stderr_messages
|
1129
|
+
#
|
1130
|
+
# @param value the value to set the attribute stderr_messages to.
|
1131
|
+
#
|
1132
|
+
# source://docker-api//lib/docker/messages.rb#6
|
1133
|
+
def stderr_messages=(_arg0); end
|
1134
|
+
|
1135
|
+
# Returns the value of attribute stdout_messages.
|
1136
|
+
#
|
1137
|
+
# source://docker-api//lib/docker/messages.rb#6
|
1138
|
+
def stdout_messages; end
|
1139
|
+
|
1140
|
+
# Sets the attribute stdout_messages
|
1141
|
+
#
|
1142
|
+
# @param value the value to set the attribute stdout_messages to.
|
1143
|
+
#
|
1144
|
+
# source://docker-api//lib/docker/messages.rb#6
|
1145
|
+
def stdout_messages=(_arg0); end
|
1146
|
+
end
|
1147
|
+
|
1148
|
+
# This class represents a messages stack
|
1149
|
+
#
|
1150
|
+
# source://docker-api//lib/docker/messages_stack.rb#4
|
1151
|
+
class Docker::MessagesStack
|
1152
|
+
# Initialize stack with optional size
|
1153
|
+
#
|
1154
|
+
# @param size [Integer]
|
1155
|
+
# @return [MessagesStack] a new instance of MessagesStack
|
1156
|
+
#
|
1157
|
+
# source://docker-api//lib/docker/messages_stack.rb#11
|
1158
|
+
def initialize(size = T.unsafe(nil)); end
|
1159
|
+
|
1160
|
+
# Append messages to stack
|
1161
|
+
#
|
1162
|
+
# @param messages [Docker::Messages]
|
1163
|
+
#
|
1164
|
+
# source://docker-api//lib/docker/messages_stack.rb#19
|
1165
|
+
def append(messages); end
|
1166
|
+
|
1167
|
+
# Returns the value of attribute messages.
|
1168
|
+
#
|
1169
|
+
# source://docker-api//lib/docker/messages_stack.rb#6
|
1170
|
+
def messages; end
|
1171
|
+
|
1172
|
+
# Sets the attribute messages
|
1173
|
+
#
|
1174
|
+
# @param value the value to set the attribute messages to.
|
1175
|
+
#
|
1176
|
+
# source://docker-api//lib/docker/messages_stack.rb#6
|
1177
|
+
def messages=(_arg0); end
|
1178
|
+
end
|
1179
|
+
|
1180
|
+
# This class represents a Docker Network.
|
1181
|
+
#
|
1182
|
+
# source://docker-api//lib/docker/network.rb#4
|
1183
|
+
class Docker::Network
|
1184
|
+
include ::Docker::Error
|
1185
|
+
include ::Docker::Base
|
1186
|
+
|
1187
|
+
# source://docker-api//lib/docker/network.rb#7
|
1188
|
+
def connect(container, opts = T.unsafe(nil), body_opts = T.unsafe(nil)); end
|
1189
|
+
|
1190
|
+
# source://docker-api//lib/docker/network.rb#23
|
1191
|
+
def delete(opts = T.unsafe(nil)); end
|
1192
|
+
|
1193
|
+
# source://docker-api//lib/docker/network.rb#15
|
1194
|
+
def disconnect(container, opts = T.unsafe(nil)); end
|
1195
|
+
|
1196
|
+
# source://docker-api//lib/docker/network.rb#29
|
1197
|
+
def json(opts = T.unsafe(nil)); end
|
1198
|
+
|
1199
|
+
# source://docker-api//lib/docker/network.rb#38
|
1200
|
+
def reload; end
|
1201
|
+
|
1202
|
+
# source://docker-api//lib/docker/network.rb#23
|
1203
|
+
def remove(opts = T.unsafe(nil)); end
|
1204
|
+
|
1205
|
+
# source://docker-api//lib/docker/network.rb#33
|
1206
|
+
def to_s; end
|
1207
|
+
|
1208
|
+
private
|
1209
|
+
|
1210
|
+
# Convenience method to return the path for a particular resource.
|
1211
|
+
#
|
1212
|
+
# source://docker-api//lib/docker/network.rb#79
|
1213
|
+
def path_for(resource = T.unsafe(nil)); end
|
1214
|
+
|
1215
|
+
class << self
|
1216
|
+
# source://docker-api//lib/docker/network.rb#61
|
1217
|
+
def all(opts = T.unsafe(nil), conn = T.unsafe(nil)); end
|
1218
|
+
|
1219
|
+
# source://docker-api//lib/docker/network.rb#45
|
1220
|
+
def create(name, opts = T.unsafe(nil), conn = T.unsafe(nil)); end
|
1221
|
+
|
1222
|
+
# source://docker-api//lib/docker/network.rb#66
|
1223
|
+
def delete(id, opts = T.unsafe(nil), conn = T.unsafe(nil)); end
|
1224
|
+
|
1225
|
+
# source://docker-api//lib/docker/network.rb#55
|
1226
|
+
def get(id, opts = T.unsafe(nil), conn = T.unsafe(nil)); end
|
1227
|
+
|
1228
|
+
# source://docker-api//lib/docker/network.rb#72
|
1229
|
+
def prune(conn = T.unsafe(nil)); end
|
1230
|
+
|
1231
|
+
# source://docker-api//lib/docker/network.rb#66
|
1232
|
+
def remove(id, opts = T.unsafe(nil), conn = T.unsafe(nil)); end
|
1233
|
+
end
|
1234
|
+
end
|
1235
|
+
|
1236
|
+
# This module holds shared logic that doesn't really belong anywhere else in the
|
1237
|
+
# gem.
|
1238
|
+
#
|
1239
|
+
# source://docker-api//lib/docker/util.rb#7
|
1240
|
+
module Docker::Util
|
1241
|
+
include ::Docker::Error
|
1242
|
+
|
1243
|
+
private
|
1244
|
+
|
1245
|
+
# source://docker-api//lib/docker/util.rb#193
|
1246
|
+
def add_file_to_tar(tar, name, mode, size, mtime); end
|
1247
|
+
|
1248
|
+
# Attaches to a HTTP stream
|
1249
|
+
#
|
1250
|
+
# @param block
|
1251
|
+
# @param msg_stack [Docker::Messages]
|
1252
|
+
# @param tty [boolean]
|
1253
|
+
#
|
1254
|
+
# source://docker-api//lib/docker/util.rb#20
|
1255
|
+
def attach_for(block, msg_stack, tty = T.unsafe(nil)); end
|
1256
|
+
|
1257
|
+
# source://docker-api//lib/docker/util.rb#40
|
1258
|
+
def attach_for_multiplex(block, msg_stack); end
|
1259
|
+
|
1260
|
+
# source://docker-api//lib/docker/util.rb#29
|
1261
|
+
def attach_for_tty(block, msg_stack); end
|
1262
|
+
|
1263
|
+
# source://docker-api//lib/docker/util.rb#263
|
1264
|
+
def build_auth_header(credentials); end
|
1265
|
+
|
1266
|
+
# source://docker-api//lib/docker/util.rb#271
|
1267
|
+
def build_config_header(credentials); end
|
1268
|
+
|
1269
|
+
# source://docker-api//lib/docker/util.rb#98
|
1270
|
+
def close_write(socket); end
|
1271
|
+
|
1272
|
+
# source://docker-api//lib/docker/util.rb#140
|
1273
|
+
def create_dir_tar(directory); end
|
1274
|
+
|
1275
|
+
# source://docker-api//lib/docker/util.rb#175
|
1276
|
+
def create_relative_dir_tar(directory, output); end
|
1277
|
+
|
1278
|
+
# source://docker-api//lib/docker/util.rb#126
|
1279
|
+
def create_tar(hash = T.unsafe(nil)); end
|
1280
|
+
|
1281
|
+
# source://docker-api//lib/docker/util.rb#218
|
1282
|
+
def create_temp_file; end
|
1283
|
+
|
1284
|
+
# source://docker-api//lib/docker/util.rb#58
|
1285
|
+
def debug(msg); end
|
1286
|
+
|
1287
|
+
# return the set of files that form the docker context
|
1288
|
+
# implement this logic https://docs.docker.com/engine/reference/builder/#dockerignore-file
|
1289
|
+
#
|
1290
|
+
# source://docker-api//lib/docker/util.rb#152
|
1291
|
+
def docker_context(directory); end
|
1292
|
+
|
1293
|
+
# do a directory glob that matches .dockerignore behavior
|
1294
|
+
# specifically: matched directories are considered a recursive match
|
1295
|
+
#
|
1296
|
+
# source://docker-api//lib/docker/util.rb#293
|
1297
|
+
def dockerignore_compatible_glob(pattern); end
|
1298
|
+
|
1299
|
+
# source://docker-api//lib/docker/util.rb#223
|
1300
|
+
def extract_id(body); end
|
1301
|
+
|
1302
|
+
# Convenience method to get the file hash corresponding to an array of
|
1303
|
+
# local paths.
|
1304
|
+
#
|
1305
|
+
# source://docker-api//lib/docker/util.rb#234
|
1306
|
+
def file_hash_from_paths(local_paths); end
|
1307
|
+
|
1308
|
+
# source://docker-api//lib/docker/util.rb#258
|
1309
|
+
def filesystem_permissions(path); end
|
1310
|
+
|
1311
|
+
# source://docker-api//lib/docker/util.rb#122
|
1312
|
+
def fix_json(body); end
|
1313
|
+
|
1314
|
+
# source://docker-api//lib/docker/util.rb#305
|
1315
|
+
def glob_all_files(pattern); end
|
1316
|
+
|
1317
|
+
# source://docker-api//lib/docker/util.rb#62
|
1318
|
+
def hijack_for(stdin, block, msg_stack, tty); end
|
1319
|
+
|
1320
|
+
# source://docker-api//lib/docker/util.rb#108
|
1321
|
+
def parse_json(body); end
|
1322
|
+
|
1323
|
+
# source://docker-api//lib/docker/util.rb#114
|
1324
|
+
def parse_repo_tag(str); end
|
1325
|
+
|
1326
|
+
class << self
|
1327
|
+
# @yield [os]
|
1328
|
+
#
|
1329
|
+
# source://docker-api//lib/docker/util.rb#193
|
1330
|
+
def add_file_to_tar(tar, name, mode, size, mtime); end
|
1331
|
+
|
1332
|
+
# Attaches to a HTTP stream
|
1333
|
+
#
|
1334
|
+
# @param block
|
1335
|
+
# @param msg_stack [Docker::Messages]
|
1336
|
+
# @param tty [boolean]
|
1337
|
+
#
|
1338
|
+
# source://docker-api//lib/docker/util.rb#20
|
1339
|
+
def attach_for(block, msg_stack, tty = T.unsafe(nil)); end
|
1340
|
+
|
1341
|
+
# source://docker-api//lib/docker/util.rb#40
|
1342
|
+
def attach_for_multiplex(block, msg_stack); end
|
1343
|
+
|
1344
|
+
# source://docker-api//lib/docker/util.rb#29
|
1345
|
+
def attach_for_tty(block, msg_stack); end
|
1346
|
+
|
1347
|
+
# source://docker-api//lib/docker/util.rb#263
|
1348
|
+
def build_auth_header(credentials); end
|
1349
|
+
|
1350
|
+
# source://docker-api//lib/docker/util.rb#271
|
1351
|
+
def build_config_header(credentials); end
|
1352
|
+
|
1353
|
+
# source://docker-api//lib/docker/util.rb#98
|
1354
|
+
def close_write(socket); end
|
1355
|
+
|
1356
|
+
# source://docker-api//lib/docker/util.rb#140
|
1357
|
+
def create_dir_tar(directory); end
|
1358
|
+
|
1359
|
+
# source://docker-api//lib/docker/util.rb#175
|
1360
|
+
def create_relative_dir_tar(directory, output); end
|
1361
|
+
|
1362
|
+
# source://docker-api//lib/docker/util.rb#126
|
1363
|
+
def create_tar(hash = T.unsafe(nil)); end
|
1364
|
+
|
1365
|
+
# source://docker-api//lib/docker/util.rb#218
|
1366
|
+
def create_temp_file; end
|
1367
|
+
|
1368
|
+
# source://docker-api//lib/docker/util.rb#58
|
1369
|
+
def debug(msg); end
|
1370
|
+
|
1371
|
+
# return the set of files that form the docker context
|
1372
|
+
# implement this logic https://docs.docker.com/engine/reference/builder/#dockerignore-file
|
1373
|
+
#
|
1374
|
+
# source://docker-api//lib/docker/util.rb#152
|
1375
|
+
def docker_context(directory); end
|
1376
|
+
|
1377
|
+
# do a directory glob that matches .dockerignore behavior
|
1378
|
+
# specifically: matched directories are considered a recursive match
|
1379
|
+
#
|
1380
|
+
# source://docker-api//lib/docker/util.rb#293
|
1381
|
+
def dockerignore_compatible_glob(pattern); end
|
1382
|
+
|
1383
|
+
# @raise [UnexpectedResponseError]
|
1384
|
+
#
|
1385
|
+
# source://docker-api//lib/docker/util.rb#223
|
1386
|
+
def extract_id(body); end
|
1387
|
+
|
1388
|
+
# Convenience method to get the file hash corresponding to an array of
|
1389
|
+
# local paths.
|
1390
|
+
#
|
1391
|
+
# source://docker-api//lib/docker/util.rb#234
|
1392
|
+
def file_hash_from_paths(local_paths); end
|
1393
|
+
|
1394
|
+
# source://docker-api//lib/docker/util.rb#258
|
1395
|
+
def filesystem_permissions(path); end
|
1396
|
+
|
1397
|
+
# source://docker-api//lib/docker/util.rb#122
|
1398
|
+
def fix_json(body); end
|
1399
|
+
|
1400
|
+
# source://docker-api//lib/docker/util.rb#305
|
1401
|
+
def glob_all_files(pattern); end
|
1402
|
+
|
1403
|
+
# source://docker-api//lib/docker/util.rb#62
|
1404
|
+
def hijack_for(stdin, block, msg_stack, tty); end
|
1405
|
+
|
1406
|
+
# source://docker-api//lib/docker/util.rb#108
|
1407
|
+
def parse_json(body); end
|
1408
|
+
|
1409
|
+
# source://docker-api//lib/docker/util.rb#114
|
1410
|
+
def parse_repo_tag(str); end
|
1411
|
+
end
|
1412
|
+
end
|
1413
|
+
|
1414
|
+
# http://www.tldp.org/LDP/GNU-Linux-Tools-Summary/html/x11655.htm#STANDARD-WILDCARDS
|
1415
|
+
#
|
1416
|
+
# source://docker-api//lib/docker/util.rb#9
|
1417
|
+
Docker::Util::GLOB_WILDCARDS = T.let(T.unsafe(nil), Regexp)
|
1418
|
+
|
1419
|
+
# The version of the docker-api gem.
|
1420
|
+
#
|
1421
|
+
# source://docker-api//lib/docker/version.rb#5
|
1422
|
+
Docker::VERSION = T.let(T.unsafe(nil), String)
|
1423
|
+
|
1424
|
+
# class represents a Docker Volume
|
1425
|
+
#
|
1426
|
+
# source://docker-api//lib/docker/volume.rb#4
|
1427
|
+
class Docker::Volume
|
1428
|
+
include ::Docker::Error
|
1429
|
+
include ::Docker::Base
|
1430
|
+
|
1431
|
+
# source://docker-api//lib/docker/volume.rb#12
|
1432
|
+
def normalize_hash(hash); end
|
1433
|
+
|
1434
|
+
# /volumes/volume_name doesnt return anything
|
1435
|
+
#
|
1436
|
+
# source://docker-api//lib/docker/volume.rb#8
|
1437
|
+
def remove(opts = T.unsafe(nil), conn = T.unsafe(nil)); end
|
1438
|
+
|
1439
|
+
class << self
|
1440
|
+
# /volumes endpoint returns an array of hashes incapsulated in an Volumes tag
|
1441
|
+
#
|
1442
|
+
# source://docker-api//lib/docker/volume.rb#26
|
1443
|
+
def all(opts = T.unsafe(nil), conn = T.unsafe(nil)); end
|
1444
|
+
|
1445
|
+
# creates a volume with an arbitrary name
|
1446
|
+
#
|
1447
|
+
# source://docker-api//lib/docker/volume.rb#34
|
1448
|
+
def create(name, opts = T.unsafe(nil), conn = T.unsafe(nil)); end
|
1449
|
+
|
1450
|
+
# get details for a single volume
|
1451
|
+
#
|
1452
|
+
# source://docker-api//lib/docker/volume.rb#19
|
1453
|
+
def get(name, conn = T.unsafe(nil)); end
|
1454
|
+
|
1455
|
+
# source://docker-api//lib/docker/volume.rb#41
|
1456
|
+
def prune(conn = T.unsafe(nil)); end
|
1457
|
+
end
|
1458
|
+
end
|
1459
|
+
|
1460
|
+
# source://docker-api//lib/excon/middlewares/hijack.rb#3
|
1461
|
+
module Excon
|
1462
|
+
class << self
|
1463
|
+
# source://excon/1.2.7/lib/excon.rb#251
|
1464
|
+
def connect(url, params = T.unsafe(nil), &block); end
|
1465
|
+
|
1466
|
+
# source://excon/1.2.7/lib/excon.rb#50
|
1467
|
+
def defaults; end
|
1468
|
+
|
1469
|
+
# source://excon/1.2.7/lib/excon.rb#56
|
1470
|
+
def defaults=(_arg0); end
|
1471
|
+
|
1472
|
+
# source://excon/1.2.7/lib/excon.rb#251
|
1473
|
+
def delete(url, params = T.unsafe(nil), &block); end
|
1474
|
+
|
1475
|
+
# source://excon/1.2.7/lib/excon.rb#58
|
1476
|
+
def display_warning(warning); end
|
1477
|
+
|
1478
|
+
# source://excon/1.2.7/lib/excon.rb#251
|
1479
|
+
def get(url, params = T.unsafe(nil), &block); end
|
1480
|
+
|
1481
|
+
# source://excon/1.2.7/lib/excon.rb#251
|
1482
|
+
def head(url, params = T.unsafe(nil), &block); end
|
1483
|
+
|
1484
|
+
# source://excon/1.2.7/lib/excon.rb#72
|
1485
|
+
def mock; end
|
1486
|
+
|
1487
|
+
# source://excon/1.2.7/lib/excon.rb#80
|
1488
|
+
def mock=(new_mock); end
|
1489
|
+
|
1490
|
+
# source://excon/1.2.7/lib/excon.rb#116
|
1491
|
+
def new(url, params = T.unsafe(nil)); end
|
1492
|
+
|
1493
|
+
# source://excon/1.2.7/lib/excon.rb#251
|
1494
|
+
def options(url, params = T.unsafe(nil), &block); end
|
1495
|
+
|
1496
|
+
# source://excon/1.2.7/lib/excon.rb#251
|
1497
|
+
def patch(url, params = T.unsafe(nil), &block); end
|
1498
|
+
|
1499
|
+
# source://excon/1.2.7/lib/excon.rb#251
|
1500
|
+
def post(url, params = T.unsafe(nil), &block); end
|
1501
|
+
|
1502
|
+
# source://excon/1.2.7/lib/excon.rb#251
|
1503
|
+
def put(url, params = T.unsafe(nil), &block); end
|
1504
|
+
|
1505
|
+
# source://excon/1.2.7/lib/excon.rb#67
|
1506
|
+
def set_raise_on_warnings!(should_raise); end
|
1507
|
+
|
1508
|
+
# source://excon/1.2.7/lib/excon.rb#86
|
1509
|
+
def ssl_ca_path; end
|
1510
|
+
|
1511
|
+
# source://excon/1.2.7/lib/excon.rb#93
|
1512
|
+
def ssl_ca_path=(new_ssl_ca_path); end
|
1513
|
+
|
1514
|
+
# source://excon/1.2.7/lib/excon.rb#99
|
1515
|
+
def ssl_verify_peer; end
|
1516
|
+
|
1517
|
+
# source://excon/1.2.7/lib/excon.rb#106
|
1518
|
+
def ssl_verify_peer=(new_ssl_verify_peer); end
|
1519
|
+
|
1520
|
+
# source://excon/1.2.7/lib/excon.rb#138
|
1521
|
+
def stub(request_params = T.unsafe(nil), response_params = T.unsafe(nil), &block); end
|
1522
|
+
|
1523
|
+
# source://excon/1.2.7/lib/excon.rb#182
|
1524
|
+
def stub_for(request_params = T.unsafe(nil)); end
|
1525
|
+
|
1526
|
+
# source://excon/1.2.7/lib/excon.rb#230
|
1527
|
+
def stubs; end
|
1528
|
+
|
1529
|
+
# source://excon/1.2.7/lib/excon.rb#251
|
1530
|
+
def trace(url, params = T.unsafe(nil), &block); end
|
1531
|
+
|
1532
|
+
# source://excon/1.2.7/lib/excon.rb#242
|
1533
|
+
def unstub(request_params = T.unsafe(nil)); end
|
1534
|
+
end
|
1535
|
+
end
|
1536
|
+
|
1537
|
+
# source://docker-api//lib/excon/middlewares/hijack.rb#4
|
1538
|
+
module Excon::Middleware; end
|
1539
|
+
|
1540
|
+
# Hijack is an Excon middleware which parses response headers and then
|
1541
|
+
# yields the underlying TCP socket for raw TCP communication (used to
|
1542
|
+
# attach to STDIN of containers).
|
1543
|
+
#
|
1544
|
+
# source://docker-api//lib/excon/middlewares/hijack.rb#8
|
1545
|
+
class Excon::Middleware::Hijack < ::Excon::Middleware::Base
|
1546
|
+
# source://docker-api//lib/excon/middlewares/hijack.rb#13
|
1547
|
+
def build_response(status, socket); end
|
1548
|
+
|
1549
|
+
# source://docker-api//lib/excon/middlewares/hijack.rb#32
|
1550
|
+
def response_call(datum); end
|
1551
|
+
|
1552
|
+
class << self
|
1553
|
+
# source://docker-api//lib/excon/middlewares/hijack.rb#9
|
1554
|
+
def valid_parameter_keys; end
|
1555
|
+
end
|
1556
|
+
end
|
1557
|
+
|
1558
|
+
# Monkeypatch Rake to add the `image` task.
|
1559
|
+
#
|
1560
|
+
# source://docker-api//lib/docker/rake_task.rb#37
|
1561
|
+
module Rake::DSL
|
1562
|
+
include ::FileUtils::StreamUtils_
|
1563
|
+
include ::FileUtils
|
1564
|
+
|
1565
|
+
# source://docker-api//lib/docker/rake_task.rb#38
|
1566
|
+
def image(*args, &block); end
|
1567
|
+
|
1568
|
+
private
|
1569
|
+
|
1570
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1571
|
+
def cd(*args, **options, &block); end
|
1572
|
+
|
1573
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1574
|
+
def chdir(*args, **options, &block); end
|
1575
|
+
|
1576
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1577
|
+
def chmod(*args, **options, &block); end
|
1578
|
+
|
1579
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1580
|
+
def chmod_R(*args, **options, &block); end
|
1581
|
+
|
1582
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1583
|
+
def chown(*args, **options, &block); end
|
1584
|
+
|
1585
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1586
|
+
def chown_R(*args, **options, &block); end
|
1587
|
+
|
1588
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1589
|
+
def copy(*args, **options, &block); end
|
1590
|
+
|
1591
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1592
|
+
def cp(*args, **options, &block); end
|
1593
|
+
|
1594
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1595
|
+
def cp_lr(*args, **options, &block); end
|
1596
|
+
|
1597
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1598
|
+
def cp_r(*args, **options, &block); end
|
1599
|
+
|
1600
|
+
# source://rake/13.2.1/lib/rake/dsl_definition.rb#166
|
1601
|
+
def desc(description); end
|
1602
|
+
|
1603
|
+
# source://rake/13.2.1/lib/rake/dsl_definition.rb#92
|
1604
|
+
def directory(*args, &block); end
|
1605
|
+
|
1606
|
+
# source://rake/13.2.1/lib/rake/dsl_definition.rb#76
|
1607
|
+
def file(*args, &block); end
|
1608
|
+
|
1609
|
+
# source://rake/13.2.1/lib/rake/dsl_definition.rb#82
|
1610
|
+
def file_create(*args, &block); end
|
1611
|
+
|
1612
|
+
# source://rake/13.2.1/lib/rake/dsl_definition.rb#184
|
1613
|
+
def import(*fns); end
|
1614
|
+
|
1615
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1616
|
+
def install(*args, **options, &block); end
|
1617
|
+
|
1618
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1619
|
+
def link(*args, **options, &block); end
|
1620
|
+
|
1621
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1622
|
+
def ln(*args, **options, &block); end
|
1623
|
+
|
1624
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1625
|
+
def ln_s(*args, **options, &block); end
|
1626
|
+
|
1627
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1628
|
+
def ln_sf(*args, **options, &block); end
|
1629
|
+
|
1630
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1631
|
+
def ln_sr(*args, **options, &block); end
|
1632
|
+
|
1633
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1634
|
+
def makedirs(*args, **options, &block); end
|
1635
|
+
|
1636
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1637
|
+
def mkdir(*args, **options, &block); end
|
1638
|
+
|
1639
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1640
|
+
def mkdir_p(*args, **options, &block); end
|
1641
|
+
|
1642
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1643
|
+
def mkpath(*args, **options, &block); end
|
1644
|
+
|
1645
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1646
|
+
def move(*args, **options, &block); end
|
1647
|
+
|
1648
|
+
# source://rake/13.2.1/lib/rake/dsl_definition.rb#113
|
1649
|
+
def multitask(*args, &block); end
|
1650
|
+
|
1651
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1652
|
+
def mv(*args, **options, &block); end
|
1653
|
+
|
1654
|
+
# source://rake/13.2.1/lib/rake/dsl_definition.rb#136
|
1655
|
+
def namespace(name = T.unsafe(nil), &block); end
|
1656
|
+
|
1657
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#77
|
1658
|
+
def nowrite(value = T.unsafe(nil)); end
|
1659
|
+
|
1660
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#123
|
1661
|
+
def rake_check_options(options, *optdecl); end
|
1662
|
+
|
1663
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#116
|
1664
|
+
def rake_output_message(message); end
|
1665
|
+
|
1666
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1667
|
+
def remove(*args, **options, &block); end
|
1668
|
+
|
1669
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1670
|
+
def rm(*args, **options, &block); end
|
1671
|
+
|
1672
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1673
|
+
def rm_f(*args, **options, &block); end
|
1674
|
+
|
1675
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1676
|
+
def rm_r(*args, **options, &block); end
|
1677
|
+
|
1678
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1679
|
+
def rm_rf(*args, **options, &block); end
|
1680
|
+
|
1681
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1682
|
+
def rmdir(*args, **options, &block); end
|
1683
|
+
|
1684
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1685
|
+
def rmtree(*args, **options, &block); end
|
1686
|
+
|
1687
|
+
# source://rake/13.2.1/lib/rake/file_utils.rb#98
|
1688
|
+
def ruby(*args, **options, &block); end
|
1689
|
+
|
1690
|
+
# source://rake/13.2.1/lib/rake/dsl_definition.rb#152
|
1691
|
+
def rule(*args, &block); end
|
1692
|
+
|
1693
|
+
# source://rake/13.2.1/lib/rake/file_utils.rb#110
|
1694
|
+
def safe_ln(*args, **options); end
|
1695
|
+
|
1696
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1697
|
+
def safe_unlink(*args, **options, &block); end
|
1698
|
+
|
1699
|
+
# source://rake/13.2.1/lib/rake/file_utils.rb#43
|
1700
|
+
def sh(*cmd, &block); end
|
1701
|
+
|
1702
|
+
# source://rake/13.2.1/lib/rake/file_utils.rb#126
|
1703
|
+
def split_all(path); end
|
1704
|
+
|
1705
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1706
|
+
def symlink(*args, **options, &block); end
|
1707
|
+
|
1708
|
+
# source://rake/13.2.1/lib/rake/dsl_definition.rb#59
|
1709
|
+
def task(*args, &block); end
|
1710
|
+
|
1711
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#34
|
1712
|
+
def touch(*args, **options, &block); end
|
1713
|
+
|
1714
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#53
|
1715
|
+
def verbose(value = T.unsafe(nil)); end
|
1716
|
+
|
1717
|
+
# source://rake/13.2.1/lib/rake/file_utils_ext.rb#107
|
1718
|
+
def when_writing(msg = T.unsafe(nil)); end
|
1719
|
+
end
|