Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
aadf302e
Commit
aadf302e
authored
Jun 02, 2014
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document the storage.<name>.* VCL variables.
Fixes: #1514
parent
51a5d553
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
generate.py
lib/libvcc/generate.py
+23
-3
No files found.
lib/libvcc/generate.py
View file @
aadf302e
...
...
@@ -596,9 +596,18 @@ aliases = [
]
stv_variables
=
(
(
'free_space'
,
'BYTES'
,
"0."
),
(
'used_space'
,
'BYTES'
,
"0."
),
(
'happy'
,
'BOOL'
,
"0"
),
(
'free_space'
,
'BYTES'
,
"0."
,
'storage.<name>.free_space'
,
"""
Free space available in the named stevedore. Only available for
the malloc stevedore.
"""
),
(
'used_space'
,
'BYTES'
,
"0."
,
'storage.<name>.used_space'
,
"""
Used space in the named stevedore. Only available for the malloc
stevedore.
"""
),
(
'happy'
,
'BOOL'
,
"0"
,
'storage.<name>.happy'
,
"""
Health status for the named stevedore. Not available in any of the
current stevedores.
"""
),
)
#######################################################################
...
...
@@ -1175,4 +1184,15 @@ for i in l:
for
j
in
i
[
4
]
.
split
(
"
\n
"
):
fp_vclvar
.
write
(
"
\t
%
s
\n
"
%
j
.
strip
())
hdr
=
"storage"
fp_vclvar
.
write
(
"
\n
"
+
hdr
+
"
\n
"
);
fp_vclvar
.
write
(
"~"
*
len
(
hdr
)
+
"
\n
"
);
for
i
in
stv_variables
:
fp_vclvar
.
write
(
"
\n
"
+
i
[
3
]
+
"
\n\n
"
)
fp_vclvar
.
write
(
"
\t
Type: "
+
i
[
1
]
+
"
\n\n
"
)
fp_vclvar
.
write
(
"
\t
Readable from: client, backend
\n\n
"
)
for
j
in
i
[
4
]
.
split
(
"
\n
"
):
fp_vclvar
.
write
(
"
\t
%
s
\n
"
%
j
.
strip
())
fp_vclvar
.
close
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment