Documentation
¶
Index ¶
- Constants
- Variables
- func CreateFormatters(hasYamlFormat bool) map[string]propertiesformatter.PropertyFormatter
- func DeleteProperty(namespace string, name string, apiClient *galasaapi.APIClient) error
- func GetFormatterNamesString(validFormatters map[string]propertiesformatter.PropertyFormatter) string
- func GetProperties(namespace string, name string, prefix string, suffix string, infix string, ...) error
- func GetPropertiesNamespaces(apiClient *galasaapi.APIClient, namespaceOutputFormat string, ...) error
- func SetProperty(namespace string, name string, value string, apiClient *galasaapi.APIClient) error
- func ValidateInfixes(infix string) error
Constants ¶
View Source
const ( PROPERTY_NAMESPACE_PATTERN = "^[a-z][a-z0-9]+$" PROPERTY_NAME_PATTERN = "^[a-zA-Z][a-zA-Z0-9\\.\\-\\_]+$" )
Variables ¶
View Source
var ( APIVERSION = "galasa-dev/v1aplha1" KIND = "GalasaProperty" )
Functions ¶
func CreateFormatters ¶
func CreateFormatters(hasYamlFormat bool) map[string]propertiesformatter.PropertyFormatter
func DeleteProperty ¶
DeleteProperty - performs all the logic to implement the `galasactl properties delete` command, but in a unit-testable manner.
func GetFormatterNamesString ¶
func GetFormatterNamesString(validFormatters map[string]propertiesformatter.PropertyFormatter) string
GetFormatterNamesString builds a string of comma separated, quoted formatter names
func GetProperties ¶
func GetProperties( namespace string, name string, prefix string, suffix string, infix string, apiClient *galasaapi.APIClient, propertiesOutputFormat string, console spi.Console, ) error
GetProperties - performs all the logic to implement the `galasactl properties get` command, but in a unit-testable manner.
func GetPropertiesNamespaces ¶
func GetPropertiesNamespaces( apiClient *galasaapi.APIClient, namespaceOutputFormat string, console spi.Console, ) error
GetPropertiesNamespaces - performs all the logic to implement the `galasactl properties namespace get` command
func SetProperty ¶
func SetProperty( namespace string, name string, value string, apiClient *galasaapi.APIClient, ) error
SetProperty - performs all the logic to implement the `galasactl properties set` command, but in a unit-testable manner.
func ValidateInfixes ¶ added in v0.32.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.