wiz
A module for Wiz scanning
Installation
dagger install github.com/jpadams/wiz@147695ced1faf479518bda6a7548d5fa3c99aca1
Entrypoint
Return Type
Wiz
Example
dagger -m github.com/jpadams/wiz@147695ced1faf479518bda6a7548d5fa3c99aca1 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@147695ced1faf479518bda6a7548d5fa3c99aca1 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@147695ced1faf479518bda6a7548d5fa3c99aca1 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@147695ced1faf479518bda6a7548d5fa3c99aca1 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@147695ced1faf479518bda6a7548d5fa3c99aca1 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)
}