Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TypeLabel is an optional label for the application to determine its type.
TypeLabel = "application-type"
)
Variables ¶
This section is empty.
Functions ¶
func GetCleanName ¶
GetCleanName cleans the name form none-alphanumeric characters and returns the clean name.
func GetCleanTypeOrName ¶
func GetCleanTypeOrName(application *applicationv1alpha1.Application) string
GetCleanTypeOrName cleans the application name form none-alphanumeric characters and returns it if the application type label exists, it will be cleaned and returned instead of the application name.
func GetTypeOrName ¶
func GetTypeOrName(application *applicationv1alpha1.Application) string
GetTypeOrName returns the application name. if the application type label exists, it will be returned instead of the application name.
func GroupVersionResource ¶
func GroupVersionResource() schema.GroupVersionResource
func IsCleanName ¶
IsCleanName returns true if the name contains alphanumeric characters only, otherwise returns false.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package applicationtest provides utilities for Application testing.
|
Package applicationtest provides utilities for Application testing. |
Click to show internal directories.
Click to hide internal directories.