resourceselector

package
v3.0.0-rc49 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAction

func WithAction(s string) funcopt.O

func WithOrder

func WithOrder(s ordering.T) funcopt.O

func WithRID

func WithRID(s string) funcopt.O

func WithSubset

func WithSubset(s string) funcopt.O

func WithTag

func WithTag(s string) funcopt.O

Types

type ResourceLister

type ResourceLister interface {
	Resources() resource.Drivers
	ReconfigureResource(r resource.Driver) error
	IsDesc() bool
}

ResourceLister is the interface required to list resource.T and see the ordering

type T

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

T contains options accepted by all actions manipulating resources

func FromContext

func FromContext(ctx context.Context, l ResourceLister) *T

func New

func New(l ResourceLister, opts ...funcopt.O) *T

func (T) IsDesc

func (t T) IsDesc() bool

func (T) IsZero

func (t T) IsZero() bool

func (T) MissingRIDs

func (t T) MissingRIDs() []string

MissingRIDs returns the resource ids the selector names and the object does not have.

Only the elements naming one resource are reported. An element filtering on a driver group or matching a pattern selects whatever the object happens to have, so it is satisfied by nothing as much as by everything, while an element naming a resource is asking for that resource.

func (T) ReconfigureResource

func (t T) ReconfigureResource(r resource.Driver) error

func (T) Resources

func (t T) Resources() resource.Drivers

func (*T) SelectRIDs

func (t *T) SelectRIDs(l []string)

func (*T) SetResourceLister

func (t *T) SetResourceLister(l ResourceLister)

Jump to

Keyboard shortcuts

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