properties

package
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: EPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

func DeleteProperty(
	namespace string,
	name string,
	apiClient *galasaapi.APIClient,
) error

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 utils.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 utils.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

func ValidateInfixes(infix string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL