mirror of
https://github.com/moghtech/komodo.git
synced 2026-05-05 07:19:31 -05:00
add method to get availabel aws ecr labels
This commit is contained in:
@@ -39,6 +39,7 @@ mod variable;
|
||||
enum ReadRequest {
|
||||
GetVersion(GetVersion),
|
||||
GetCoreInfo(GetCoreInfo),
|
||||
GetAvailableAwsEcrLabels(GetAvailableAwsEcrLabels),
|
||||
|
||||
// ==== USER ====
|
||||
ListUsers(ListUsers),
|
||||
@@ -231,3 +232,13 @@ impl Resolve<GetCoreInfo, User> for State {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl Resolve<GetAvailableAwsEcrLabels, User> for State {
|
||||
async fn resolve(
|
||||
&self,
|
||||
GetAvailableAwsEcrLabels {}: GetAvailableAwsEcrLabels,
|
||||
_: User,
|
||||
) -> anyhow::Result<GetAvailableAwsEcrLabelsResponse> {
|
||||
Ok(core_config().aws_ecr_registries.keys().cloned().collect())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user