groups

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Groups

func Groups(directory string, filter string, limits []string) ([]string, error)

Groups returns an unsorted list of available group in the given directory limited by the provided filter. Each element of the list given in filter will be treated as a regex and only groups matching any (!) of the filters will be returned. The regexp will be treated as matching the whole group name, e.g. they are implicitely wrapped in ^$

func LimitGroups

func LimitGroups(groups []string, limits []string) ([]string, error)

LimitGroups applies a list of limits (each treated as regex) to a list of groups and returns only groups matching at least one of the given limits

func SortedGroups

func SortedGroups(directory string, filter string, limits []string) ([]string, error)

SortedGroups is the same as Groups() but the resulting list is sorted alphabetically

Types

This section is empty.

Jump to

Keyboard shortcuts

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