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@ef19f987f4f66167921a70a85d7d5b127e9391d8
Entrypoint
Return Type
CentralDevsecopsPipeline
Example
dagger -m github.com/munichbughunter/central-devsecops-pipeline@ef19f987f4f66167921a70a85d7d5b127e9391d8 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@ef19f987f4f66167921a70a85d7d5b127e9391d8 call \
build-python --src DIR_PATH --python-version string
func (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@ef19f987f4f66167921a70a85d7d5b127e9391d8 call \
build-default-python-image-and-publish --image-tag string --github-username string --github-token env:MYSECRET
func (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)
}
scanImage() 🔗
ScanContainerImage scannt ein Container Image auf Vulnerabilities
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
imageRef | String ! | - | No description provided |
githubUsername | String ! | - | No description provided |
githubToken | Secret ! | - | No description provided |
Example
dagger -m github.com/munichbughunter/central-devsecops-pipeline@ef19f987f4f66167921a70a85d7d5b127e9391d8 call \
scan-image --image-ref string --github-username string --github-token env:MYSECRET
func (m *MyModule) Example(imageRef string, githubUsername string, githubToken *dagger.Secret) *dagger.File {
return dag.
CentralDevsecopsPipeline().
ScanImage(imageRef, githubUsername, githubToken)
}
@function
def example(image_ref: str, github_username: str, github_token: dagger.Secret) -> dagger.File:
return (
dag.central_devsecops_pipeline()
.scan_image(image_ref, github_username, github_token)
)
@func()
example(imageRef: string, githubUsername: string, githubToken: Secret): File {
return dag
.centralDevsecopsPipeline()
.scanImage(imageRef, githubUsername, githubToken)
}