params

package
v0.54.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstallLocation added in v0.23.0

func GetInstallLocation(ctx context.Context, run *Run) (string, string, error)

func StartConfigSync added in v0.26.0

func StartConfigSync(ctx context.Context, run *Run)

Types

type PacCliOpts

type PacCliOpts struct {
	NoColoring    bool
	AllNameSpaces bool
	Namespace     string
	AskOpts       survey.AskOpt
}

func NewCliOptions

func NewCliOptions() *PacCliOpts

func (*PacCliOpts) Ask

func (c *PacCliOpts) Ask(qss []*survey.Question, answer any) error

type Run

type Run struct {
	Clients clients.Clients
	Info    info.Info
	// RepositoryLister is the cached informer-backed lister for Repository resources.
	// Nil in CLI contexts and tests; populated at controller startup.
	RepositoryLister paclisters.RepositoryLister
}

func New

func New() *Run

func (*Run) GetRepository added in v0.53.0

func (r *Run) GetRepository(ctx context.Context, ns, name string) (*apipac.Repository, error)

GetRepository returns the named Repository from ns, reading from the cached lister when one is configured and falling back to a live API call otherwise. The lister hands out pointers into the shared informer cache, so the result is deep-copied to keep callers from mutating cached objects.

func (*Run) ListRepositories added in v0.53.0

func (r *Run) ListRepositories(ctx context.Context, ns string) ([]apipac.Repository, error)

ListRepositories returns the Repositories in ns (all namespaces when ns is empty), reading from the cached lister when one is configured and falling back to a live API call otherwise. Results are always deep copies, so callers may mutate them without touching the informer cache.

func (*Run) UpdatePacConfig added in v0.26.0

func (r *Run) UpdatePacConfig(ctx context.Context) error

func (*Run) WithConsoleParams added in v0.53.0

func (r *Run) WithConsoleParams(params map[string]string) *Run

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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