Documentation ¶
Index ¶
- Variables
- func WithClient(client *client.T) funcopt.O
- func WithConfigFilterDisabled() funcopt.O
- func WithLocal(v bool) funcopt.O
- func WithPaths(paths naming.Paths) funcopt.O
- type Selection
- func (t *Selection) CheckFilters() error
- func (t *Selection) Expand() (naming.Paths, error)
- func (t *Selection) ExpandSet() (*orderedset.OrderedSet, error)
- func (t *Selection) MustExpand() (naming.Paths, error)
- func (t *Selection) Objects(opts ...funcopt.O) ([]interface{}, error)
- func (t *Selection) SetPaths(installed naming.Paths)
- func (t *Selection) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrExist = errors.New("no such object")
)
Functions ¶
func WithConfigFilterDisabled ¶
WithConfigFilterDisabled disable config filtering.
Types ¶
type Selection ¶
type Selection struct {
// contains filtered or unexported fields
}
Selection is the selection structure
func (*Selection) CheckFilters ¶
CheckFilters checks the filters
func (*Selection) Expand ¶
Expand resolves a selector expression into a list of object paths.
First try to resolve using the daemon (remote or local), as the daemons know all cluster objects, even remote ones. If executed on a cluster node, fallback to a local selector, which looks up installed configuration files.
func (*Selection) ExpandSet ¶
func (t *Selection) ExpandSet() (*orderedset.OrderedSet, error)
ExpandSet returns a set of the expandPaths returned by Expand. Usually to benefit from the .Has() function.
func (*Selection) Objects ¶
Objects returns the selected list of objects. This function relays its funcopts to the object.NewFromPath() function.
Click to show internal directories.
Click to hide internal directories.