Files
clr-installer/frontend/frontend.go
T
Leandro Dorileo 1074784a7a args: add --swupd-state
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>
2018-10-09 16:46:40 -07:00

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)
}