Merge branch '2.0_beta1' of https://github.com/YunoHost/moulinette into 2.0_beta1

This commit is contained in:
Kloadut 2012-10-14 21:49:03 +02:00
commit 25dcad7cee

142
README.md
View file

@ -1,127 +1,79 @@
Under redaction
===============
YunoHost CLI YunoHost CLI
------------ ============
Specifications
--------------
### User ### User
yunohost user list --fields=fields,.. --filter=filter --limit=limit --offset=offset yunohost user list [-h] [--fields FIELDS [FIELDS ...]] [-o OFFSET]
yunohost user add [fields=values...] [-f FILTER] [-l LIMIT]
yunohost user delete [users...] yunohost user create [-h] [-u USERNAME] [-l LASTNAME] [-f FIRSTNAME]
yunohost user update [user] --changepassword [oldpwd] [newpwd] | --mailforward [add/remove] [mails...] | -- mailalias [add/remove] [mails...] | [fields=values...] [-p PASSWORD] [-m MAIL]
yunohost user info [user] yunohost user delete [-h] users [users ...]
yunohost user update [-h] [-remove-mailalias MAIL [MAIL ...]]
[-add-mailalias MAIL [MAIL ...]] [-f FIRSTNAME]
[-m MAIL] [-l LASTNAME]
[--remove-mailforward MAIL [MAIL ...]]
[--add-mailforward MAIL [MAIL ...]]
[-cp PASSWORD]
user
yunohost user info [-h] [-m MAIL] [-cn FULLNAME] [user]
### Domain ### Domain
yunohost domain list --filter=filter --limit=limit --offset=offset yunohost domain list [-h] [-l LIMIT] [-o OFFSET] [-f FILTER]
yunohost domain add [domain] yunohost domain add [-h] domain
yunohost domain delete [domains...] yunohost domain remove [-h] domain [domain ...]
yunohost domain info [domain] yunohost domain info [-h] domain
yunohost domain renewcert [domain] yunohost domain renewcert [-h] domain
### App ### App
yunohost app list --fields=fields,.. --filter=filter --limit=limit --offset=offset yunohost app list [-h] [--fields FIELDS [FIELDS ...]] [-o OFFSET]
yunohost app install [apps...] --domain=domain --path=path --label=label --public --protected [-f FILTER] [-l LIMIT]
yunohost app remove [apps...] yunohost app install [-h] [-d DOMAIN] [--public] [-l LABEL] [-p PATH]
yunohost app upgrade [apps...] [--protected]
yunohost app info [app] app [app ...]
yunohost app addaccess [apps...] --everyone | --users=users,.. yunohost app remove [-h] app [app ...]
yunohost app removeaccess [apps...] --everyone | --users=users,.. yunohost app upgrade [-h] [app [app ...]]
yunohost app info [-h] app
yunohost app addaccess [-h] [-u USER [USER ...]] app [app ...]
yunohost app removeaccess [-h] [-u USER [USER ...]] app [app ...]
### Repo ### Repo
yunohost repo list --filter=filter --limit=limit --offset=offset yunohost repo list [-h] [-l LIMIT] [-o OFFSET] [-f FILTER]
yunohost repo add [url] --name=name yunohost repo add [-h] [-n NAME] url
yunohost repo remove [name/url] yunohost repo remove [-h] repo
yunohost repo update yunohost repo update [-h]
### Firewall ### Firewall
yunohost firewall list yunohost firewall list [-h]
yunohost firewall allow [port] [TCP/UDP/Both] [name] yunohost firewall allow [-h] {UDP,TCP,Both} port name
yunohost firewall disallow [name] yunohost firewall disallow [-h] name
### Monitoring ### Monitoring
yunohost monitor yunohost monitor info #FIX
### Other ### Tools
yunohost paste yunohost tools support #FIX
yunohost support
YunoHost REST API Contribute
----------------- ----------
Prefix: https://mydomain.org:6767 Only few functions are implemented yet. If you want to contribute, just pick one action above (i.e. 'yunohost app addaccess') and make the function (here 'app_addaccess()') into the right file (here 'yunohost_app.py').
/route
METHOD {params}
### User
/user/list
GET {fields, filter, limit, offset}
/user
GET {user, fields}
POST {fields, fieldsvalue}
DELETE {users}
PUT {user, fields}
/user/changepassword
PUT {user, oldpwd, newpwd}
/user/mailforward
POST {mails}
DELETE {mails}
/user/mailalias
POST {mails}
DELETE {mails}
### Domain
/domain/list
GET {filter, limit, offset}
/domain
GET {domain}
POST {domain}
DELETE {domains}
/domain/renewcert
PUT {domain}
### App
/app/ If you need LDAP connections or openned configuration files, take a look at the connection documentation in the 'parse_args' file.
YunoHost Web Views
------------------
### User
/user/list
/user/add
/user/show/<user>
/user/update/<user>
/user/changepassword/<user>
/user/mailforward/<user>
/user/mailalias/<user>