Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-hoailona
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-hoailona
Commits
ff301c26
Commit
ff301c26
authored
Nov 30, 2017
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vmodtool now filters out the PRIV_* args
parent
ca0c809d
Pipeline
#405
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
README.rst
README.rst
+7
-8
No files found.
README.rst
View file @
ff301c26
...
...
@@ -229,7 +229,7 @@ by that call.
CONTENTS
========
* policy(
PRIV_TASK,
ENUM {OPEN,DENY,TOKEN}, DURATION, STRING, BLOB, INT)
* policy(ENUM {OPEN,DENY,TOKEN}, DURATION, STRING, BLOB, INT)
* hosts()
* STRING version()
...
...
@@ -240,7 +240,7 @@ policy
::
new OBJ = policy(
PRIV_TASK,
ENUM {OPEN,DENY,TOKEN} type, DURATION ttl=0, STRING description=0, BLOB secret=0, INT start_offset=0)
new OBJ = policy(ENUM {OPEN,DENY,TOKEN} type, DURATION ttl=0, STRING description=0, BLOB secret=0, INT start_offset=0)
Create a policy. The ``type`` enum is required, to classify the policy
as ``OPEN``, ``DENY`` or ``TOKEN``.
...
...
@@ -316,7 +316,7 @@ hosts.add
::
VOID hosts.add(
PRIV_TASK,
STRING host, STRING policy, STRING path=0, STRING description=0)
VOID hosts.add(STRING host, STRING policy, STRING path=0, STRING description=0)
Associate ``policy`` with the ``host``, optionally restricted to the
path pattern described by ``path``. The ``host`` and ``policy``
...
...
@@ -456,7 +456,7 @@ hosts.policy
::
INT hosts.policy(
PRIV_TASK,
STRING host=0, STRING path=0)
INT hosts.policy(STRING host=0, STRING path=0)
Determine the policy type that holds for ``host`` and ``path``. The
return values are:
...
...
@@ -527,7 +527,7 @@ hosts.token
::
STRING hosts.token(
PRIV_TASK,
STRING acl=0, DURATION ttl=0, STRING data=0)
STRING hosts.token(STRING acl=0, DURATION ttl=0, STRING data=0)
If the previous invocation of ``.policy()`` determined policy type
``TOKEN`` (return value 2 from ``.policy()``), then return the
...
...
@@ -584,7 +584,7 @@ hosts.secret
::
BLOB hosts.secret(
PRIV_TASK
)
BLOB hosts.secret()
Return the shared secret stored for the policy determined by the
previous invocation of ``.policy()``. Returns NULL if no such shared
...
...
@@ -631,7 +631,7 @@ hosts.explain
::
STRING hosts.explain(
PRIV_TASK
)
STRING hosts.explain()
Returns a string describing the policy that was determined for a host
and path by the most recent invocation of ``.policy()`` in the current
...
...
@@ -758,4 +758,3 @@ COPYRIGHT
Author: Geoffrey Simmons <geoffrey.simmons@uplex.de>
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