osbuild manifest's urls should now contain a url and any secrets. The secrets should contain a name.
16 lines
355 B
Go
16 lines
355 B
Go
package osbuild
|
|
|
|
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() {}
|