Dagger
Search

grype

No long description provided.

Installation

dagger install github.com/lukemarsden/dagger-grype@v0.1.2

Entrypoint

Return Type
Grype
Example
func (m *myModule) example() *Grype  {
	return dag.
			Grype()
}
@function
def example() -> dag.Grype:
	return (
		dag.grype()
	)
@func()
example(): Grype {
	return dag
		.grype()
}

Types

Grype

testContainerImage()

example usage: “dagger call test-container-image –image alpine:latest”

Return Type
String !
Arguments
NameTypeDefault ValueDescription
imageString !-No description provided
Example
dagger -m github.com/lukemarsden/dagger-grype@50f3bb98585e75dca667dfa0cd2e5492dc706a44 call \
 test-container-image --image string
func (m *myModule) example(ctx context.Context, image string) string  {
	return dag.
			Grype().
			TestContainerImage(ctx, image)
}
@function
async def example(image: str) -> str:
	return await (
		dag.grype()
		.test_container_image(image)
	)
@func()
async example(image: string): Promise<string> {
	return dag
		.grype()
		.testContainerImage(image)
}

testContainer()

example usage: from dagger code where you have a Container object: TestContainer(container)

Return Type
String !
Arguments
NameTypeDefault ValueDescription
containerContainer !-No description provided
Example
dagger -m github.com/lukemarsden/dagger-grype@50f3bb98585e75dca667dfa0cd2e5492dc706a44 call \
 test-container --container IMAGE:TAG
func (m *myModule) example(ctx context.Context, container *Container) string  {
	return dag.
			Grype().
			TestContainer(ctx, container)
}
@function
async def example(container: dagger.Container) -> str:
	return await (
		dag.grype()
		.test_container(container)
	)
@func()
async example(container: Container): Promise<string> {
	return dag
		.grype()
		.testContainer(container)
}