Skip to content

Commit

Permalink
Rename OciImageDefinition.Bundle(Scope) -> Variant(Scope)
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtSilvio committed Jul 16, 2024
1 parent 17496e9 commit 43c5cfa
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 112 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ interface OciImageDefinition : Named {

fun capabilities(configuration: Action<in Capabilities>)

fun allPlatforms(configuration: Action<in BundleScope>)
fun allPlatforms(configuration: Action<in VariantScope>)

fun platformsMatching(platformFilter: PlatformFilter, configuration: Action<in BundleScope>)
fun platformsMatching(platformFilter: PlatformFilter, configuration: Action<in VariantScope>)

fun specificPlatform(platform: Platform)

fun specificPlatform(platform: Platform, configuration: Action<in Bundle>)
fun specificPlatform(platform: Platform, configuration: Action<in Variant>)

interface Capabilities {
val set: Provider<Set<Capability>>
Expand All @@ -43,7 +43,7 @@ interface OciImageDefinition : Named {
operator fun plusAssign(notationProvider: Provider<String>) = add(notationProvider)
}

interface Bundle {
interface Variant {
val parentImages: ParentImages
val config: Config
val layers: Layers
Expand Down Expand Up @@ -96,11 +96,11 @@ interface OciImageDefinition : Named {
}
}

interface BundleScope {
interface VariantScope {
val layers: Layers

fun parentImages(configuration: Action<in Bundle.ParentImages>)
fun config(configuration: Action<in Bundle.Config>)
fun parentImages(configuration: Action<in Variant.ParentImages>)
fun config(configuration: Action<in Variant.Config>)
fun layers(configuration: Action<in Layers>)

interface Layers {
Expand All @@ -110,7 +110,7 @@ interface OciImageDefinition : Named {
}

interface Layer : Named {
fun metadata(configuration: Action<in Bundle.Layer.Metadata>)
fun metadata(configuration: Action<in Variant.Layer.Metadata>)
fun contents(configuration: Action<in OciCopySpec>)
fun contents(task: TaskProvider<OciLayerTask>)
}
Expand Down
Loading

0 comments on commit 43c5cfa

Please sign in to comment.