Add support for configs
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
This commit is contained in:
1
cli/command/config/testdata/config-create-with-name.golden
vendored
Normal file
1
cli/command/config/testdata/config-create-with-name.golden
vendored
Normal file
@ -0,0 +1 @@
|
||||
config_foo_bar
|
||||
1
cli/command/config/testdata/config-inspect-with-format.json-template.golden
vendored
Normal file
1
cli/command/config/testdata/config-inspect-with-format.json-template.golden
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"label1":"label-foo"}
|
||||
1
cli/command/config/testdata/config-inspect-with-format.simple-template.golden
vendored
Normal file
1
cli/command/config/testdata/config-inspect-with-format.simple-template.golden
vendored
Normal file
@ -0,0 +1 @@
|
||||
foo
|
||||
26
cli/command/config/testdata/config-inspect-without-format.multiple-configs-with-labels.golden
vendored
Normal file
26
cli/command/config/testdata/config-inspect-without-format.multiple-configs-with-labels.golden
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
[
|
||||
{
|
||||
"ID": "ID-foo",
|
||||
"Version": {},
|
||||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||||
"Spec": {
|
||||
"Name": "foo",
|
||||
"Labels": {
|
||||
"label1": "label-foo"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"ID": "ID-bar",
|
||||
"Version": {},
|
||||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||||
"Spec": {
|
||||
"Name": "bar",
|
||||
"Labels": {
|
||||
"label1": "label-foo"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
12
cli/command/config/testdata/config-inspect-without-format.single-config.golden
vendored
Normal file
12
cli/command/config/testdata/config-inspect-without-format.single-config.golden
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"ID": "ID-foo",
|
||||
"Version": {},
|
||||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||||
"Spec": {
|
||||
"Name": "foo",
|
||||
"Labels": null
|
||||
}
|
||||
}
|
||||
]
|
||||
2
cli/command/config/testdata/config-list-with-config-format.golden
vendored
Normal file
2
cli/command/config/testdata/config-list-with-config-format.golden
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
foo
|
||||
bar label=label-bar
|
||||
3
cli/command/config/testdata/config-list-with-filter.golden
vendored
Normal file
3
cli/command/config/testdata/config-list-with-filter.golden
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
ID NAME CREATED UPDATED
|
||||
ID-foo foo 2 hours ago About an hour ago
|
||||
ID-bar bar 2 hours ago About an hour ago
|
||||
2
cli/command/config/testdata/config-list-with-format.golden
vendored
Normal file
2
cli/command/config/testdata/config-list-with-format.golden
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
foo
|
||||
bar label=label-bar
|
||||
2
cli/command/config/testdata/config-list-with-quiet-option.golden
vendored
Normal file
2
cli/command/config/testdata/config-list-with-quiet-option.golden
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
ID-foo
|
||||
ID-bar
|
||||
3
cli/command/config/testdata/config-list.golden
vendored
Normal file
3
cli/command/config/testdata/config-list.golden
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
ID NAME CREATED UPDATED
|
||||
ID-foo foo 2 hours ago About an hour ago
|
||||
ID-bar bar 2 hours ago About an hour ago
|
||||
Reference in New Issue
Block a user