wiz
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/jycamier/daggerverse/wiz@075611fcf911ea9400140e112e44a28f854478e9
Entrypoint
Return Type
Wiz !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
wizClientId | Secret ! | - | Wiz client ID |
wizClientSecret | Secret ! | - | Wiz client secret |
container | Container | - | default container to use Wiz module |
version | String | - | default version of the container to use |
Example
dagger -m github.com/jycamier/daggerverse/wiz@075611fcf911ea9400140e112e44a28f854478e9 call \
--wiz-client-id env:MYSECRET --wiz-client-secret env:MYSECRET
func (m *myModule) example(wizClientId *Secret, wizClientSecret *Secret) *Wiz {
return dag.
Wiz(wizClientId, wizClientSecret)
}
@function
def example(wiz_client_id: dagger.Secret, wiz_client_secret: dagger.Secret, ) -> dag.Wiz:
return (
dag.wiz(wiz_client_id, wiz_client_secret)
)
@func()
example(wizClientId: Secret, wizClientSecret: Secret, ): Wiz {
return dag
.wiz(wizClientId, wizClientSecret)
}
Types
Wiz 🔗
container() 🔗
Return Type
Container !
Example
dagger -m github.com/jycamier/daggerverse/wiz@075611fcf911ea9400140e112e44a28f854478e9 call \
--wiz-client-id env:MYSECRET --wiz-client-secret env:MYSECRET container
func (m *myModule) example(wizClientId *Secret, wizClientSecret *Secret) *Container {
return dag.
Wiz(wizClientId, wizClientSecret).
Container()
}
@function
def example(wiz_client_id: dagger.Secret, wiz_client_secret: dagger.Secret, ) -> dagger.Container:
return (
dag.wiz(wiz_client_id, wiz_client_secret)
.container()
)
@func()
example(wizClientId: Secret, wizClientSecret: Secret, ): Container {
return dag
.wiz(wizClientId, wizClientSecret)
.container()
}
dockerScan() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
Example
dagger -m github.com/jycamier/daggerverse/wiz@075611fcf911ea9400140e112e44a28f854478e9 call \
--wiz-client-id env:MYSECRET --wiz-client-secret env:MYSECRET docker-scan --container IMAGE:TAG
func (m *myModule) example(ctx context.Context, wizClientId *Secret, wizClientSecret *Secret, container *Container) string {
return dag.
Wiz(wizClientId, wizClientSecret).
DockerScan(ctx, container)
}
@function
async def example(wiz_client_id: dagger.Secret, wiz_client_secret: dagger.Secret, container: dagger.Container) -> str:
return await (
dag.wiz(wiz_client_id, wiz_client_secret)
.docker_scan(container)
)
@func()
async example(wizClientId: Secret, wizClientSecret: Secret, container: Container): Promise<string> {
return dag
.wiz(wizClientId, wizClientSecret)
.dockerScan(container)
}