Documentation ¶
Index ¶
- func DecorateAttr(attrString, message string) string
- func DefaultValue(val, def string) string
- func FormatCatalogName(catalogName string) string
- func FormatCategories(categories []*client.CategoryResponseBody) string
- func FormatDesc(desc string, num int) string
- func FormatInstallCMD(res hub.ResourceData, resVer hub.ResourceWithVersionData, latest bool) string
- func FormatJSON(b []byte) ([]byte, error)
- func FormatName(name, latestVersion string) string
- func FormatPlatforms(platforms []*client.PlatformResponseBody) string
- func FormatTags(tags []*client.TagResponseBody) string
- func FormatVersion(version string, latest bool, deprecated bool) string
- func Icon(title string) string
- func WrapText(desc string, maxWidth, titleLength int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecorateAttr ¶
func DefaultValue ¶
DefaultValue returns default value if string is empty
func FormatCatalogName ¶
FormatCatalogName returns name of catalog from which the resource is
func FormatCategories ¶
func FormatCategories(categories []*client.CategoryResponseBody) string
FormatCategories returns list of categories seperated by comma
func FormatDesc ¶
FormatDesc returns first 40 char of resource description
func FormatInstallCMD ¶
func FormatInstallCMD(res hub.ResourceData, resVer hub.ResourceWithVersionData, latest bool) string
FormatInstallCMD returns install command to be executed to install the resource
func FormatJSON ¶
FormatJSON returns formatted json string
func FormatName ¶
FormatName returns name of resource with its latest version
func FormatPlatforms ¶
func FormatPlatforms(platforms []*client.PlatformResponseBody) string
FormatPlatforms returns list of platforms seperated by comma
func FormatTags ¶
func FormatTags(tags []*client.TagResponseBody) string
FormatTags returns list of tags seperated by comma
func FormatVersion ¶
FormatVersion returns version appended with (latest) if the latest field passed is true
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.