Update bash completion for log driver options

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2017-05-05 16:52:33 +02:00 committed by Tibor Vass
parent cf95e198c5
commit 4c0d6698d1
1 changed files with 17 additions and 10 deletions

View File

@ -746,17 +746,24 @@ __docker_complete_log_drivers() {
__docker_complete_log_options() { __docker_complete_log_options() {
# see repository docker/docker.github.io/engine/admin/logging/ # see repository docker/docker.github.io/engine/admin/logging/
local common_options="max-buffer-size mode"
local awslogs_options="$common_options awslogs-create-group awslogs-group awslogs-region awslogs-stream" # really global options, defined in https://github.com/moby/moby/blob/master/daemon/logger/factory.go
local fluentd_options="$common_options env fluentd-address fluentd-async-connect fluentd-buffer-limit fluentd-retry-wait fluentd-max-retries labels tag" local common_options1="max-buffer-size mode"
local gcplogs_options="$common_options env gcp-log-cmd gcp-project labels" # common options defined in https://github.com/moby/moby/blob/master/daemon/logger/loginfo.go
local gelf_options="$common_options env gelf-address gelf-compression-level gelf-compression-type labels tag" # but not implemented in all log drivers
local journald_options="$common_options env labels tag" local common_options2="env env-regex labels"
local json_file_options="$common_options env labels max-file max-size"
local logentries_options="$common_options logentries-token" # awslogs does not implement the $common_options2.
local syslog_options="$common_options env labels syslog-address syslog-facility syslog-format syslog-tls-ca-cert syslog-tls-cert syslog-tls-key syslog-tls-skip-verify tag" local awslogs_options="$common_options1 awslogs-create-group awslogs-group awslogs-region awslogs-stream tag"
local splunk_options="$common_options env labels splunk-caname splunk-capath splunk-format splunk-gzip splunk-gzip-level splunk-index splunk-insecureskipverify splunk-source splunk-sourcetype splunk-token splunk-url splunk-verify-connection tag"
local fluentd_options="$common_options1 $common_options2 fluentd-address fluentd-async-connect fluentd-buffer-limit fluentd-retry-wait fluentd-max-retries tag"
local gcplogs_options="$common_options1 $common_options2 gcp-log-cmd gcp-meta-id gcp-meta-name gcp-meta-zone gcp-project"
local gelf_options="$common_options1 $common_options2 gelf-address gelf-compression-level gelf-compression-type tag"
local journald_options="$common_options1 $common_options2 tag"
local json_file_options="$common_options1 $common_options2 max-file max-size"
local logentries_options="$common_options1 $common_options2 logentries-token tag"
local splunk_options="$common_options1 $common_options2 splunk-caname splunk-capath splunk-format splunk-gzip splunk-gzip-level splunk-index splunk-insecureskipverify splunk-source splunk-sourcetype splunk-token splunk-url splunk-verify-connection tag"
local syslog_options="$common_options1 $common_options2 syslog-address syslog-facility syslog-format syslog-tls-ca-cert syslog-tls-cert syslog-tls-key syslog-tls-skip-verify tag"
local all_options="$fluentd_options $gcplogs_options $gelf_options $journald_options $logentries_options $json_file_options $syslog_options $splunk_options" local all_options="$fluentd_options $gcplogs_options $gelf_options $journald_options $logentries_options $json_file_options $syslog_options $splunk_options"