Documentation
¶
Index ¶
- func EnsurePathExists(path string) error
- func GetBinPath(cmd *cobra.Command) (string, error)
- func GetCachePath() (string, error)
- func GetDefaultBinPath() (string, error)
- func GetDefaultVrsPath() (string, error)
- func GetVrsInUse(binPath string) (string, error)
- func GetVrsPath(cmd *cobra.Command) (string, error)
- func ListInstalledVersions(vrsPath string) ([]*semver.Version, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsurePathExists ¶
EnsurePathExists ensures that the given path exists, creating it if necessary.
func GetBinPath ¶
GetBinPath retrieves the bin path from the command flags or returns the default path.
func GetCachePath ¶
GetCachePath returns the path to the releases cache file.
func GetDefaultBinPath ¶
GetDefaultBinPath returns the default bin path for in-use talosctl binary.
func GetDefaultVrsPath ¶
GetDefaultVrsPath returns the default bin path for downloaded talosctl binaries.
func GetVrsInUse ¶
GetVrsInUse returns the version of talosctl currently in use from the given binPath.
func GetVrsPath ¶
GetBinPath retrieves the vrs path from the command flags or returns the default path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.