builder

package
v0.0.0-...-c3de88e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2024 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Build the profiles with the following directive applied
	Builds = []Builder{}

	// Available builders
	Builders = map[string]Builder{}
)

Functions

func Register

func Register(names ...string)

func RegisterBuilder

func RegisterBuilder(d Builder)

func Run

func Run(file *paths.Path, profile string) (string, error)

Types

type ABI3

type ABI3 struct {
	cfg.Base
}

func (ABI3) Apply

func (b ABI3) Apply(opt *Option, profile string) (string, error)

type Builder

type Builder interface {
	cfg.BaseInterface
	Apply(opt *Option, profile string) (string, error)
}

Main directive interface

type Complain

type Complain struct {
	cfg.Base
}

func (Complain) Apply

func (b Complain) Apply(opt *Option, profile string) (string, error)

type Dev

type Dev struct {
	cfg.Base
}

func (Dev) Apply

func (b Dev) Apply(opt *Option, profile string) (string, error)

type Enforce

type Enforce struct {
	cfg.Base
}

func (Enforce) Apply

func (b Enforce) Apply(opt *Option, profile string) (string, error)

type FullSystemPolicy

type FullSystemPolicy struct {
	cfg.Base
}

func (FullSystemPolicy) Apply

func (b FullSystemPolicy) Apply(opt *Option, profile string) (string, error)

type Option

type Option struct {
	Name string
	File *paths.Path
}

Builder options

func NewOption

func NewOption(file *paths.Path) *Option

type Userspace

type Userspace struct {
	cfg.Base
}

func (Userspace) Apply

func (b Userspace) Apply(opt *Option, profile string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL