Documentation
¶
Index ¶
- func GetInstallLocation(ctx context.Context, run *Run) (string, string, error)
- func StartConfigSync(ctx context.Context, run *Run)
- type PacCliOpts
- type Run
- func (r *Run) GetRepository(ctx context.Context, ns, name string) (*apipac.Repository, error)
- func (r *Run) ListRepositories(ctx context.Context, ns string) ([]apipac.Repository, error)
- func (r *Run) UpdatePacConfig(ctx context.Context) error
- func (r *Run) WithConsoleParams(params map[string]string) *Run
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInstallLocation ¶ added in v0.23.0
func StartConfigSync ¶ added in v0.26.0
Types ¶
type PacCliOpts ¶
type PacCliOpts struct {
NoColoring bool
AllNameSpaces bool
Namespace string
AskOpts survey.AskOpt
}
func NewCliOptions ¶
func NewCliOptions() *PacCliOpts
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 (*Run) GetRepository ¶ added in v0.53.0
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
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
Click to show internal directories.
Click to hide internal directories.