Delete unused internal/ignition package
This is a leftover from the `osbuild/images` split`. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
2b54f5bb14
commit
dfb55ebeb4
1 changed files with 0 additions and 31 deletions
|
|
@ -1,31 +0,0 @@
|
|||
package ignition
|
||||
|
||||
import (
|
||||
"encoding/base64"
|
||||
"errors"
|
||||
|
||||
"github.com/osbuild/osbuild-composer/internal/blueprint"
|
||||
)
|
||||
|
||||
type FirstBootOptions struct {
|
||||
ProvisioningURL string
|
||||
}
|
||||
|
||||
func FirstbootOptionsFromBP(bpIgnitionFirstboot blueprint.FirstBootIgnitionCustomization) *FirstBootOptions {
|
||||
ignition := FirstBootOptions(bpIgnitionFirstboot)
|
||||
return &ignition
|
||||
}
|
||||
|
||||
type EmbeddedOptions struct {
|
||||
Config string
|
||||
}
|
||||
|
||||
func EmbeddedOptionsFromBP(bpIgnitionEmbedded blueprint.EmbeddedIgnitionCustomization) (*EmbeddedOptions, error) {
|
||||
decodedConfig, err := base64.StdEncoding.DecodeString(bpIgnitionEmbedded.Config)
|
||||
if err != nil {
|
||||
return nil, errors.New("can't decode Ignition config")
|
||||
}
|
||||
return &EmbeddedOptions{
|
||||
Config: string(decodedConfig),
|
||||
}, nil
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue