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@d87292f99caa506aa4860d5794377dcbfc18d103
Entrypoint
Return Type
CentralDevsecopsPipeline
Example
dagger -m github.com/munichbughunter/central-devsecops-pipeline@d87292f99caa506aa4860d5794377dcbfc18d103 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@d87292f99caa506aa4860d5794377dcbfc18d103 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)
}
runSast() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
Example
dagger -m github.com/munichbughunter/central-devsecops-pipeline@d87292f99caa506aa4860d5794377dcbfc18d103 call \
run-sast --src DIR_PATH
func (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)
}