Documentation ¶
Index ¶
- Constants
- Variables
- func GetCleanName(name string) string
- func GetCleanTypeOrName(application *kymaappconnv1alpha1.Application) string
- func GetTypeOrName(application *kymaappconnv1alpha1.Application) string
- func GroupVersionResource() schema.GroupVersionResource
- func IsCleanName(name string) bool
- type Lister
Constants ¶
View Source
const (
// TypeLabel is an optional label for the application to determine its type.
TypeLabel = "application-type"
)
Variables ¶
View Source
var ErrFailedToConvertObjectToUnstructured = errors.New("failed to convert runtime object to unstructured")
Functions ¶
func GetCleanName ¶
GetCleanName cleans the name form none-alphanumeric characters and returns the clean name.
func GetCleanTypeOrName ¶
func GetCleanTypeOrName(application *kymaappconnv1alpha1.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 *kymaappconnv1alpha1.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.