Documentation
¶
Index ¶
- Variables
- func Compact[V comparable](args ...V) []V
- func CompactFunc[V any](isempty func(v V) bool, args ...V) []V
- func Delay(ctx context.Context, d time.Duration) error
- func Expand(s string, env func(string) string) string
- func ExpandAllVars(strs []string, vars []string) []string
- func ExpandVars(s string, vars []string) string
- func ExponentialSleep(ctx context.Context, init, max_sleep, timeout time.Duration, ...) error
- func ExtendTimeout(ctx context.Context, extra_time time.Duration)
- func IntersectHoles[V comparable](list *[]V, list2 []V)
- func IntersectHolesFunc[V any](list *[]V, list2 []V, eql func(v1, v2 V) bool)
- func NewSystemdClient(ctx context.Context) (*dbus.Conn, error)
- func SetCloseOnExec(fd int, close bool) (err error)
- func SortedStringKeys[Value any](m map[string]Value) []string
- func UnitsStatus(ctx context.Context, sd *dbus.Conn, specs UnitStatusSpecs) ([]dbus.UnitStatus, error)
- type JSONDuration
- type Tabbed
- type UnitStatusSpec
- type UnitStatusSpecs
Constants ¶
This section is empty.
Variables ¶
View Source
var STOP = errors.New("STOP")
Functions ¶
func Compact ¶
func Compact[V comparable](args ...V) []V
func CompactFunc ¶ added in v0.0.48
func Delay ¶ added in v0.0.85
Delay returns nil after the specified duration or error if interrupted. https://stackoverflow.com/a/72066605
func ExpandAllVars ¶ added in v0.0.85
func ExpandVars ¶ added in v0.0.85
func ExponentialSleep ¶ added in v0.0.85
func IntersectHoles ¶
func IntersectHoles[V comparable](list *[]V, list2 []V)
func IntersectHolesFunc ¶ added in v0.0.48
func NewSystemdClient ¶ added in v0.0.45
func SetCloseOnExec ¶ added in v0.0.45
func SortedStringKeys ¶ added in v0.0.15
func UnitsStatus ¶ added in v0.0.45
func UnitsStatus(ctx context.Context, sd *dbus.Conn, specs UnitStatusSpecs) ([]dbus.UnitStatus, error)
Types ¶
type JSONDuration ¶ added in v0.0.49
func (JSONDuration) MarshalJSON ¶ added in v0.0.49
func (d JSONDuration) MarshalJSON() ([]byte, error)
func (*JSONDuration) UnmarshalJSON ¶ added in v0.0.49
func (d *JSONDuration) UnmarshalJSON(b []byte) error
type UnitStatusSpec ¶ added in v0.0.45
type UnitStatusSpec struct {
Name string
Pattern string
Units []dbus.UnitStatus
// contains filtered or unexported fields
}
type UnitStatusSpecs ¶ added in v0.0.45
type UnitStatusSpecs []*UnitStatusSpec
func (UnitStatusSpecs) ToTable ¶ added in v0.0.45
func (specs UnitStatusSpecs) ToTable() table.Table
Click to show internal directories.
Click to hide internal directories.