Documentation ¶
Index ¶
- func CheckForUpdate() (*string, error)
- func CheckPackageOperatorVersion(ctx context.Context) error
- func GetPackageOperatorVersion(ctx context.Context) (string, error)
- func OpenInBrowser(url string) error
- func PrintPackageTable(w io.Writer, packages []*list.PackageWithStatus, cols []string, ...) error
- func RequireBootstrapped(ctx context.Context, cfg *rest.Config, rawCfg *api.Config)
- func RequireConfig(filePath string) (*rest.Config, *api.Config)
- func SetupClientContext(requireBootstrapped bool, skipUpdateCheck *bool) func(cmd *cobra.Command, args []string)
- func UpdateFetch()
- func YesNoPrompt(label string, defaultChoice bool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForUpdate ¶ added in v0.1.0
CheckForUpdate determines the new version by fetching the latest release info. If no newer version exists, it returns nil.
func CheckPackageOperatorVersion ¶ added in v0.1.0
func GetPackageOperatorVersion ¶ added in v0.1.0
func OpenInBrowser ¶ added in v0.0.2
func PrintPackageTable ¶
func PrintPackageTable( w io.Writer, packages []*list.PackageWithStatus, cols []string, getColsOfRow func(pkg *list.PackageWithStatus) []string, ) error
func RequireBootstrapped ¶ added in v0.0.3
func SetupClientContext ¶
func UpdateFetch ¶ added in v0.0.3
func UpdateFetch()
func YesNoPrompt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.