conftest
This module provides a set of functions to test your configuration files using Conftest and to create a development environment with Conftest installed.
Installation
dagger install github.com/tsirysndr/daggerverse/conftest@e8bed26dfefaaf4ef3d00958965575131f34c69c
Entrypoint
Return Type
Conftest
Example
dagger -m github.com/tsirysndr/daggerverse/conftest@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
func (m *myModule) example() *Conftest {
return dag.
Conftest()
}
@function
def example() -> dag.Conftest:
return (
dag.conftest()
)
@func()
example(): Conftest {
return dag
.conftest()
}
Types
Conftest 🔗
test() 🔗
Tests your configuration files using Conftest.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
files | String ! | - | No description provided |
policy | String | "policy" | No description provided |
output | String | "stdout" | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/conftest@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
test --src DIR_PATH --files string
func (m *myModule) example(ctx context.Context, src *Directory, files string) string {
return dag.
Conftest().
Test(ctx, src, files)
}
@function
async def example(src: dagger.Directory, files: str) -> str:
return await (
dag.conftest()
.test(src, files)
)
@func()
async example(src: Directory, files: string): Promise<string> {
return dag
.conftest()
.test(src, files)
}
dev() 🔗
Returns a container with conftest installed.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/conftest@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
dev
func (m *myModule) example() *Container {
return dag.
Conftest().
Dev()
}
@function
def example() -> dagger.Container:
return (
dag.conftest()
.dev()
)
@func()
example(): Container {
return dag
.conftest()
.dev()
}