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@4d2ab2dc5f99d2b75d1153d7fb219a092ff918d2
Entrypoint
Return Type
Conftest
Example
dagger -m github.com/tsirysndr/daggerverse/conftest@4d2ab2dc5f99d2b75d1153d7fb219a092ff918d2 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 |
outputFormat | String | "stdout" | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/conftest@4d2ab2dc5f99d2b75d1153d7fb219a092ff918d2 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@4d2ab2dc5f99d2b75d1153d7fb219a092ff918d2 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()
}