-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 314-update-to-micronaut-41
- Loading branch information
Showing
8 changed files
with
62 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
import "./ContainerStatus.tsp"; | ||
|
||
@doc("Response payload for container token creation.") | ||
model ContainerResponse { | ||
buildId: string; | ||
cached: boolean; | ||
containerImage: string; | ||
containerToken: string; | ||
expiration: string; | ||
freeze?: boolean; | ||
freeze: boolean; | ||
mirror: boolean; | ||
requestId: string; | ||
scanId: string; | ||
status: ContainerStatus; | ||
targetImage: string; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
enum ContainerStatus { | ||
PENDING, | ||
BUILDING, | ||
SCANNING, | ||
DONE | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import "./ContainerStatus.tsp"; | ||
|
||
@doc("Response payload for container status.") | ||
model ContainerStatusResponse { | ||
id: string; | ||
status: ContainerStatus; | ||
buildId: string; | ||
mirrorId: string; | ||
scanId: string; | ||
vulnerabilities: Record<vulnerability>; | ||
succeeded: boolean; | ||
reason: string; | ||
detailsUri: string; | ||
creationTime: string; | ||
duration: string; | ||
} | ||
|
||
model vulnerability { | ||
severity: string; | ||
count: int32 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
enum ScanLevel { | ||
LOW, | ||
MEDIUM, | ||
HIGH, | ||
CRITICAL | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
enum ScanMode{ | ||
none, | ||
async, | ||
required | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters