mirror of
https://github.com/clearlinux/clr-installer.git
synced 2026-09-03 20:21:27 +00:00
When creating images it's useful to have a --swupd-state to provide an state dir outside the image so we don't duplicate the target's content. Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
21 lines
554 B
Go
21 lines
554 B
Go
// Copyright © 2018 Intel Corporation
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
package frontend
|
|
|
|
import (
|
|
"github.com/clearlinux/clr-installer/args"
|
|
"github.com/clearlinux/clr-installer/model"
|
|
)
|
|
|
|
// Frontend is the common interface for the frontend entry point
|
|
type Frontend interface {
|
|
// MustRun is the method where the frontend implementation tells the
|
|
// core code that this frontend wants to run
|
|
MustRun(args *args.Args) bool
|
|
|
|
// Run is the actual entry point
|
|
Run(md *model.SystemInstall, rootDir string, args args.Args) (bool, error)
|
|
}
|