resourceselector

package
v3.0.0-beta13 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 7 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) 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