dagger-skopeo
A module for DaggerSkopeo functions
Installation
dagger install github.com/EladAviczer/dagger-skopeo@e99480f1df96e7f812252eec43856ea3d6a9fef5
Entrypoint
Return Type
DaggerSkopeo
Example
dagger -m github.com/EladAviczer/dagger-skopeo@e99480f1df96e7f812252eec43856ea3d6a9fef5 call \
func (m *MyModule) Example() *dagger.DaggerSkopeo {
return dag.
DaggerSkopeo()
}
@function
def example() -> dagger.DaggerSkopeo:
return (
dag.dagger_skopeo()
)
@func()
example(): DaggerSkopeo {
return dag
.daggerSkopeo()
}
Types
DaggerSkopeo 🔗
base() 🔗
Return a Container from the official trivy image.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
trivyImageTag | String | "latest" | No description provided |
Example
dagger -m github.com/EladAviczer/dagger-skopeo@e99480f1df96e7f812252eec43856ea3d6a9fef5 call \
base
func (m *MyModule) Example() *dagger.Container {
return dag.
DaggerSkopeo().
Base()
}
@function
def example() -> dagger.Container:
return (
dag.dagger_skopeo()
.base()
)
@func()
example(): Container {
return dag
.daggerSkopeo()
.base()
}
scanImage() 🔗
Scan an image ref.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
imageRef | String ! | - | No description provided |
severity | String | "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL" | No description provided |
exitCode | Integer | 0 | No description provided |
format | String | "table" | No description provided |
trivyImageTag | String | "latest" | No description provided |
auth | Secret ! | - | No description provided |
Example
dagger -m github.com/EladAviczer/dagger-skopeo@e99480f1df96e7f812252eec43856ea3d6a9fef5 call \
scan-image --image-ref string --auth env:MYSECRET
func (m *MyModule) Example(ctx context.Context, imageRef string, auth *dagger.Secret) string {
return dag.
DaggerSkopeo().
ScanImage(ctx, imageRef, auth)
}
@function
async def example(image_ref: str, auth: dagger.Secret) -> str:
return await (
dag.dagger_skopeo()
.scan_image(image_ref, auth)
)
@func()
async example(imageRef: string, auth: Secret): Promise<string> {
return dag
.daggerSkopeo()
.scanImage(imageRef, auth)
}
mirrorOne() 🔗
MirrorOne mirrors a single image from a source registry to a destination registry using Skopeo.
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
awsCreds | File ! | - | No description provided |
awsRegion | String ! | - | No description provided |
srcRegistry | String ! | - | No description provided |
dstRegistry | String ! | - | No description provided |
repoTag | String ! | - | No description provided |
dstUser | String ! | - | No description provided |
dstPass | Secret ! | - | No description provided |
awsPull | Boolean ! | - | No description provided |
Example
dagger -m github.com/EladAviczer/dagger-skopeo@e99480f1df96e7f812252eec43856ea3d6a9fef5 call \
mirror-one --aws-creds file:path --aws-region string --src-registry string --dst-registry string --repo-tag string --dst-user string --dst-pass env:MYSECRET --aws-pull boolean
func (m *MyModule) Example(ctx context.Context, awsCreds *dagger.File, awsRegion string, srcRegistry string, dstRegistry string, repoTag string, dstUser string, dstPass *dagger.Secret, awsPull bool) {
return dag.
DaggerSkopeo().
MirrorOne(ctx, awsCreds, awsRegion, srcRegistry, dstRegistry, repoTag, dstUser, dstPass, awsPull)
}
@function
async def example(aws_creds: dagger.File, aws_region: str, src_registry: str, dst_registry: str, repo_tag: str, dst_user: str, dst_pass: dagger.Secret, aws_pull: bool) -> None:
return await (
dag.dagger_skopeo()
.mirror_one(aws_creds, aws_region, src_registry, dst_registry, repo_tag, dst_user, dst_pass, aws_pull)
)
@func()
async example(awsCreds: File, awsRegion: string, srcRegistry: string, dstRegistry: string, repoTag: string, dstUser: string, dstPass: Secret, awsPull: boolean): Promise<void> {
return dag
.daggerSkopeo()
.mirrorOne(awsCreds, awsRegion, srcRegistry, dstRegistry, repoTag, dstUser, dstPass, awsPull)
}
mirrorMany() 🔗
MirrorMany mirrors multiple images from a source registry to a destination registry using Skopeo.
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
awsCreds | File ! | - | No description provided |
awsRegion | String ! | - | No description provided |
srcRegistry | String ! | - | No description provided |
dstRegistry | String ! | - | No description provided |
repoTags | [String ! ] ! | - | No description provided |
dstUser | String ! | - | No description provided |
dstPass | Secret ! | - | No description provided |
awsPull | Boolean ! | - | No description provided |
Example
dagger -m github.com/EladAviczer/dagger-skopeo@e99480f1df96e7f812252eec43856ea3d6a9fef5 call \
mirror-many --aws-creds file:path --aws-region string --src-registry string --dst-registry string --repo-tags string1 --repo-tags string2 --dst-user string --dst-pass env:MYSECRET --aws-pull boolean
func (m *MyModule) Example(ctx context.Context, awsCreds *dagger.File, awsRegion string, srcRegistry string, dstRegistry string, repoTags []string, dstUser string, dstPass *dagger.Secret, awsPull bool) {
return dag.
DaggerSkopeo().
MirrorMany(ctx, awsCreds, awsRegion, srcRegistry, dstRegistry, repoTags, dstUser, dstPass, awsPull)
}
@function
async def example(aws_creds: dagger.File, aws_region: str, src_registry: str, dst_registry: str, repo_tags: List[str], dst_user: str, dst_pass: dagger.Secret, aws_pull: bool) -> None:
return await (
dag.dagger_skopeo()
.mirror_many(aws_creds, aws_region, src_registry, dst_registry, repo_tags, dst_user, dst_pass, aws_pull)
)
@func()
async example(awsCreds: File, awsRegion: string, srcRegistry: string, dstRegistry: string, repoTags: string[], dstUser: string, dstPass: Secret, awsPull: boolean): Promise<void> {
return dag
.daggerSkopeo()
.mirrorMany(awsCreds, awsRegion, srcRegistry, dstRegistry, repoTags, dstUser, dstPass, awsPull)
}