Skip to content

Commit f79a495

Browse files
authored
chore: add LLM related actions (#1287)
1 parent eb7bb31 commit f79a495

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/rbac/role.rs

+15-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ pub enum Action {
4848
ListRole,
4949
GetAbout,
5050
QueryLLM,
51+
AddLLM,
52+
DeleteLLM,
53+
GetLLM,
54+
ListLLM,
5155
ListCluster,
5256
ListClusterMetrics,
5357
DeleteNode,
@@ -115,6 +119,10 @@ impl RoleBuilder {
115119
| Action::DeleteUser
116120
| Action::GetAbout
117121
| Action::QueryLLM
122+
| Action::AddLLM
123+
| Action::DeleteLLM
124+
| Action::GetLLM
125+
| Action::ListLLM
118126
| Action::PutRole
119127
| Action::GetRole
120128
| Action::DeleteRole
@@ -234,6 +242,8 @@ pub mod model {
234242
Action::GetAlert,
235243
Action::DeleteAlert,
236244
Action::QueryLLM,
245+
Action::GetLLM,
246+
Action::ListLLM,
237247
Action::CreateFilter,
238248
Action::ListFilter,
239249
Action::GetFilter,
@@ -276,6 +286,8 @@ pub mod model {
276286
Action::DeleteDashboard,
277287
Action::Ingest,
278288
Action::QueryLLM,
289+
Action::GetLLM,
290+
Action::ListLLM,
279291
Action::GetStreamInfo,
280292
Action::GetFilter,
281293
Action::ListFilter,
@@ -298,6 +310,8 @@ pub mod model {
298310
Action::GetSchema,
299311
Action::GetStats,
300312
Action::QueryLLM,
313+
Action::GetLLM,
314+
Action::ListLLM,
301315
Action::ListFilter,
302316
Action::GetFilter,
303317
Action::CreateFilter,
@@ -326,4 +340,4 @@ pub mod model {
326340
tag: None,
327341
}
328342
}
329-
}
343+
}

0 commit comments

Comments
 (0)