mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 01:30:33 +00:00
* opa-feature * Update crates/policy/src/policy/opa.rs * add the content related to 'Copyright' --------- Co-authored-by: root <root@debian.localdomain> Co-authored-by: houseme <housemecn@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
106 lines
3.3 KiB
JSON
106 lines
3.3 KiB
JSON
{
|
|
// 使用 IntelliSense 了解相关属性。
|
|
// 悬停以查看现有属性的描述。
|
|
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "Debug executable 'rustfs'",
|
|
"cargo": {
|
|
"args": [
|
|
"build",
|
|
"--bin=rustfs",
|
|
"--package=rustfs"
|
|
],
|
|
"filter": {
|
|
"name": "rustfs",
|
|
"kind": "bin"
|
|
}
|
|
},
|
|
"env": {
|
|
"RUST_LOG": "rustfs=debug,ecstore=info,s3s=debug,iam=debug",
|
|
"RUSTFS_SKIP_BACKGROUND_TASK": "on",
|
|
// "RUSTFS_POLICY_PLUGIN_URL":"http://localhost:8181/v1/data/rustfs/authz/allow",
|
|
// "RUSTFS_POLICY_PLUGIN_AUTH_TOKEN":"your-opa-token"
|
|
},
|
|
"args": [
|
|
"--access-key",
|
|
"rustfsadmin",
|
|
"--secret-key",
|
|
"rustfsadmin",
|
|
"--address",
|
|
"0.0.0.0:9010",
|
|
"--server-domains",
|
|
"127.0.0.1:9010",
|
|
"./target/volume/test{1...4}"
|
|
],
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "Debug unit tests in executable 'rustfs'",
|
|
"cargo": {
|
|
"args": [
|
|
"test",
|
|
"--no-run",
|
|
"--bin=rustfs",
|
|
"--package=rustfs"
|
|
],
|
|
"filter": {
|
|
"name": "rustfs",
|
|
"kind": "bin"
|
|
}
|
|
},
|
|
"args": [],
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "Debug unit tests in library 'ecstore'",
|
|
"cargo": {
|
|
"args": [
|
|
"test",
|
|
"--no-run",
|
|
"--lib",
|
|
"--package=ecstore"
|
|
],
|
|
"filter": {
|
|
"name": "ecstore",
|
|
"kind": "lib"
|
|
}
|
|
},
|
|
"args": [],
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
{
|
|
"name": "Debug executable target/debug/rustfs",
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/target/debug/rustfs",
|
|
"args": [],
|
|
"cwd": "${workspaceFolder}",
|
|
//"stopAtEntry": false,
|
|
//"preLaunchTask": "cargo build",
|
|
"sourceLanguages": [
|
|
"rust"
|
|
],
|
|
},
|
|
{
|
|
"name": "Debug executable target/debug/test",
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/target/debug/deps/lifecycle_integration_test-5eb7590b8f3bea55",
|
|
"args": [],
|
|
"cwd": "${workspaceFolder}",
|
|
//"stopAtEntry": false,
|
|
//"preLaunchTask": "cargo build",
|
|
"sourceLanguages": [
|
|
"rust"
|
|
],
|
|
}
|
|
]
|
|
} |