Preparing for version 2 of the manifest schema, which will be implemented in a separate package (osbuild2) alongside the original.
16 lines
356 B
Go
16 lines
356 B
Go
package osbuild1
|
|
|
|
type Secret struct {
|
|
Name string `json:"name,omitempty"`
|
|
}
|
|
type FileSource struct {
|
|
URL string `json:"url"`
|
|
Secrets *Secret `json:"secrets,omitempty"`
|
|
}
|
|
|
|
// The FilesSourceOptions specifies a custom script to run in the image
|
|
type FilesSource struct {
|
|
URLs map[string]FileSource `json:"urls"`
|
|
}
|
|
|
|
func (FilesSource) isSource() {}
|