mirror of https://github.com/docker/cli.git
contrib/completion: remove logentries logging-driver
This driver has been deprecated and removed because the service is no longer operational. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
f63065a58b
commit
b14094df53
|
@ -891,7 +891,6 @@ __docker_complete_log_drivers() {
|
||||||
journald
|
journald
|
||||||
json-file
|
json-file
|
||||||
local
|
local
|
||||||
logentries
|
|
||||||
none
|
none
|
||||||
splunk
|
splunk
|
||||||
syslog
|
syslog
|
||||||
|
@ -916,11 +915,10 @@ __docker_complete_log_options() {
|
||||||
local journald_options="$common_options1 $common_options2 tag"
|
local journald_options="$common_options1 $common_options2 tag"
|
||||||
local json_file_options="$common_options1 $common_options2 compress max-file max-size"
|
local json_file_options="$common_options1 $common_options2 compress max-file max-size"
|
||||||
local local_options="$common_options1 compress max-file max-size"
|
local local_options="$common_options1 compress max-file max-size"
|
||||||
local logentries_options="$common_options1 $common_options2 line-only 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 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 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 $json_file_options $syslog_options $splunk_options"
|
||||||
|
|
||||||
case $(__docker_value_of_option --log-driver) in
|
case $(__docker_value_of_option --log-driver) in
|
||||||
'')
|
'')
|
||||||
|
@ -947,9 +945,6 @@ __docker_complete_log_options() {
|
||||||
local)
|
local)
|
||||||
COMPREPLY=( $( compgen -W "$local_options" -S = -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "$local_options" -S = -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
logentries)
|
|
||||||
COMPREPLY=( $( compgen -W "$logentries_options" -S = -- "$cur" ) )
|
|
||||||
;;
|
|
||||||
syslog)
|
syslog)
|
||||||
COMPREPLY=( $( compgen -W "$syslog_options" -S = -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "$syslog_options" -S = -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -222,7 +222,7 @@ __docker_get_log_options() {
|
||||||
|
|
||||||
integer ret=1
|
integer ret=1
|
||||||
local log_driver=${opt_args[--log-driver]:-"all"}
|
local log_driver=${opt_args[--log-driver]:-"all"}
|
||||||
local -a common_options common_options2 awslogs_options fluentd_options gelf_options journald_options json_file_options logentries_options syslog_options splunk_options
|
local -a common_options common_options2 awslogs_options fluentd_options gelf_options journald_options json_file_options syslog_options splunk_options
|
||||||
|
|
||||||
common_options=("max-buffer-size" "mode")
|
common_options=("max-buffer-size" "mode")
|
||||||
common_options2=("env" "env-regex" "labels")
|
common_options2=("env" "env-regex" "labels")
|
||||||
|
@ -232,7 +232,6 @@ __docker_get_log_options() {
|
||||||
gelf_options=($common_options $common_options2 "gelf-address" "gelf-compression-level" "gelf-compression-type" "tag")
|
gelf_options=($common_options $common_options2 "gelf-address" "gelf-compression-level" "gelf-compression-type" "tag")
|
||||||
journald_options=($common_options $common_options2 "tag")
|
journald_options=($common_options $common_options2 "tag")
|
||||||
json_file_options=($common_options $common_options2 "max-file" "max-size")
|
json_file_options=($common_options $common_options2 "max-file" "max-size")
|
||||||
logentries_options=($common_options $common_options2 "logentries-token" "tag")
|
|
||||||
syslog_options=($common_options $common_options2 "syslog-address" "syslog-facility" "syslog-format" "syslog-tls-ca-cert" "syslog-tls-cert" "syslog-tls-key" "syslog-tls-skip-verify" "tag")
|
syslog_options=($common_options $common_options2 "syslog-address" "syslog-facility" "syslog-format" "syslog-tls-ca-cert" "syslog-tls-cert" "syslog-tls-key" "syslog-tls-skip-verify" "tag")
|
||||||
splunk_options=($common_options $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")
|
splunk_options=($common_options $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")
|
||||||
|
|
||||||
|
@ -242,7 +241,6 @@ __docker_get_log_options() {
|
||||||
[[ $log_driver = (gelf|all) ]] && _describe -t gelf-options "gelf options" gelf_options "$@" && ret=0
|
[[ $log_driver = (gelf|all) ]] && _describe -t gelf-options "gelf options" gelf_options "$@" && ret=0
|
||||||
[[ $log_driver = (journald|all) ]] && _describe -t journald-options "journald options" journald_options "$@" && ret=0
|
[[ $log_driver = (journald|all) ]] && _describe -t journald-options "journald options" journald_options "$@" && ret=0
|
||||||
[[ $log_driver = (json-file|all) ]] && _describe -t json-file-options "json-file options" json_file_options "$@" && ret=0
|
[[ $log_driver = (json-file|all) ]] && _describe -t json-file-options "json-file options" json_file_options "$@" && ret=0
|
||||||
[[ $log_driver = (logentries|all) ]] && _describe -t logentries-options "logentries options" logentries_options "$@" && ret=0
|
|
||||||
[[ $log_driver = (syslog|all) ]] && _describe -t syslog-options "syslog options" syslog_options "$@" && ret=0
|
[[ $log_driver = (syslog|all) ]] && _describe -t syslog-options "syslog options" syslog_options "$@" && ret=0
|
||||||
[[ $log_driver = (splunk|all) ]] && _describe -t splunk-options "splunk options" splunk_options "$@" && ret=0
|
[[ $log_driver = (splunk|all) ]] && _describe -t splunk-options "splunk options" splunk_options "$@" && ret=0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue