-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Initial API server based implementation.
- Loading branch information
Showing
9 changed files
with
93 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
bl-k8s-rt/src/main/java/io/vacco/beleth/rt/schema/BlResourcePair.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package io.vacco.beleth.rt.schema; | ||
|
||
import com.github.difflib.patch.Patch; | ||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
public class BlResourcePair { | ||
|
||
public BlResource manifest0, manifest1; | ||
public List<String> diff0, diff1; | ||
public Patch<String> patch; | ||
|
||
public static BlResourcePair of(BlResource manifest0, BlResource manifest1, | ||
List<String> diff0, List<String> diff1, | ||
Patch<String> patch) { | ||
var p = new BlResourcePair(); | ||
p.manifest0 = Objects.requireNonNull(manifest0); | ||
p.manifest1 = Objects.requireNonNull(manifest1); | ||
p.diff0 = Objects.requireNonNull(diff0); | ||
p.diff1 = Objects.requireNonNull(diff1); | ||
p.patch = Objects.requireNonNull(patch); | ||
return p; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters