mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-12-24 12:57:53 +08:00
Added docs folder at the project root. Added build_docs and publish_d… (#105)
Docs sub-directory added to the project.
This commit is contained in:
47
docs/docs/commands/acl/acl_list.mdx
Normal file
47
docs/docs/commands/acl/acl_list.mdx
Normal file
@@ -0,0 +1,47 @@
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# ACL LIST
|
||||
|
||||
### Syntax
|
||||
```
|
||||
ACL LIST
|
||||
```
|
||||
|
||||
### Module
|
||||
<span className="acl-category">acl</span>
|
||||
|
||||
### Categories
|
||||
<span className="acl-category">admin</span>
|
||||
<span className="acl-category">dangerous</span>
|
||||
<span className="acl-category">slow</span>
|
||||
|
||||
### Description
|
||||
Dumps effective acl rules in ACL DSL format.
|
||||
|
||||
### Examples
|
||||
|
||||
<Tabs
|
||||
defaultValue="go"
|
||||
values={[
|
||||
{ label: 'Go (Embedded)', value: 'go', },
|
||||
{ label: 'CLI', value: 'cli', },
|
||||
]}
|
||||
>
|
||||
<TabItem value="go">
|
||||
List ACL rules:
|
||||
```go
|
||||
vault, err := echovault.NewEchoVault()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
rules, err := vault.ACLList()
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="cli">
|
||||
List ACL rules:
|
||||
```
|
||||
> ACL LIST
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
Reference in New Issue
Block a user