conftest
No long description provided.
Installation
dagger install github.com/tsirysndr/daggerverse/conftest@d1da5d9886f4fae875c48aa313fc72d50bc9e65f
Entrypoint
Return Type
Conftest
Example
dagger -m github.com/tsirysndr/daggerverse/conftest@d1da5d9886f4fae875c48aa313fc72d50bc9e65f 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 | - | No description provided |
output | String | - | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/conftest@d1da5d9886f4fae875c48aa313fc72d50bc9e65f 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@d1da5d9886f4fae875c48aa313fc72d50bc9e65f 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()
}