Revision 181, 1.3 kB
(checked in by broder, 16 years ago)
|
Start on "PyLocker" by defining a class to represent options passed to
attach/detach.
|
Line | |
---|
1 |
class Options(object): |
---|
2 |
__slots__ = ['verbosity', 'action', 'access', 'auth', 'zephyr'] |
---|
3 |
|
---|
4 |
verbosity = 'verbose' |
---|
5 |
""" |
---|
6 |
How much to print |
---|
7 |
|
---|
8 |
Valid values: |
---|
9 |
- verbose |
---|
10 |
- quiet (only print errors) |
---|
11 |
- path (only print the source path of the filesystem) |
---|
12 |
""" |
---|
13 |
action = True |
---|
14 |
""" |
---|
15 |
Whether or not to actually do something. If this is False, then |
---|
16 |
information will be printed, but nothing will actually happen |
---|
17 |
""" |
---|
18 |
access = None |
---|
19 |
""" |
---|
20 |
This is meaningless for AFS filesystems, but we'll track it |
---|
21 |
anyway, just in case. |
---|
22 |
|
---|
23 |
Values: |
---|
24 |
|
---|
25 |
- None: Use the access value in Hesiod, or if none is provided, |
---|
26 |
'w' |
---|
27 |
|
---|
28 |
- 'r': Read only |
---|
29 |
|
---|
30 |
- 'w': Read/write |
---|
31 |
""" |
---|
32 |
auth = True |
---|
33 |
""" |
---|
34 |
Whether and how to authenticate (or for detach, deauthenticate) |
---|
35 |
against the filesystem |
---|
36 |
|
---|
37 |
Values: |
---|
38 |
|
---|
39 |
- True: always auth or deauth regardless of whether the |
---|
40 |
filesystem is currently attached or not (default) |
---|
41 |
|
---|
42 |
- False: auth if the filesystem has not yet been attached, and |
---|
43 |
deauth if the filesystem has not yet been detached |
---|
44 |
|
---|
45 |
- None: never authenticate or deauthenticate |
---|
46 |
""" |
---|
47 |
zephyr = True |
---|
48 |
""" |
---|
49 |
Whether or not to update Zephyr subscriptions with fileserver |
---|
50 |
information for the specified filesystem. |
---|
51 |
""" |
---|