-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/otkostree: move resolved ostree struct to new package
Move the struct that defines the output of the otk-resolve-ostree-commit command to an internal package and reuse it as the input for the otk-make-ostree-source command.
- Loading branch information
1 parent
66f21b1
commit a522740
Showing
3 changed files
with
21 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package otkostree | ||
|
||
type ResolvedConst struct { | ||
// Ref of the commit (can be empty). | ||
Ref string `json:"ref,omitempty"` | ||
|
||
// URL of the repo where the commit can be fetched. | ||
URL string `json:"url"` | ||
|
||
// Secrets type to use when pulling the ostree commit content | ||
// (e.g. org.osbuild.rhsm.consumer). | ||
Secrets string `json:"secrets,omitempty"` | ||
|
||
// Checksum of the commit. | ||
Checksum string `json:"checksum"` | ||
} |