shared

package
v0.0.0-...-17ed7cf Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFilename = "spito.yml"
View Source
const LockFilename = "spito-lock.yml"

Variables

View Source
var LocalStateSpitoPath = filepath.Join(path.UserHomeDir, ".local/state/spito")

Functions

func DBusInterfaceId

func DBusInterfaceId() string

func DBusMethod

func DBusMethod(conn *dbus.Conn, methodName string, args ...any) *dbus.Call

func DBusMethodName

func DBusMethodName(name string) string

func DBusMethodP

func DBusMethodP(conn *dbus.Conn, methodName, panicMessage string, args ...any)

func DBusObject

func DBusObject(conn *dbus.Conn) dbus.BusObject

func DBusObjectPath

func DBusObjectPath() dbus.ObjectPath

Types

type ConfigFileLayout

type ConfigFileLayout struct {
	RepoUrl      string `yaml:"repo_url"`
	GitPrefix    string `yaml:"git_prefix"`
	Identifier   string
	Rules        map[string]RuleConfigLayout
	Description  string
	Branch       string
	Dependencies map[string][]string
}

func (ConfigFileLayout) GetRuleConf

func (s ConfigFileLayout) GetRuleConf(ruleName string) (RuleConfigLayout, error)

type ImportLoopData

type ImportLoopData struct {
	VRCT           vrct.RuleVRCT
	InfoApi        InfoInterface
	RulesHistory   RulesHistory
	ErrChan        chan error
	PackageTracker package_conflict.PackageConflictTracker
	Options        []string
	DaemonTracker  daemon_tracker.DaemonTracker
	DbusConn       *dbus.Conn
	GuiMode        bool
}

func (*ImportLoopData) DeleteRuntimeTemp

func (i *ImportLoopData) DeleteRuntimeTemp() error

type InfoInterface

type InfoInterface interface {
	Log(...any)
	Debug(...any)
	Error(...any)
	Warn(...any)
	Important(...any)
}

type Rule

type Rule struct {
	Url          string
	NameOrScript string
	IsScript     bool
	// contains filtered or unexported fields
}

func (Rule) GetIdentifier

func (r Rule) GetIdentifier() string

type RuleConfigLayout

type RuleConfigLayout struct {
	Path        string `yaml:"path"`
	Description string `yaml:"description"`
	Unsafe      bool   `yaml:"unsafe"`
	Environment bool
	Sudo        bool
	Options     []option.Option
}

type RulesHistory

type RulesHistory map[string]Rule

func (RulesHistory) Contains

func (r RulesHistory) Contains(url string, name string) bool

func (RulesHistory) IsRuleInProgress

func (r RulesHistory) IsRuleInProgress(url string, name string) bool

func (RulesHistory) Push

func (r RulesHistory) Push(url string, nameOrScript string, isInProgress, isScript bool)

func (RulesHistory) SetProgress

func (r RulesHistory) SetProgress(url string, nameOrScript string, isInProgress bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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