Documentation
¶
Overview ¶
Package predictor provides shell completion predictors for nctl resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶ added in v1.12.2
NewClient creates an API client configured for shell completion. It uses a static token since dynamic exec config breaks with some shells during completion.
func NewResourceName ¶
NewResourceName returns a predictor that infers the resource kind from the command arguments.
func NewResourceNameWithKind ¶ added in v1.9.0
NewResourceNameWithKind returns a predictor for a specific resource kind.
Types ¶
Click to show internal directories.
Click to hide internal directories.