Documentation
¶
Index ¶
- Variables
- func AurClientOpt(val aur.Interface) *opt.Opt
- func CleanOpt(val bool) *opt.Opt
- func DefaultAurClientOpt(opts []*opt.Opt, val aur.Interface) aur.Interface
- func DeploymentsOpt(val []string) *opt.Opt
- func GetAurClientOpt(opts []*opt.Opt) aur.Interface
- func GetCleanOpt(opts []*opt.Opt) bool
- func GetDeploymentsOpt(opts []*opt.Opt) []string
- func GetProfileOpt(opts []*opt.Opt) string
- func GetRootOpt(opts []*opt.Opt) string
- func ProfileOpt(val string) *opt.Opt
- func RootOpt(val string) *opt.Opt
- type Distro
- type Fake
- type Interface
- type Reduce
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CleanOptKey = "clean" DeploymentsOptKey = "deployments" ProfileOptKey = "profile" RootOptKey = "root" AurClientOptKey = "aur-client" )
Options
Functions ¶
func AurClientOpt ¶
AurClientOpt passes the client to use
func DefaultAurClientOpt ¶
DefaultAurClientOpt sets the default client if it doesn't exist
func DeploymentsOpt ¶
DeploymentsOpt wraps the deployments to build
func GetAurClientOpt ¶
GetAurClientOpt returns the client option
func GetCleanOpt ¶
GetCleanOpt return the option to clean the build
func GetDeploymentsOpt ¶
GetDeploymentsOpt return the deployments to build
Types ¶
type Distro ¶
type Distro struct {
Name string // Distro name
Release string // target release
Arch string // target architecture e.g. x86_64
Kernel string // target kernel string e.g.
KernelVer string // target kernel version e.g. 5.3.1
}
Distro provides information about the distro being built
type Fake ¶
type Fake struct {
Reduce
Data map[string]interface{} // test data input
Result map[string]interface{} // test data output
}
Fake instance
type Interface ¶
type Interface interface {
Info() (Distro, error) // Info gets the target distro info
Clean(targets []string, opts ...*opt.Opt) error // Clean reduce targets; opts: ProfileOpt
Build(targets []string, opts ...*opt.Opt) error // Build reduce targets; opts: ProfileOpt, CleanOpt, DeploymentsOpt
}
Interface is the public interface for reduce
Click to show internal directories.
Click to hide internal directories.