central-devsecops-pipeline
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/munichbughunter/central-devsecops-pipeline@v0.1.0Entrypoint
Return Type
CentralDevsecopsPipeline Example
dagger -m github.com/munichbughunter/central-devsecops-pipeline@7a6cec7ffc0a28f0730664c55e85f18f31cd8d8b call \
func (m *MyModule) Example() *dagger.CentralDevsecopsPipeline {
return dag.
CentralDevsecopsPipeline()
}@function
def example() -> dagger.CentralDevsecopsPipeline:
return (
dag.central_devsecops_pipeline()
)@func()
example(): CentralDevsecopsPipeline {
return dag
.centralDevsecopsPipeline()
}Types
CentralDevsecopsPipeline 🔗
buildPython() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
| pythonVersion | String ! | - | No description provided |
Example
dagger -m github.com/munichbughunter/central-devsecops-pipeline@7a6cec7ffc0a28f0730664c55e85f18f31cd8d8b call \
build-python --src DIR_PATH --python-version stringfunc (m *MyModule) Example(ctx context.Context, src *dagger.Directory, pythonVersion string) string {
return dag.
CentralDevsecopsPipeline().
BuildPython(ctx, src, pythonVersion)
}@function
async def example(src: dagger.Directory, python_version: str) -> str:
return await (
dag.central_devsecops_pipeline()
.build_python(src, python_version)
)@func()
async example(src: Directory, pythonVersion: string): Promise<string> {
return dag
.centralDevsecopsPipeline()
.buildPython(src, pythonVersion)
}buildDefaultPythonImageAndPublish() 🔗
Build and publish the default Python image via the central pipeline
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| imageTag | String ! | - | No description provided |
| githubUsername | String ! | - | No description provided |
| githubToken | Secret ! | - | No description provided |
Example
dagger -m github.com/munichbughunter/central-devsecops-pipeline@7a6cec7ffc0a28f0730664c55e85f18f31cd8d8b call \
build-default-python-image-and-publish --image-tag string --github-username string --github-token env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, imageTag string, githubUsername string, githubToken *dagger.Secret) string {
return dag.
CentralDevsecopsPipeline().
BuildDefaultPythonImageAndPublish(ctx, imageTag, githubUsername, githubToken)
}@function
async def example(image_tag: str, github_username: str, github_token: dagger.Secret) -> str:
return await (
dag.central_devsecops_pipeline()
.build_default_python_image_and_publish(image_tag, github_username, github_token)
)@func()
async example(imageTag: string, githubUsername: string, githubToken: Secret): Promise<string> {
return dag
.centralDevsecopsPipeline()
.buildDefaultPythonImageAndPublish(imageTag, githubUsername, githubToken)
}runSast() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
Example
dagger -m github.com/munichbughunter/central-devsecops-pipeline@7a6cec7ffc0a28f0730664c55e85f18f31cd8d8b call \
run-sast --src DIR_PATHfunc (m *MyModule) Example(ctx context.Context, src *dagger.Directory) string {
return dag.
CentralDevsecopsPipeline().
RunSast(ctx, src)
}@function
async def example(src: dagger.Directory) -> str:
return await (
dag.central_devsecops_pipeline()
.run_sast(src)
)@func()
async example(src: Directory): Promise<string> {
return dag
.centralDevsecopsPipeline()
.runSast(src)
}