-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: munishchouhan <[email protected]>
- Loading branch information
1 parent
a447d8f
commit b20802d
Showing
20 changed files
with
228 additions
and
23 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,6 +1,11 @@ | ||
@doc("Options for Conda environments.") | ||
@example(#{ | ||
basePackages: "python=3.8", | ||
commands: #["pip install bwa", "pip install salmon"], | ||
mambaImage: "mambaorg/micromamba:0.15.3" | ||
}) | ||
model CondaOpts { | ||
basePackages: string; | ||
commands: string[]; | ||
mambaImage: string; | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
typespec/models/Packages.tsp → typespec/models/CondaPackages.tsp
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,10 @@ | ||
import "./CondaOpts.tsp"; | ||
|
||
@doc("Package configurations for container builds.") | ||
model Packages { | ||
model CondaPackages { | ||
channels: string[]; | ||
condaOpts?: CondaOpts; | ||
entries: string[]; | ||
environment: string; | ||
environment?: string; | ||
type: "CONDA"; | ||
} |
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
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,7 +1,13 @@ | ||
@doc("Request payload for inspecting a container.") | ||
@example(#{ | ||
containerImage: "docker.io/alpine:latest", | ||
towerAccessToken: "1234567890abcdef", | ||
towerEndpoint: "https://api.cloud.seqera.io", | ||
towerWorkspaceId: 1234567890 | ||
}) | ||
model ContainerInspectRequest { | ||
containerImage: string; | ||
towerAccessToken: string; | ||
towerEndpoint: string; | ||
towerWorkspaceId: int64; | ||
} | ||
} |
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
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
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,31 +1,40 @@ | ||
import "./ContainerConfig.tsp"; | ||
import "./Packages.tsp"; | ||
import "./CondaPackages.tsp"; | ||
import "./ScanMode.tsp"; | ||
import "./ScanLevel.tsp"; | ||
|
||
@doc("Request payload for creating a container token.") | ||
@example(#{ | ||
packages:#{ | ||
type: "CONDA", | ||
entries: #["salmon", "bwa"], | ||
channels: #["conda-forge", "bioconda"] | ||
}, | ||
format: "docker", | ||
containerPlatform:"linux/amd64" | ||
}) | ||
model ContainerRequest { | ||
buildContext: ContainerLayer; | ||
buildContext?: ContainerLayer; | ||
buildRepository?: string; | ||
cacheRepository?: string; | ||
containerConfig: ContainerConfig; | ||
containerConfig?: ContainerConfig; | ||
containerFile?: string; | ||
containerImage: string; | ||
containerIncludes: string[]; | ||
containerImage?: string; | ||
containerIncludes?: string[]; | ||
containerPlatform: string; | ||
dryRun: boolean; | ||
dryRun?: boolean; | ||
fingerprint?: string; | ||
format: "sif" | "docker"; | ||
freeze?: boolean; | ||
nameStrategy?: "none" | "tagPrefix" | "imageSuffix"; | ||
mirror?: boolean; | ||
packages?: Packages; | ||
packages?: CondaPackages; | ||
scanMode?: ScanMode; | ||
scanLevels?: ScanLevel[]; | ||
timestamp: string; | ||
timestamp?: string; | ||
towerAccessToken?: string; | ||
towerEndpoint?: string; | ||
towerRefreshToken?: string; | ||
towerWorkspaceId?: int32; | ||
workflowId: string; | ||
workflowId?: 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
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
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,6 +1,11 @@ | ||
@doc("Manifest layer details of a container.") | ||
@example(#{ | ||
digest: "sha256:6c084f2e43f86a78", | ||
mediaType: "application/vnd.docker.container.image.v1+json", | ||
size: 1234 | ||
}) | ||
model ManifestLayer { | ||
digest: string; | ||
mediaType: string; | ||
size: int64; | ||
} | ||
} |
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,4 +1,9 @@ | ||
@doc("Wave USer details") | ||
@example(#{ | ||
id: 1, | ||
userName: "test", | ||
email: "[email protected]" | ||
}) | ||
model User { | ||
id: int64; | ||
userName: 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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
@doc("request payload of validate credentials request") | ||
@example(#{ | ||
password: "password", | ||
registry: "docker.io/wave", | ||
userName: "username" | ||
}) | ||
model ValidateRegistryCredsRequest { | ||
password: string; | ||
registry: string; | ||
userName: string; | ||
} | ||
|
Oops, something went wrong.