Documentation
¶
Index ¶
- Constants
- func ConvertLabelsToSelector(labels map[string]string) string
- func ExtractComponentType(namespacedVersionedComponentType string) string
- func GenFileUrl(location string, os string) string
- func GenerateRandomString(n int) string
- func NamespaceOpenShiftObject(componentName string, applicationName string) (string, error)
- func ParseCreateCmdArgs(args []string) (string, string, string, string)
- func ReadFilePath(u *url.URL, os string) string
Constants ¶
const WIN = "windows"
Variables ¶
This section is empty.
Functions ¶
func ConvertLabelsToSelector ¶
ConvertLabelsToSelector converts the given labels to selector
func ExtractComponentType ¶
ExtractComponentType returns only component type part from passed component type(default unqualified, fully qualified, versioned, etc...and their combinations) for use as component name Possible types of parameters: 1. "myproject/python:3.5" -- Return python 2. "python:3.5" -- Return python 3. nodejs -- Return nodejs
func GenFileUrl ¶
Converts file path on windows to /C:/path/to/file to work in URL
func GenerateRandomString ¶
GenerateRandomString generates a random string of lower case characters of the given size
func NamespaceOpenShiftObject ¶
Hyphenate applicationName and componentName
func ParseCreateCmdArgs ¶
parseCreateCmdArgs returns 1. image name 2. component type i.e, builder image name 3. component name default value is component type else the user requested component name 4. component version which is by default latest else version passed with builder image name
Types ¶
This section is empty.