wiz
A module for Wiz scanning
Installation
dagger install github.com/jpadams/wiz@0cbaf8b72494919f3ff4e70846d740b3fe81029e
Entrypoint
Return Type
Wiz
Example
dagger -m github.com/jpadams/wiz@0cbaf8b72494919f3ff4e70846d740b3fe81029e call \
func (m *myModule) example() *Wiz {
return dag.
Wiz()
}
@function
def example() -> dag.Wiz:
return (
dag.wiz()
)
@func()
example(): Wiz {
return dag
.wiz()
}
Types
Wiz 🔗
base() 🔗
Returns a Container with the latest Wiz CLI
Return Type
Container !
Example
dagger -m github.com/jpadams/wiz@0cbaf8b72494919f3ff4e70846d740b3fe81029e call \
base
func (m *myModule) example() *Container {
return dag.
Wiz().
Base()
}
@function
def example() -> dagger.Container:
return (
dag.wiz()
.base()
)
@func()
example(): Container {
return dag
.wiz()
.base()
}
authd() 🔗
Returns a base Container authenticated with Wiz
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
wizId | Secret ! | - | No description provided |
wizSecret | Secret ! | - | No description provided |
Example
dagger -m github.com/jpadams/wiz@0cbaf8b72494919f3ff4e70846d740b3fe81029e call \
authd --wiz-id env:MYSECRET --wiz-secret env:MYSECRET
func (m *myModule) example(wizId *Secret, wizSecret *Secret) *Container {
return dag.
Wiz().
Authd(wizId, wizSecret)
}
@function
def example(wiz_id: dagger.Secret, wiz_secret: dagger.Secret) -> dagger.Container:
return (
dag.wiz()
.authd(wiz_id, wiz_secret)
)
@func()
example(wizId: Secret, wizSecret: Secret): Container {
return dag
.wiz()
.authd(wizId, wizSecret)
}
scanDirectory() 🔗
Scan a directory with Wiz CLI
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | No description provided |
wizId | Secret ! | - | No description provided |
wizSecret | Secret ! | - | No description provided |
Example
dagger -m github.com/jpadams/wiz@0cbaf8b72494919f3ff4e70846d740b3fe81029e call \
scan-directory --dir DIR_PATH --wiz-id env:MYSECRET --wiz-secret env:MYSECRET
func (m *myModule) example(ctx context.Context, dir *Directory, wizId *Secret, wizSecret *Secret) string {
return dag.
Wiz().
ScanDirectory(ctx, dir, wizId, wizSecret)
}
@function
async def example(dir: dagger.Directory, wiz_id: dagger.Secret, wiz_secret: dagger.Secret) -> str:
return await (
dag.wiz()
.scan_directory(dir, wiz_id, wiz_secret)
)
@func()
async example(dir: Directory, wizId: Secret, wizSecret: Secret): Promise<string> {
return dag
.wiz()
.scanDirectory(dir, wizId, wizSecret)
}
scanContainer() 🔗
Scan a Dagger Container with Wiz CLI
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
wizId | Secret ! | - | No description provided |
wizSecret | Secret ! | - | No description provided |
Example
dagger -m github.com/jpadams/wiz@0cbaf8b72494919f3ff4e70846d740b3fe81029e call \
scan-container --container IMAGE:TAG --wiz-id env:MYSECRET --wiz-secret env:MYSECRET
func (m *myModule) example(ctx context.Context, container *Container, wizId *Secret, wizSecret *Secret) string {
return dag.
Wiz().
ScanContainer(ctx, container, wizId, wizSecret)
}
@function
async def example(container: dagger.Container, wiz_id: dagger.Secret, wiz_secret: dagger.Secret) -> str:
return await (
dag.wiz()
.scan_container(container, wiz_id, wiz_secret)
)
@func()
async example(container: Container, wizId: Secret, wizSecret: Secret): Promise<string> {
return dag
.wiz()
.scanContainer(container, wizId, wizSecret)
}