docker-engine-ruby 0.2.2 → 0.3.0
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/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/docker_engine_ruby/models/config.rb +6 -6
- data/lib/docker_engine_ruby/models/config_create_params.rb +1 -11
- data/lib/docker_engine_ruby/models/config_list_params.rb +1 -14
- data/lib/docker_engine_ruby/models/config_update_params.rb +1 -7
- data/lib/docker_engine_ruby/models/connect_request.rb +5 -5
- data/lib/docker_engine_ruby/models/container.rb +61 -143
- data/lib/docker_engine_ruby/models/container_archive_params.rb +1 -3
- data/lib/docker_engine_ruby/models/container_attach_params.rb +6 -29
- data/lib/docker_engine_ruby/models/container_create_params.rb +3 -1701
- data/lib/docker_engine_ruby/models/container_delete_params.rb +3 -9
- data/lib/docker_engine_ruby/models/container_exec_params.rb +11 -39
- data/lib/docker_engine_ruby/models/container_inspect_params.rb +1 -3
- data/lib/docker_engine_ruby/models/container_kill_params.rb +1 -6
- data/lib/docker_engine_ruby/models/container_list_params.rb +4 -36
- data/lib/docker_engine_ruby/models/container_logs_params.rb +7 -25
- data/lib/docker_engine_ruby/models/container_prune_params.rb +1 -16
- data/lib/docker_engine_ruby/models/container_prune_response.rb +2 -5
- data/lib/docker_engine_ruby/models/container_rename_params.rb +1 -3
- data/lib/docker_engine_ruby/models/container_resize_params.rb +2 -6
- data/lib/docker_engine_ruby/models/container_restart_params.rb +2 -9
- data/lib/docker_engine_ruby/models/container_start_params.rb +1 -8
- data/lib/docker_engine_ruby/models/container_stats_params.rb +2 -11
- data/lib/docker_engine_ruby/models/container_stop_params.rb +2 -9
- data/lib/docker_engine_ruby/models/container_top_params.rb +1 -3
- data/lib/docker_engine_ruby/models/container_update_params.rb +4 -80
- data/lib/docker_engine_ruby/models/container_wait_params.rb +1 -11
- data/lib/docker_engine_ruby/models/create_request.rb +17 -121
- data/lib/docker_engine_ruby/models/exec_inspect_response.rb +1 -12
- data/lib/docker_engine_ruby/models/exec_resize_params.rb +2 -6
- data/lib/docker_engine_ruby/models/exec_start_params.rb +3 -9
- data/lib/docker_engine_ruby/models/filesystem_change.rb +3 -3
- data/lib/docker_engine_ruby/models/image.rb +33 -66
- data/lib/docker_engine_ruby/models/image_build_params.rb +25 -122
- data/lib/docker_engine_ruby/models/image_build_prune_params.rb +5 -32
- data/lib/docker_engine_ruby/models/image_build_prune_response.rb +1 -3
- data/lib/docker_engine_ruby/models/image_commit_params.rb +7 -21
- data/lib/docker_engine_ruby/models/image_delete_params.rb +3 -14
- data/lib/docker_engine_ruby/models/image_get_all_params.rb +2 -13
- data/lib/docker_engine_ruby/models/image_get_params.rb +1 -10
- data/lib/docker_engine_ruby/models/image_history_params.rb +1 -15
- data/lib/docker_engine_ruby/models/image_inspect_params.rb +1 -3
- data/lib/docker_engine_ruby/models/image_list_params.rb +5 -29
- data/lib/docker_engine_ruby/models/image_load_params.rb +2 -14
- data/lib/docker_engine_ruby/models/image_prune_params.rb +1 -16
- data/lib/docker_engine_ruby/models/image_prune_response.rb +2 -5
- data/lib/docker_engine_ruby/models/image_pull_params.rb +13 -60
- data/lib/docker_engine_ruby/models/image_push_params.rb +2 -19
- data/lib/docker_engine_ruby/models/image_search_params.rb +3 -16
- data/lib/docker_engine_ruby/models/image_search_response.rb +1 -13
- data/lib/docker_engine_ruby/models/image_tag_params.rb +2 -6
- data/lib/docker_engine_ruby/models/info.rb +24 -53
- data/lib/docker_engine_ruby/models/inspect.rb +5 -7
- data/lib/docker_engine_ruby/models/list_response.rb +0 -3
- data/lib/docker_engine_ruby/models/network.rb +7 -4
- data/lib/docker_engine_ruby/models/network_create_params.rb +11 -26
- data/lib/docker_engine_ruby/models/network_inspect_params.rb +2 -6
- data/lib/docker_engine_ruby/models/network_inspect_response.rb +219 -89
- data/lib/docker_engine_ruby/models/network_list_params.rb +1 -21
- data/lib/docker_engine_ruby/models/network_prune_params.rb +1 -16
- data/lib/docker_engine_ruby/models/network_prune_response.rb +1 -2
- data/lib/docker_engine_ruby/models/node.rb +9 -22
- data/lib/docker_engine_ruby/models/node_delete_params.rb +1 -3
- data/lib/docker_engine_ruby/models/node_list_params.rb +1 -15
- data/lib/docker_engine_ruby/models/node_update_params.rb +1 -7
- data/lib/docker_engine_ruby/models/plugin.rb +2 -24
- data/lib/docker_engine_ruby/models/plugin_create_params.rb +1 -8
- data/lib/docker_engine_ruby/models/plugin_delete_params.rb +1 -7
- data/lib/docker_engine_ruby/models/plugin_disable_params.rb +1 -6
- data/lib/docker_engine_ruby/models/plugin_enable_params.rb +1 -3
- data/lib/docker_engine_ruby/models/plugin_list_params.rb +1 -12
- data/lib/docker_engine_ruby/models/plugin_privileges_params.rb +1 -7
- data/lib/docker_engine_ruby/models/plugin_pull_params.rb +8 -21
- data/lib/docker_engine_ruby/models/plugin_set_params.rb +3 -3
- data/lib/docker_engine_ruby/models/plugin_upgrade_params.rb +4 -13
- data/lib/docker_engine_ruby/models/secret.rb +6 -6
- data/lib/docker_engine_ruby/models/secret_create_params.rb +1 -11
- data/lib/docker_engine_ruby/models/secret_list_params.rb +1 -14
- data/lib/docker_engine_ruby/models/secret_update_params.rb +1 -7
- data/lib/docker_engine_ruby/models/service.rb +18 -33
- data/lib/docker_engine_ruby/models/service_create_params.rb +1 -15
- data/lib/docker_engine_ruby/models/service_inspect_params.rb +1 -3
- data/lib/docker_engine_ruby/models/service_list_params.rb +2 -17
- data/lib/docker_engine_ruby/models/service_logs_params.rb +7 -25
- data/lib/docker_engine_ruby/models/service_update_params.rb +4 -34
- data/lib/docker_engine_ruby/models/spec.rb +25 -96
- data/lib/docker_engine_ruby/models/stats_response.rb +143 -68
- data/lib/docker_engine_ruby/models/summary.rb +12 -32
- data/lib/docker_engine_ruby/models/swarm.rb +6 -9
- data/lib/docker_engine_ruby/models/swarm_init_params.rb +7 -35
- data/lib/docker_engine_ruby/models/swarm_join_params.rb +5 -31
- data/lib/docker_engine_ruby/models/swarm_leave_params.rb +1 -7
- data/lib/docker_engine_ruby/models/swarm_unlock_key_response.rb +1 -2
- data/lib/docker_engine_ruby/models/swarm_unlock_params.rb +1 -3
- data/lib/docker_engine_ruby/models/swarm_update_params.rb +4 -16
- data/lib/docker_engine_ruby/models/system_data_usage_params.rb +43 -16
- data/lib/docker_engine_ruby/models/system_data_usage_response.rb +0 -19
- data/lib/docker_engine_ruby/models/system_events_params.rb +3 -29
- data/lib/docker_engine_ruby/models/system_events_response.rb +0 -3
- data/lib/docker_engine_ruby/models/task.rb +10 -12
- data/lib/docker_engine_ruby/models/task_list_params.rb +1 -16
- data/lib/docker_engine_ruby/models/task_logs_params.rb +7 -25
- data/lib/docker_engine_ruby/models/version.rb +8 -17
- data/lib/docker_engine_ruby/models/volume.rb +38 -194
- data/lib/docker_engine_ruby/models/volume_delete_params.rb +1 -3
- data/lib/docker_engine_ruby/models/volume_list_params.rb +1 -15
- data/lib/docker_engine_ruby/models/volume_prune_params.rb +1 -14
- data/lib/docker_engine_ruby/models/volume_prune_response.rb +2 -5
- data/lib/docker_engine_ruby/models/volume_update_params.rb +18 -127
- data/lib/docker_engine_ruby/resources/auth.rb +1 -2
- data/lib/docker_engine_ruby/resources/configs.rb +9 -18
- data/lib/docker_engine_ruby/resources/containers.rb +88 -337
- data/lib/docker_engine_ruby/resources/distribution.rb +2 -3
- data/lib/docker_engine_ruby/resources/exec.rb +11 -22
- data/lib/docker_engine_ruby/resources/images.rb +98 -228
- data/lib/docker_engine_ruby/resources/networks.rb +22 -41
- data/lib/docker_engine_ruby/resources/nodes.rb +7 -17
- data/lib/docker_engine_ruby/resources/plugins.rb +27 -74
- data/lib/docker_engine_ruby/resources/secrets.rb +9 -18
- data/lib/docker_engine_ruby/resources/services.rb +23 -52
- data/lib/docker_engine_ruby/resources/swarm.rb +26 -38
- data/lib/docker_engine_ruby/resources/system.rb +8 -49
- data/lib/docker_engine_ruby/resources/tasks.rb +12 -32
- data/lib/docker_engine_ruby/resources/volumes.rb +8 -22
- data/lib/docker_engine_ruby/version.rb +1 -1
- data/rbi/docker_engine_ruby/models/config.rbi +9 -7
- data/rbi/docker_engine_ruby/models/config_create_params.rbi +2 -34
- data/rbi/docker_engine_ruby/models/config_list_params.rbi +1 -22
- data/rbi/docker_engine_ruby/models/config_update_params.rbi +1 -8
- data/rbi/docker_engine_ruby/models/connect_request.rbi +7 -12
- data/rbi/docker_engine_ruby/models/container.rbi +73 -194
- data/rbi/docker_engine_ruby/models/container_archive_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/container_attach_params.rbi +0 -28
- data/rbi/docker_engine_ruby/models/container_create_params.rbi +1 -3250
- data/rbi/docker_engine_ruby/models/container_delete_params.rbi +1 -12
- data/rbi/docker_engine_ruby/models/container_exec_params.rbi +0 -28
- data/rbi/docker_engine_ruby/models/container_inspect_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/container_kill_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/container_list_params.rbi +0 -50
- data/rbi/docker_engine_ruby/models/container_logs_params.rbi +0 -16
- data/rbi/docker_engine_ruby/models/container_prune_params.rbi +1 -26
- data/rbi/docker_engine_ruby/models/container_prune_response.rbi +1 -8
- data/rbi/docker_engine_ruby/models/container_rename_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/container_resize_params.rbi +1 -9
- data/rbi/docker_engine_ruby/models/container_restart_params.rbi +1 -9
- data/rbi/docker_engine_ruby/models/container_start_params.rbi +1 -10
- data/rbi/docker_engine_ruby/models/container_stats_params.rbi +1 -13
- data/rbi/docker_engine_ruby/models/container_stop_params.rbi +1 -9
- data/rbi/docker_engine_ruby/models/container_top_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/container_update_params.rbi +1 -170
- data/rbi/docker_engine_ruby/models/container_wait_params.rbi +1 -13
- data/rbi/docker_engine_ruby/models/create_request.rbi +7 -139
- data/rbi/docker_engine_ruby/models/exec_inspect_response.rbi +0 -2
- data/rbi/docker_engine_ruby/models/exec_resize_params.rbi +1 -9
- data/rbi/docker_engine_ruby/models/exec_start_params.rbi +0 -6
- data/rbi/docker_engine_ruby/models/filesystem_change.rbi +10 -13
- data/rbi/docker_engine_ruby/models/image.rbi +48 -106
- data/rbi/docker_engine_ruby/models/image_build_params.rbi +0 -127
- data/rbi/docker_engine_ruby/models/image_build_prune_params.rbi +0 -38
- data/rbi/docker_engine_ruby/models/image_build_prune_response.rbi +1 -6
- data/rbi/docker_engine_ruby/models/image_commit_params.rbi +0 -14
- data/rbi/docker_engine_ruby/models/image_delete_params.rbi +0 -10
- data/rbi/docker_engine_ruby/models/image_get_all_params.rbi +1 -17
- data/rbi/docker_engine_ruby/models/image_get_params.rbi +1 -14
- data/rbi/docker_engine_ruby/models/image_history_params.rbi +1 -24
- data/rbi/docker_engine_ruby/models/image_inspect_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/image_list_params.rbi +0 -32
- data/rbi/docker_engine_ruby/models/image_load_params.rbi +1 -18
- data/rbi/docker_engine_ruby/models/image_prune_params.rbi +1 -26
- data/rbi/docker_engine_ruby/models/image_prune_response.rbi +1 -8
- data/rbi/docker_engine_ruby/models/image_pull_params.rbi +6 -79
- data/rbi/docker_engine_ruby/models/image_push_params.rbi +0 -22
- data/rbi/docker_engine_ruby/models/image_search_params.rbi +1 -20
- data/rbi/docker_engine_ruby/models/image_search_response.rbi +0 -10
- data/rbi/docker_engine_ruby/models/image_tag_params.rbi +1 -9
- data/rbi/docker_engine_ruby/models/info.rbi +29 -76
- data/rbi/docker_engine_ruby/models/inspect.rbi +6 -12
- data/rbi/docker_engine_ruby/models/network.rbi +7 -4
- data/rbi/docker_engine_ruby/models/network_create_params.rbi +0 -30
- data/rbi/docker_engine_ruby/models/network_inspect_params.rbi +1 -9
- data/rbi/docker_engine_ruby/models/network_inspect_response.rbi +345 -198
- data/rbi/docker_engine_ruby/models/network_list_params.rbi +1 -36
- data/rbi/docker_engine_ruby/models/network_prune_params.rbi +1 -26
- data/rbi/docker_engine_ruby/models/network_prune_response.rbi +1 -5
- data/rbi/docker_engine_ruby/models/node.rbi +11 -17
- data/rbi/docker_engine_ruby/models/node_delete_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/node_list_params.rbi +1 -24
- data/rbi/docker_engine_ruby/models/node_update_params.rbi +1 -8
- data/rbi/docker_engine_ruby/models/plugin.rbi +1 -11
- data/rbi/docker_engine_ruby/models/plugin_create_params.rbi +1 -9
- data/rbi/docker_engine_ruby/models/plugin_delete_params.rbi +1 -8
- data/rbi/docker_engine_ruby/models/plugin_disable_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/plugin_enable_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/plugin_list_params.rbi +1 -18
- data/rbi/docker_engine_ruby/models/plugin_privileges_params.rbi +1 -8
- data/rbi/docker_engine_ruby/models/plugin_pull_params.rbi +6 -21
- data/rbi/docker_engine_ruby/models/plugin_set_params.rbi +3 -6
- data/rbi/docker_engine_ruby/models/plugin_upgrade_params.rbi +3 -17
- data/rbi/docker_engine_ruby/models/secret.rbi +8 -8
- data/rbi/docker_engine_ruby/models/secret_create_params.rbi +2 -34
- data/rbi/docker_engine_ruby/models/secret_list_params.rbi +1 -22
- data/rbi/docker_engine_ruby/models/secret_update_params.rbi +1 -8
- data/rbi/docker_engine_ruby/models/service.rbi +20 -40
- data/rbi/docker_engine_ruby/models/service_create_params.rbi +1 -36
- data/rbi/docker_engine_ruby/models/service_inspect_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/service_list_params.rbi +1 -25
- data/rbi/docker_engine_ruby/models/service_logs_params.rbi +0 -16
- data/rbi/docker_engine_ruby/models/service_update_params.rbi +0 -50
- data/rbi/docker_engine_ruby/models/spec.rbi +9 -82
- data/rbi/docker_engine_ruby/models/stats_response.rbi +213 -141
- data/rbi/docker_engine_ruby/models/summary.rbi +16 -53
- data/rbi/docker_engine_ruby/models/swarm.rbi +8 -8
- data/rbi/docker_engine_ruby/models/swarm_init_params.rbi +0 -50
- data/rbi/docker_engine_ruby/models/swarm_join_params.rbi +0 -36
- data/rbi/docker_engine_ruby/models/swarm_leave_params.rbi +1 -8
- data/rbi/docker_engine_ruby/models/swarm_unlock_key_response.rbi +1 -5
- data/rbi/docker_engine_ruby/models/swarm_unlock_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/swarm_update_params.rbi +0 -10
- data/rbi/docker_engine_ruby/models/system_data_usage_params.rbi +79 -27
- data/rbi/docker_engine_ruby/models/system_events_params.rbi +1 -46
- data/rbi/docker_engine_ruby/models/task.rbi +12 -16
- data/rbi/docker_engine_ruby/models/task_list_params.rbi +1 -26
- data/rbi/docker_engine_ruby/models/task_logs_params.rbi +0 -16
- data/rbi/docker_engine_ruby/models/version.rbi +8 -22
- data/rbi/docker_engine_ruby/models/volume.rbi +25 -225
- data/rbi/docker_engine_ruby/models/volume_delete_params.rbi +1 -6
- data/rbi/docker_engine_ruby/models/volume_list_params.rbi +1 -24
- data/rbi/docker_engine_ruby/models/volume_prune_params.rbi +1 -22
- data/rbi/docker_engine_ruby/models/volume_prune_response.rbi +1 -8
- data/rbi/docker_engine_ruby/models/volume_update_params.rbi +7 -143
- data/rbi/docker_engine_ruby/resources/auth.rbi +1 -2
- data/rbi/docker_engine_ruby/resources/configs.rbi +8 -29
- data/rbi/docker_engine_ruby/resources/containers.rbi +36 -388
- data/rbi/docker_engine_ruby/resources/distribution.rbi +2 -6
- data/rbi/docker_engine_ruby/resources/exec.rbi +5 -24
- data/rbi/docker_engine_ruby/resources/images.rbi +72 -365
- data/rbi/docker_engine_ruby/resources/networks.rbi +7 -76
- data/rbi/docker_engine_ruby/resources/nodes.rbi +6 -30
- data/rbi/docker_engine_ruby/resources/plugins.rbi +22 -91
- data/rbi/docker_engine_ruby/resources/secrets.rbi +8 -29
- data/rbi/docker_engine_ruby/resources/services.rbi +12 -60
- data/rbi/docker_engine_ruby/resources/swarm.rbi +6 -59
- data/rbi/docker_engine_ruby/resources/system.rbi +11 -66
- data/rbi/docker_engine_ruby/resources/tasks.rbi +3 -34
- data/rbi/docker_engine_ruby/resources/volumes.rbi +7 -43
- data/sig/docker_engine_ruby/models/config.rbs +11 -9
- data/sig/docker_engine_ruby/models/config_create_params.rbs +3 -24
- data/sig/docker_engine_ruby/models/connect_request.rbs +12 -12
- data/sig/docker_engine_ruby/models/container.rbs +62 -62
- data/sig/docker_engine_ruby/models/container_create_params.rbs +1 -1321
- data/sig/docker_engine_ruby/models/container_update_params.rbs +0 -51
- data/sig/docker_engine_ruby/models/create_request.rbs +5 -5
- data/sig/docker_engine_ruby/models/filesystem_change.rbs +1 -1
- data/sig/docker_engine_ruby/models/image.rbs +51 -53
- data/sig/docker_engine_ruby/models/image_pull_params.rbs +5 -7
- data/sig/docker_engine_ruby/models/info.rbs +54 -36
- data/sig/docker_engine_ruby/models/inspect.rbs +12 -8
- data/sig/docker_engine_ruby/models/network.rbs +5 -5
- data/sig/docker_engine_ruby/models/network_inspect_response.rbs +179 -90
- data/sig/docker_engine_ruby/models/node.rbs +18 -14
- data/sig/docker_engine_ruby/models/plugin_pull_params.rbs +5 -9
- data/sig/docker_engine_ruby/models/plugin_set_params.rbs +2 -4
- data/sig/docker_engine_ruby/models/plugin_upgrade_params.rbs +2 -6
- data/sig/docker_engine_ruby/models/secret.rbs +10 -10
- data/sig/docker_engine_ruby/models/secret_create_params.rbs +3 -24
- data/sig/docker_engine_ruby/models/service.rbs +25 -25
- data/sig/docker_engine_ruby/models/service_create_params.rbs +1 -16
- data/sig/docker_engine_ruby/models/service_update_params.rbs +0 -13
- data/sig/docker_engine_ruby/models/spec.rbs +10 -10
- data/sig/docker_engine_ruby/models/stats_response.rbs +188 -74
- data/sig/docker_engine_ruby/models/summary.rbs +20 -16
- data/sig/docker_engine_ruby/models/swarm.rbs +10 -10
- data/sig/docker_engine_ruby/models/system_data_usage_params.rbs +25 -10
- data/sig/docker_engine_ruby/models/task.rbs +15 -15
- data/sig/docker_engine_ruby/models/version.rbs +13 -4
- data/sig/docker_engine_ruby/models/volume.rbs +27 -25
- data/sig/docker_engine_ruby/models/volume_update_params.rbs +5 -5
- data/sig/docker_engine_ruby/resources/configs.rbs +2 -2
- data/sig/docker_engine_ruby/resources/containers.rbs +1 -2
- data/sig/docker_engine_ruby/resources/images.rbs +3 -3
- data/sig/docker_engine_ruby/resources/networks.rbs +1 -1
- data/sig/docker_engine_ruby/resources/nodes.rbs +1 -1
- data/sig/docker_engine_ruby/resources/plugins.rbs +3 -3
- data/sig/docker_engine_ruby/resources/secrets.rbs +2 -2
- data/sig/docker_engine_ruby/resources/services.rbs +2 -2
- data/sig/docker_engine_ruby/resources/system.rbs +1 -1
- metadata +1 -1
|
@@ -17,211 +17,150 @@ module DockerEngineRuby
|
|
|
17
17
|
sig { returns(DockerEngineRuby::Internal::FileInput) }
|
|
18
18
|
attr_accessor :body
|
|
19
19
|
|
|
20
|
-
# JSON map of string pairs for build-time variables. Users pass these values at
|
|
21
|
-
# build-time. Docker uses the buildargs as the environment context for commands
|
|
22
|
-
# run via the `Dockerfile` RUN instruction, or for variable expansion in other
|
|
23
|
-
# `Dockerfile` instructions. This is not meant for passing secret values.
|
|
24
|
-
#
|
|
25
|
-
# For example, the build arg `FOO=bar` would become `{"FOO":"bar"}` in JSON. This
|
|
26
|
-
# would result in the query parameter `buildargs={"FOO":"bar"}`. Note that
|
|
27
|
-
# `{"FOO":"bar"}` should be URI component encoded.
|
|
28
|
-
#
|
|
29
|
-
# [Read more about the buildargs instruction.](https://docs.docker.com/engine/reference/builder/#arg)
|
|
30
20
|
sig { returns(T.nilable(String)) }
|
|
31
21
|
attr_reader :buildargs
|
|
32
22
|
|
|
33
23
|
sig { params(buildargs: String).void }
|
|
34
24
|
attr_writer :buildargs
|
|
35
25
|
|
|
36
|
-
# JSON array of images used for build cache resolution.
|
|
37
26
|
sig { returns(T.nilable(String)) }
|
|
38
27
|
attr_reader :cachefrom
|
|
39
28
|
|
|
40
29
|
sig { params(cachefrom: String).void }
|
|
41
30
|
attr_writer :cachefrom
|
|
42
31
|
|
|
43
|
-
# The length of a CPU period in microseconds.
|
|
44
32
|
sig { returns(T.nilable(Integer)) }
|
|
45
33
|
attr_reader :cpuperiod
|
|
46
34
|
|
|
47
35
|
sig { params(cpuperiod: Integer).void }
|
|
48
36
|
attr_writer :cpuperiod
|
|
49
37
|
|
|
50
|
-
# Microseconds of CPU time that the container can get in a CPU period.
|
|
51
38
|
sig { returns(T.nilable(Integer)) }
|
|
52
39
|
attr_reader :cpuquota
|
|
53
40
|
|
|
54
41
|
sig { params(cpuquota: Integer).void }
|
|
55
42
|
attr_writer :cpuquota
|
|
56
43
|
|
|
57
|
-
# CPUs in which to allow execution (e.g., `0-3`, `0,1`).
|
|
58
44
|
sig { returns(T.nilable(String)) }
|
|
59
45
|
attr_reader :cpusetcpus
|
|
60
46
|
|
|
61
47
|
sig { params(cpusetcpus: String).void }
|
|
62
48
|
attr_writer :cpusetcpus
|
|
63
49
|
|
|
64
|
-
# CPU shares (relative weight).
|
|
65
50
|
sig { returns(T.nilable(Integer)) }
|
|
66
51
|
attr_reader :cpushares
|
|
67
52
|
|
|
68
53
|
sig { params(cpushares: Integer).void }
|
|
69
54
|
attr_writer :cpushares
|
|
70
55
|
|
|
71
|
-
# Path within the build context to the `Dockerfile`. This is ignored if `remote`
|
|
72
|
-
# is specified and points to an external `Dockerfile`.
|
|
73
56
|
sig { returns(T.nilable(String)) }
|
|
74
57
|
attr_reader :dockerfile
|
|
75
58
|
|
|
76
59
|
sig { params(dockerfile: String).void }
|
|
77
60
|
attr_writer :dockerfile
|
|
78
61
|
|
|
79
|
-
# Extra hosts to add to /etc/hosts
|
|
80
62
|
sig { returns(T.nilable(String)) }
|
|
81
63
|
attr_reader :extrahosts
|
|
82
64
|
|
|
83
65
|
sig { params(extrahosts: String).void }
|
|
84
66
|
attr_writer :extrahosts
|
|
85
67
|
|
|
86
|
-
# Always remove intermediate containers, even upon failure.
|
|
87
68
|
sig { returns(T.nilable(T::Boolean)) }
|
|
88
69
|
attr_reader :forcerm
|
|
89
70
|
|
|
90
71
|
sig { params(forcerm: T::Boolean).void }
|
|
91
72
|
attr_writer :forcerm
|
|
92
73
|
|
|
93
|
-
# Arbitrary key/value labels to set on the image, as a JSON map of string pairs.
|
|
94
74
|
sig { returns(T.nilable(String)) }
|
|
95
75
|
attr_reader :labels
|
|
96
76
|
|
|
97
77
|
sig { params(labels: String).void }
|
|
98
78
|
attr_writer :labels
|
|
99
79
|
|
|
100
|
-
# Set memory limit for build.
|
|
101
80
|
sig { returns(T.nilable(Integer)) }
|
|
102
81
|
attr_reader :memory
|
|
103
82
|
|
|
104
83
|
sig { params(memory: Integer).void }
|
|
105
84
|
attr_writer :memory
|
|
106
85
|
|
|
107
|
-
# Total memory (memory + swap). Set as `-1` to disable swap.
|
|
108
86
|
sig { returns(T.nilable(Integer)) }
|
|
109
87
|
attr_reader :memswap
|
|
110
88
|
|
|
111
89
|
sig { params(memswap: Integer).void }
|
|
112
90
|
attr_writer :memswap
|
|
113
91
|
|
|
114
|
-
# Sets the networking mode for the run commands during build. Supported standard
|
|
115
|
-
# values are: `bridge`, `host`, `none`, and `container:<name|id>`. Any other value
|
|
116
|
-
# is taken as a custom network's name or ID to which this container should connect
|
|
117
|
-
# to.
|
|
118
92
|
sig { returns(T.nilable(String)) }
|
|
119
93
|
attr_reader :networkmode
|
|
120
94
|
|
|
121
95
|
sig { params(networkmode: String).void }
|
|
122
96
|
attr_writer :networkmode
|
|
123
97
|
|
|
124
|
-
# Do not use the cache when building the image.
|
|
125
98
|
sig { returns(T.nilable(T::Boolean)) }
|
|
126
99
|
attr_reader :nocache
|
|
127
100
|
|
|
128
101
|
sig { params(nocache: T::Boolean).void }
|
|
129
102
|
attr_writer :nocache
|
|
130
103
|
|
|
131
|
-
# BuildKit output configuration in the format of a stringified JSON array of
|
|
132
|
-
# objects. Each object must have two top-level properties: `Type` and `Attrs`. The
|
|
133
|
-
# `Type` property must be set to 'moby'. The `Attrs` property is a map of
|
|
134
|
-
# attributes for the BuildKit output configuration. See
|
|
135
|
-
# https://docs.docker.com/build/exporters/oci-docker/ for more information.
|
|
136
|
-
#
|
|
137
|
-
# Example:
|
|
138
|
-
#
|
|
139
|
-
# ```
|
|
140
|
-
# [{"Type":"moby","Attrs":{"type":"image","force-compression":"true","compression":"zstd"}}]
|
|
141
|
-
# ```
|
|
142
104
|
sig { returns(T.nilable(String)) }
|
|
143
105
|
attr_reader :outputs
|
|
144
106
|
|
|
145
107
|
sig { params(outputs: String).void }
|
|
146
108
|
attr_writer :outputs
|
|
147
109
|
|
|
148
|
-
# Platform in the format os[/arch[/variant]]
|
|
149
110
|
sig { returns(T.nilable(String)) }
|
|
150
111
|
attr_reader :platform
|
|
151
112
|
|
|
152
113
|
sig { params(platform: String).void }
|
|
153
114
|
attr_writer :platform
|
|
154
115
|
|
|
155
|
-
# Attempt to pull the image even if an older image exists locally.
|
|
156
116
|
sig { returns(T.nilable(String)) }
|
|
157
117
|
attr_reader :pull
|
|
158
118
|
|
|
159
119
|
sig { params(pull: String).void }
|
|
160
120
|
attr_writer :pull
|
|
161
121
|
|
|
162
|
-
# Suppress verbose build output.
|
|
163
122
|
sig { returns(T.nilable(T::Boolean)) }
|
|
164
123
|
attr_reader :q
|
|
165
124
|
|
|
166
125
|
sig { params(q: T::Boolean).void }
|
|
167
126
|
attr_writer :q
|
|
168
127
|
|
|
169
|
-
# A Git repository URI or HTTP/HTTPS context URI. If the URI points to a single
|
|
170
|
-
# text file, the file’s contents are placed into a file called `Dockerfile` and
|
|
171
|
-
# the image is built from that file. If the URI points to a tarball, the file is
|
|
172
|
-
# downloaded by the daemon and the contents therein used as the context for the
|
|
173
|
-
# build. If the URI points to a tarball and the `dockerfile` parameter is also
|
|
174
|
-
# specified, there must be a file with the corresponding path inside the tarball.
|
|
175
128
|
sig { returns(T.nilable(String)) }
|
|
176
129
|
attr_reader :remote
|
|
177
130
|
|
|
178
131
|
sig { params(remote: String).void }
|
|
179
132
|
attr_writer :remote
|
|
180
133
|
|
|
181
|
-
# Remove intermediate containers after a successful build.
|
|
182
134
|
sig { returns(T.nilable(T::Boolean)) }
|
|
183
135
|
attr_reader :rm
|
|
184
136
|
|
|
185
137
|
sig { params(rm: T::Boolean).void }
|
|
186
138
|
attr_writer :rm
|
|
187
139
|
|
|
188
|
-
# Size of `/dev/shm` in bytes. The size must be greater than 0. If omitted the
|
|
189
|
-
# system uses 64MB.
|
|
190
140
|
sig { returns(T.nilable(Integer)) }
|
|
191
141
|
attr_reader :shmsize
|
|
192
142
|
|
|
193
143
|
sig { params(shmsize: Integer).void }
|
|
194
144
|
attr_writer :shmsize
|
|
195
145
|
|
|
196
|
-
# Squash the resulting images layers into a single layer. _(Experimental release
|
|
197
|
-
# only.)_
|
|
198
146
|
sig { returns(T.nilable(T::Boolean)) }
|
|
199
147
|
attr_reader :squash
|
|
200
148
|
|
|
201
149
|
sig { params(squash: T::Boolean).void }
|
|
202
150
|
attr_writer :squash
|
|
203
151
|
|
|
204
|
-
# A name and optional tag to apply to the image in the `name:tag` format. If you
|
|
205
|
-
# omit the tag the default `latest` value is assumed. You can provide several `t`
|
|
206
|
-
# parameters.
|
|
207
152
|
sig { returns(T.nilable(String)) }
|
|
208
153
|
attr_reader :t
|
|
209
154
|
|
|
210
155
|
sig { params(t: String).void }
|
|
211
156
|
attr_writer :t
|
|
212
157
|
|
|
213
|
-
# Target build stage
|
|
214
158
|
sig { returns(T.nilable(String)) }
|
|
215
159
|
attr_reader :target
|
|
216
160
|
|
|
217
161
|
sig { params(target: String).void }
|
|
218
162
|
attr_writer :target
|
|
219
163
|
|
|
220
|
-
# Version of the builder backend to use.
|
|
221
|
-
#
|
|
222
|
-
# - `1` is the first generation classic (deprecated) builder in the Docker daemon
|
|
223
|
-
# (default)
|
|
224
|
-
# - `2` is [BuildKit](https://github.com/moby/buildkit)
|
|
225
164
|
sig do
|
|
226
165
|
returns(
|
|
227
166
|
T.nilable(DockerEngineRuby::ImageBuildParams::Version::OrSymbol)
|
|
@@ -276,91 +215,30 @@ module DockerEngineRuby
|
|
|
276
215
|
end
|
|
277
216
|
def self.new(
|
|
278
217
|
body:,
|
|
279
|
-
# JSON map of string pairs for build-time variables. Users pass these values at
|
|
280
|
-
# build-time. Docker uses the buildargs as the environment context for commands
|
|
281
|
-
# run via the `Dockerfile` RUN instruction, or for variable expansion in other
|
|
282
|
-
# `Dockerfile` instructions. This is not meant for passing secret values.
|
|
283
|
-
#
|
|
284
|
-
# For example, the build arg `FOO=bar` would become `{"FOO":"bar"}` in JSON. This
|
|
285
|
-
# would result in the query parameter `buildargs={"FOO":"bar"}`. Note that
|
|
286
|
-
# `{"FOO":"bar"}` should be URI component encoded.
|
|
287
|
-
#
|
|
288
|
-
# [Read more about the buildargs instruction.](https://docs.docker.com/engine/reference/builder/#arg)
|
|
289
218
|
buildargs: nil,
|
|
290
|
-
# JSON array of images used for build cache resolution.
|
|
291
219
|
cachefrom: nil,
|
|
292
|
-
# The length of a CPU period in microseconds.
|
|
293
220
|
cpuperiod: nil,
|
|
294
|
-
# Microseconds of CPU time that the container can get in a CPU period.
|
|
295
221
|
cpuquota: nil,
|
|
296
|
-
# CPUs in which to allow execution (e.g., `0-3`, `0,1`).
|
|
297
222
|
cpusetcpus: nil,
|
|
298
|
-
# CPU shares (relative weight).
|
|
299
223
|
cpushares: nil,
|
|
300
|
-
# Path within the build context to the `Dockerfile`. This is ignored if `remote`
|
|
301
|
-
# is specified and points to an external `Dockerfile`.
|
|
302
224
|
dockerfile: nil,
|
|
303
|
-
# Extra hosts to add to /etc/hosts
|
|
304
225
|
extrahosts: nil,
|
|
305
|
-
# Always remove intermediate containers, even upon failure.
|
|
306
226
|
forcerm: nil,
|
|
307
|
-
# Arbitrary key/value labels to set on the image, as a JSON map of string pairs.
|
|
308
227
|
labels: nil,
|
|
309
|
-
# Set memory limit for build.
|
|
310
228
|
memory: nil,
|
|
311
|
-
# Total memory (memory + swap). Set as `-1` to disable swap.
|
|
312
229
|
memswap: nil,
|
|
313
|
-
# Sets the networking mode for the run commands during build. Supported standard
|
|
314
|
-
# values are: `bridge`, `host`, `none`, and `container:<name|id>`. Any other value
|
|
315
|
-
# is taken as a custom network's name or ID to which this container should connect
|
|
316
|
-
# to.
|
|
317
230
|
networkmode: nil,
|
|
318
|
-
# Do not use the cache when building the image.
|
|
319
231
|
nocache: nil,
|
|
320
|
-
# BuildKit output configuration in the format of a stringified JSON array of
|
|
321
|
-
# objects. Each object must have two top-level properties: `Type` and `Attrs`. The
|
|
322
|
-
# `Type` property must be set to 'moby'. The `Attrs` property is a map of
|
|
323
|
-
# attributes for the BuildKit output configuration. See
|
|
324
|
-
# https://docs.docker.com/build/exporters/oci-docker/ for more information.
|
|
325
|
-
#
|
|
326
|
-
# Example:
|
|
327
|
-
#
|
|
328
|
-
# ```
|
|
329
|
-
# [{"Type":"moby","Attrs":{"type":"image","force-compression":"true","compression":"zstd"}}]
|
|
330
|
-
# ```
|
|
331
232
|
outputs: nil,
|
|
332
|
-
# Platform in the format os[/arch[/variant]]
|
|
333
233
|
platform: nil,
|
|
334
|
-
# Attempt to pull the image even if an older image exists locally.
|
|
335
234
|
pull: nil,
|
|
336
|
-
# Suppress verbose build output.
|
|
337
235
|
q: nil,
|
|
338
|
-
# A Git repository URI or HTTP/HTTPS context URI. If the URI points to a single
|
|
339
|
-
# text file, the file’s contents are placed into a file called `Dockerfile` and
|
|
340
|
-
# the image is built from that file. If the URI points to a tarball, the file is
|
|
341
|
-
# downloaded by the daemon and the contents therein used as the context for the
|
|
342
|
-
# build. If the URI points to a tarball and the `dockerfile` parameter is also
|
|
343
|
-
# specified, there must be a file with the corresponding path inside the tarball.
|
|
344
236
|
remote: nil,
|
|
345
|
-
# Remove intermediate containers after a successful build.
|
|
346
237
|
rm: nil,
|
|
347
|
-
# Size of `/dev/shm` in bytes. The size must be greater than 0. If omitted the
|
|
348
|
-
# system uses 64MB.
|
|
349
238
|
shmsize: nil,
|
|
350
|
-
# Squash the resulting images layers into a single layer. _(Experimental release
|
|
351
|
-
# only.)_
|
|
352
239
|
squash: nil,
|
|
353
|
-
# A name and optional tag to apply to the image in the `name:tag` format. If you
|
|
354
|
-
# omit the tag the default `latest` value is assumed. You can provide several `t`
|
|
355
|
-
# parameters.
|
|
356
240
|
t: nil,
|
|
357
|
-
# Target build stage
|
|
358
241
|
target: nil,
|
|
359
|
-
# Version of the builder backend to use.
|
|
360
|
-
#
|
|
361
|
-
# - `1` is the first generation classic (deprecated) builder in the Docker daemon
|
|
362
|
-
# (default)
|
|
363
|
-
# - `2` is [BuildKit](https://github.com/moby/buildkit)
|
|
364
242
|
version: nil,
|
|
365
243
|
x_registry_config: nil,
|
|
366
244
|
request_options: {}
|
|
@@ -404,11 +282,6 @@ module DockerEngineRuby
|
|
|
404
282
|
def to_hash
|
|
405
283
|
end
|
|
406
284
|
|
|
407
|
-
# Version of the builder backend to use.
|
|
408
|
-
#
|
|
409
|
-
# - `1` is the first generation classic (deprecated) builder in the Docker daemon
|
|
410
|
-
# (default)
|
|
411
|
-
# - `2` is [BuildKit](https://github.com/moby/buildkit)
|
|
412
285
|
module Version
|
|
413
286
|
extend DockerEngineRuby::Internal::Type::Enum
|
|
414
287
|
|
|
@@ -14,49 +14,30 @@ module DockerEngineRuby
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Remove all types of build cache
|
|
18
17
|
sig { returns(T.nilable(T::Boolean)) }
|
|
19
18
|
attr_reader :all
|
|
20
19
|
|
|
21
20
|
sig { params(all: T::Boolean).void }
|
|
22
21
|
attr_writer :all
|
|
23
22
|
|
|
24
|
-
# A JSON encoded value of the filters (a `map[string][]string`) to process on the
|
|
25
|
-
# list of build cache objects.
|
|
26
|
-
#
|
|
27
|
-
# Available filters:
|
|
28
|
-
#
|
|
29
|
-
# - `until=<timestamp>` remove cache older than `<timestamp>`. The `<timestamp>`
|
|
30
|
-
# can be Unix timestamps, date formatted timestamps, or Go duration strings
|
|
31
|
-
# (e.g. `10m`, `1h30m`) computed relative to the daemon's local time.
|
|
32
|
-
# - `id=<id>`
|
|
33
|
-
# - `parent=<id>`
|
|
34
|
-
# - `type=<string>`
|
|
35
|
-
# - `description=<string>`
|
|
36
|
-
# - `inuse`
|
|
37
|
-
# - `shared`
|
|
38
|
-
# - `private`
|
|
39
23
|
sig { returns(T.nilable(String)) }
|
|
40
24
|
attr_reader :filters
|
|
41
25
|
|
|
42
26
|
sig { params(filters: String).void }
|
|
43
27
|
attr_writer :filters
|
|
44
28
|
|
|
45
|
-
# Maximum amount of disk space allowed to keep for cache
|
|
46
29
|
sig { returns(T.nilable(Integer)) }
|
|
47
30
|
attr_reader :max_used_space
|
|
48
31
|
|
|
49
32
|
sig { params(max_used_space: Integer).void }
|
|
50
33
|
attr_writer :max_used_space
|
|
51
34
|
|
|
52
|
-
# Target amount of free disk space after pruning
|
|
53
35
|
sig { returns(T.nilable(Integer)) }
|
|
54
36
|
attr_reader :min_free_space
|
|
55
37
|
|
|
56
38
|
sig { params(min_free_space: Integer).void }
|
|
57
39
|
attr_writer :min_free_space
|
|
58
40
|
|
|
59
|
-
# Amount of disk space in bytes to keep for cache
|
|
60
41
|
sig { returns(T.nilable(Integer)) }
|
|
61
42
|
attr_reader :reserved_space
|
|
62
43
|
|
|
@@ -74,29 +55,10 @@ module DockerEngineRuby
|
|
|
74
55
|
).returns(T.attached_class)
|
|
75
56
|
end
|
|
76
57
|
def self.new(
|
|
77
|
-
# Remove all types of build cache
|
|
78
58
|
all: nil,
|
|
79
|
-
# A JSON encoded value of the filters (a `map[string][]string`) to process on the
|
|
80
|
-
# list of build cache objects.
|
|
81
|
-
#
|
|
82
|
-
# Available filters:
|
|
83
|
-
#
|
|
84
|
-
# - `until=<timestamp>` remove cache older than `<timestamp>`. The `<timestamp>`
|
|
85
|
-
# can be Unix timestamps, date formatted timestamps, or Go duration strings
|
|
86
|
-
# (e.g. `10m`, `1h30m`) computed relative to the daemon's local time.
|
|
87
|
-
# - `id=<id>`
|
|
88
|
-
# - `parent=<id>`
|
|
89
|
-
# - `type=<string>`
|
|
90
|
-
# - `description=<string>`
|
|
91
|
-
# - `inuse`
|
|
92
|
-
# - `shared`
|
|
93
|
-
# - `private`
|
|
94
59
|
filters: nil,
|
|
95
|
-
# Maximum amount of disk space allowed to keep for cache
|
|
96
60
|
max_used_space: nil,
|
|
97
|
-
# Target amount of free disk space after pruning
|
|
98
61
|
min_free_space: nil,
|
|
99
|
-
# Amount of disk space in bytes to keep for cache
|
|
100
62
|
reserved_space: nil,
|
|
101
63
|
request_options: {}
|
|
102
64
|
)
|
|
@@ -17,7 +17,6 @@ module DockerEngineRuby
|
|
|
17
17
|
sig { params(caches_deleted: T::Array[String]).void }
|
|
18
18
|
attr_writer :caches_deleted
|
|
19
19
|
|
|
20
|
-
# Disk space reclaimed in bytes
|
|
21
20
|
sig { returns(T.nilable(Integer)) }
|
|
22
21
|
attr_reader :space_reclaimed
|
|
23
22
|
|
|
@@ -30,11 +29,7 @@ module DockerEngineRuby
|
|
|
30
29
|
space_reclaimed: Integer
|
|
31
30
|
).returns(T.attached_class)
|
|
32
31
|
end
|
|
33
|
-
def self.new(
|
|
34
|
-
caches_deleted: nil,
|
|
35
|
-
# Disk space reclaimed in bytes
|
|
36
|
-
space_reclaimed: nil
|
|
37
|
-
)
|
|
32
|
+
def self.new(caches_deleted: nil, space_reclaimed: nil)
|
|
38
33
|
end
|
|
39
34
|
|
|
40
35
|
sig do
|
|
@@ -14,49 +14,42 @@ module DockerEngineRuby
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Author of the image (e.g., `John Hannibal Smith <hannibal@a-team.com>`)
|
|
18
17
|
sig { returns(T.nilable(String)) }
|
|
19
18
|
attr_reader :author
|
|
20
19
|
|
|
21
20
|
sig { params(author: String).void }
|
|
22
21
|
attr_writer :author
|
|
23
22
|
|
|
24
|
-
# `Dockerfile` instructions to apply while committing
|
|
25
23
|
sig { returns(T.nilable(String)) }
|
|
26
24
|
attr_reader :changes
|
|
27
25
|
|
|
28
26
|
sig { params(changes: String).void }
|
|
29
27
|
attr_writer :changes
|
|
30
28
|
|
|
31
|
-
# Commit message
|
|
32
29
|
sig { returns(T.nilable(String)) }
|
|
33
30
|
attr_reader :comment
|
|
34
31
|
|
|
35
32
|
sig { params(comment: String).void }
|
|
36
33
|
attr_writer :comment
|
|
37
34
|
|
|
38
|
-
# The ID or name of the container to commit
|
|
39
35
|
sig { returns(T.nilable(String)) }
|
|
40
36
|
attr_reader :container
|
|
41
37
|
|
|
42
38
|
sig { params(container: String).void }
|
|
43
39
|
attr_writer :container
|
|
44
40
|
|
|
45
|
-
# Whether to pause the container before committing
|
|
46
41
|
sig { returns(T.nilable(T::Boolean)) }
|
|
47
42
|
attr_reader :pause
|
|
48
43
|
|
|
49
44
|
sig { params(pause: T::Boolean).void }
|
|
50
45
|
attr_writer :pause
|
|
51
46
|
|
|
52
|
-
# Repository name for the created image
|
|
53
47
|
sig { returns(T.nilable(String)) }
|
|
54
48
|
attr_reader :repo
|
|
55
49
|
|
|
56
50
|
sig { params(repo: String).void }
|
|
57
51
|
attr_writer :repo
|
|
58
52
|
|
|
59
|
-
# Tag name for the create image
|
|
60
53
|
sig { returns(T.nilable(String)) }
|
|
61
54
|
attr_reader :tag
|
|
62
55
|
|
|
@@ -76,19 +69,12 @@ module DockerEngineRuby
|
|
|
76
69
|
).returns(T.attached_class)
|
|
77
70
|
end
|
|
78
71
|
def self.new(
|
|
79
|
-
# Author of the image (e.g., `John Hannibal Smith <hannibal@a-team.com>`)
|
|
80
72
|
author: nil,
|
|
81
|
-
# `Dockerfile` instructions to apply while committing
|
|
82
73
|
changes: nil,
|
|
83
|
-
# Commit message
|
|
84
74
|
comment: nil,
|
|
85
|
-
# The ID or name of the container to commit
|
|
86
75
|
container: nil,
|
|
87
|
-
# Whether to pause the container before committing
|
|
88
76
|
pause: nil,
|
|
89
|
-
# Repository name for the created image
|
|
90
77
|
repo: nil,
|
|
91
|
-
# Tag name for the create image
|
|
92
78
|
tag: nil,
|
|
93
79
|
request_options: {}
|
|
94
80
|
)
|
|
@@ -14,23 +14,18 @@ module DockerEngineRuby
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Remove the image even if it is being used by stopped containers or has other
|
|
18
|
-
# tags
|
|
19
17
|
sig { returns(T.nilable(T::Boolean)) }
|
|
20
18
|
attr_reader :force
|
|
21
19
|
|
|
22
20
|
sig { params(force: T::Boolean).void }
|
|
23
21
|
attr_writer :force
|
|
24
22
|
|
|
25
|
-
# Do not delete untagged parent images
|
|
26
23
|
sig { returns(T.nilable(T::Boolean)) }
|
|
27
24
|
attr_reader :noprune
|
|
28
25
|
|
|
29
26
|
sig { params(noprune: T::Boolean).void }
|
|
30
27
|
attr_writer :noprune
|
|
31
28
|
|
|
32
|
-
# Select platform-specific content to delete. Multiple values are accepted. Each
|
|
33
|
-
# platform is a OCI platform encoded as a JSON string.
|
|
34
29
|
sig { returns(T.nilable(T::Array[String])) }
|
|
35
30
|
attr_reader :platforms
|
|
36
31
|
|
|
@@ -46,13 +41,8 @@ module DockerEngineRuby
|
|
|
46
41
|
).returns(T.attached_class)
|
|
47
42
|
end
|
|
48
43
|
def self.new(
|
|
49
|
-
# Remove the image even if it is being used by stopped containers or has other
|
|
50
|
-
# tags
|
|
51
44
|
force: nil,
|
|
52
|
-
# Do not delete untagged parent images
|
|
53
45
|
noprune: nil,
|
|
54
|
-
# Select platform-specific content to delete. Multiple values are accepted. Each
|
|
55
|
-
# platform is a OCI platform encoded as a JSON string.
|
|
56
46
|
platforms: nil,
|
|
57
47
|
request_options: {}
|
|
58
48
|
)
|
|
@@ -14,18 +14,12 @@ module DockerEngineRuby
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Image names to filter by
|
|
18
17
|
sig { returns(T.nilable(T::Array[String])) }
|
|
19
18
|
attr_reader :names
|
|
20
19
|
|
|
21
20
|
sig { params(names: T::Array[String]).void }
|
|
22
21
|
attr_writer :names
|
|
23
22
|
|
|
24
|
-
# JSON encoded OCI platform(s) which will be used to select the platform-specific
|
|
25
|
-
# image(s) to be saved if the image is multi-platform. If not provided, the full
|
|
26
|
-
# multi-platform image will be saved.
|
|
27
|
-
#
|
|
28
|
-
# Example: `{"os": "linux", "architecture": "arm", "variant": "v5"}`
|
|
29
23
|
sig { returns(T.nilable(T::Array[String])) }
|
|
30
24
|
attr_reader :platform
|
|
31
25
|
|
|
@@ -39,17 +33,7 @@ module DockerEngineRuby
|
|
|
39
33
|
request_options: DockerEngineRuby::RequestOptions::OrHash
|
|
40
34
|
).returns(T.attached_class)
|
|
41
35
|
end
|
|
42
|
-
def self.new(
|
|
43
|
-
# Image names to filter by
|
|
44
|
-
names: nil,
|
|
45
|
-
# JSON encoded OCI platform(s) which will be used to select the platform-specific
|
|
46
|
-
# image(s) to be saved if the image is multi-platform. If not provided, the full
|
|
47
|
-
# multi-platform image will be saved.
|
|
48
|
-
#
|
|
49
|
-
# Example: `{"os": "linux", "architecture": "arm", "variant": "v5"}`
|
|
50
|
-
platform: nil,
|
|
51
|
-
request_options: {}
|
|
52
|
-
)
|
|
36
|
+
def self.new(names: nil, platform: nil, request_options: {})
|
|
53
37
|
end
|
|
54
38
|
|
|
55
39
|
sig do
|
|
@@ -14,11 +14,6 @@ module DockerEngineRuby
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# JSON encoded OCI platform describing a platform which will be used to select a
|
|
18
|
-
# platform-specific image to be saved if the image is multi-platform. If not
|
|
19
|
-
# provided, the full multi-platform image will be saved.
|
|
20
|
-
#
|
|
21
|
-
# Example: `{"os": "linux", "architecture": "arm", "variant": "v5"}`
|
|
22
17
|
sig { returns(T.nilable(T::Array[String])) }
|
|
23
18
|
attr_reader :platform
|
|
24
19
|
|
|
@@ -31,15 +26,7 @@ module DockerEngineRuby
|
|
|
31
26
|
request_options: DockerEngineRuby::RequestOptions::OrHash
|
|
32
27
|
).returns(T.attached_class)
|
|
33
28
|
end
|
|
34
|
-
def self.new(
|
|
35
|
-
# JSON encoded OCI platform describing a platform which will be used to select a
|
|
36
|
-
# platform-specific image to be saved if the image is multi-platform. If not
|
|
37
|
-
# provided, the full multi-platform image will be saved.
|
|
38
|
-
#
|
|
39
|
-
# Example: `{"os": "linux", "architecture": "arm", "variant": "v5"}`
|
|
40
|
-
platform: nil,
|
|
41
|
-
request_options: {}
|
|
42
|
-
)
|
|
29
|
+
def self.new(platform: nil, request_options: {})
|
|
43
30
|
end
|
|
44
31
|
|
|
45
32
|
sig do
|
|
@@ -14,16 +14,6 @@ module DockerEngineRuby
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# JSON-encoded OCI platform to select the platform-variant. If omitted, it
|
|
18
|
-
# defaults to any locally available platform, prioritizing the daemon's host
|
|
19
|
-
# platform.
|
|
20
|
-
#
|
|
21
|
-
# If the daemon provides a multi-platform image store, this selects the
|
|
22
|
-
# platform-variant to show the history for. If the image is a single-platform
|
|
23
|
-
# image, or if the multi-platform image does not provide a variant matching the
|
|
24
|
-
# given platform, an error is returned.
|
|
25
|
-
#
|
|
26
|
-
# Example: `{"os": "linux", "architecture": "arm", "variant": "v5"}`
|
|
27
17
|
sig { returns(T.nilable(String)) }
|
|
28
18
|
attr_reader :platform
|
|
29
19
|
|
|
@@ -36,20 +26,7 @@ module DockerEngineRuby
|
|
|
36
26
|
request_options: DockerEngineRuby::RequestOptions::OrHash
|
|
37
27
|
).returns(T.attached_class)
|
|
38
28
|
end
|
|
39
|
-
def self.new(
|
|
40
|
-
# JSON-encoded OCI platform to select the platform-variant. If omitted, it
|
|
41
|
-
# defaults to any locally available platform, prioritizing the daemon's host
|
|
42
|
-
# platform.
|
|
43
|
-
#
|
|
44
|
-
# If the daemon provides a multi-platform image store, this selects the
|
|
45
|
-
# platform-variant to show the history for. If the image is a single-platform
|
|
46
|
-
# image, or if the multi-platform image does not provide a variant matching the
|
|
47
|
-
# given platform, an error is returned.
|
|
48
|
-
#
|
|
49
|
-
# Example: `{"os": "linux", "architecture": "arm", "variant": "v5"}`
|
|
50
|
-
platform: nil,
|
|
51
|
-
request_options: {}
|
|
52
|
-
)
|
|
29
|
+
def self.new(platform: nil, request_options: {})
|
|
53
30
|
end
|
|
54
31
|
|
|
55
32
|
sig do
|
|
@@ -14,7 +14,6 @@ module DockerEngineRuby
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Include Manifests in the image summary.
|
|
18
17
|
sig { returns(T.nilable(T::Boolean)) }
|
|
19
18
|
attr_reader :manifests
|
|
20
19
|
|
|
@@ -27,11 +26,7 @@ module DockerEngineRuby
|
|
|
27
26
|
request_options: DockerEngineRuby::RequestOptions::OrHash
|
|
28
27
|
).returns(T.attached_class)
|
|
29
28
|
end
|
|
30
|
-
def self.new(
|
|
31
|
-
# Include Manifests in the image summary.
|
|
32
|
-
manifests: nil,
|
|
33
|
-
request_options: {}
|
|
34
|
-
)
|
|
29
|
+
def self.new(manifests: nil, request_options: {})
|
|
35
30
|
end
|
|
36
31
|
|
|
37
32
|
sig do
|