core

package
v2.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: May 18, 2017 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

View Source
const (
	PRIMUSRUN = "primusrun"
	OPTIRUN   = "optirun"
)
View Source
const (
	PRIMUSRUN_IDX = len(PRIMUSRUN) + 1
	OPTIRUN_IDX   = len(OPTIRUN) + 1
)

Variables

This section is empty.

Functions

func IsGPUEnabled

func IsGPUEnabled(value string) bool

Types

type Entry

type Entry struct {
	Id   int
	Name string
}

func EntryListToMap

func EntryListToMap(entries map[string]*Entry) []*Entry

func EntryMapToList

func EntryMapToList(entries map[string]*Entry) []*Entry

func NewEntry

func NewEntry(name string) *Entry

type Settings

type Settings struct {
	Prefix    string
	Directory string
}

func NewDefaultSettings

func NewDefaultSettings() *Settings

type Transformer

type Transformer struct {
	// contains filtered or unexported fields
}

func NewTransformer

func NewTransformer(logger *logging.Logger, dir *fs.Directory) *Transformer

func (*Transformer) Do

func (t *Transformer) Do(entries []*Entry, prefix string, strict bool) ([]string, error)

func (*Transformer) Revert

func (t *Transformer) Revert(entries []*Entry) ([]string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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