Coda Distributed File System
Functions | Variables
cli.sync_acls Namespace Reference

Functions

Path is_directory (str path_str)
 
list[AclEntrycollect_acls (Path root, bool cross_volume=False)
 
def update_acls (Path dest, list[AclEntry] acls, bool dry_run=True)
 
int main ()
 

Variables

 parser = argparse.ArgumentParser()
 
 action
 
 help
 
 metavar
 
 type
 
 default
 
dictionary CODA_ACLS_SCHEMA
 

Function Documentation

◆ collect_acls()

list[AclEntry] cli.sync_acls.collect_acls ( Path  root,
bool   cross_volume = False 
)
Walk directory tree in Coda, collecting ACLs

◆ is_directory()

Path cli.sync_acls.is_directory ( str  path_str)
To make sure the destination argument is a directory

◆ main()

int cli.sync_acls.main ( void  )
Copy acls from a source yaml file, or directories in Coda, to
destination directories in Coda or write to a new yaml file.

◆ update_acls()

def cli.sync_acls.update_acls ( Path  dest,
list[AclEntry acls,
bool   dry_run = True 
)
Update Coda ACLs under 'dest'

Variable Documentation

◆ action

cli.sync_acls.action

◆ CODA_ACLS_SCHEMA

dictionary cli.sync_acls.CODA_ACLS_SCHEMA
Initial value:
1= {
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "$id": "http://coda.cs.cmu.edu/schemas/coda_acls.json",
4 "$defs": {
5 "fspath": {"type": "string"},
6 "user_or_group": {"type": "string"},
7 "acl_rights": {"type": "string", "pattern": "^-?r?l?i?d?w?k?a?$"},
8 "acl_entry": {
9 "type": "object",
10 "properties": {
11 "name": {"$ref": "#/$defs/user_or_group"},
12 "rights": {"$ref": "#/$defs/acl_rights"},
13 },
14 "required": ["name", "rights"],
15 },
16 "acl": {
17 "type": "object",
18 "properties": {
19 "path": {"$ref": "#/$defs/fspath"},
20 "acl": {"type": "array", "items": {"$ref": "#/$defs/acl_entry"}},
21 },
22 "required": ["path", "acl"],
23 },
24 },
25 "type": "object",
26 "properties": {"acls": {"type": "array", "items": {"$ref": "#/$defs/acl"}}},
27 "required": ["acls"],
28}

◆ default

cli.sync_acls.default

◆ help

cli.sync_acls.help

◆ metavar

cli.sync_acls.metavar

◆ parser

cli.sync_acls.parser = argparse.ArgumentParser()

◆ type

cli.sync_acls.type