Documentation
¶
Overview ¶
* Copyright contributors to the Galasa project * * SPDX-License-Identifier: EPL-2.0
* Copyright contributors to the Galasa project * * SPDX-License-Identifier: EPL-2.0
* Copyright contributors to the Galasa project * * SPDX-License-Identifier: EPL-2.0
Index ¶
Constants ¶
const ( //properties display HEADER_PROPERTY_NAMESPACE = "namespace" HEADER_PROPERTY_NAME = "name" HEADER_PROPERTY_VALUE = "value" //namespaces display HEADER_NAMESPACE = "namespace" HEADER_NAMESPACE_TYPE = "type" )
----------------------------------------------------- PropertyFormatter - implementations can take a collection of properties/namespaces results and turn them into a string for display to the user.
const (
RAW_FORMATTER_NAME = "raw"
)
----------------------------------------------------- Raw format.
const (
SUMMARY_FORMATTER_NAME = "summary"
)
----------------------------------------------------- Summary format.
const (
YAML_FORMATTER_NAME = "yaml"
)
----------------------------------------------------- Yaml format.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PropertyFormatter ¶
type PropertyFormatter interface {
FormatProperties(propertyResults []galasaapi.GalasaProperty) (string, error)
FormatNamespaces(namespaces []galasaapi.Namespace) (string, error)
GetName() string
}
func NewPropertyRawFormatter ¶
func NewPropertyRawFormatter() PropertyFormatter
func NewPropertySummaryFormatter ¶
func NewPropertySummaryFormatter() PropertyFormatter
func NewPropertyYamlFormatter ¶
func NewPropertyYamlFormatter() PropertyFormatter
type PropertyRawFormatter ¶
type PropertyRawFormatter struct {
}
func (*PropertyRawFormatter) FormatNamespaces ¶
func (*PropertyRawFormatter) FormatNamespaces(namespaces []galasaapi.Namespace) (string, error)
func (*PropertyRawFormatter) FormatProperties ¶
func (*PropertyRawFormatter) FormatProperties(cpsProperties []galasaapi.GalasaProperty) (string, error)
func (*PropertyRawFormatter) GetName ¶
func (*PropertyRawFormatter) GetName() string
type PropertySummaryFormatter ¶
type PropertySummaryFormatter struct {
}
func (*PropertySummaryFormatter) FormatNamespaces ¶
func (*PropertySummaryFormatter) FormatNamespaces(namespaces []galasaapi.Namespace) (string, error)
func (*PropertySummaryFormatter) FormatProperties ¶
func (*PropertySummaryFormatter) FormatProperties(cpsProperties []galasaapi.GalasaProperty) (string, error)
func (*PropertySummaryFormatter) GetName ¶
func (*PropertySummaryFormatter) GetName() string
type PropertyYamlFormatter ¶
type PropertyYamlFormatter struct {
PropertyFormatter
}
func (*PropertyYamlFormatter) FormatProperties ¶
func (*PropertyYamlFormatter) FormatProperties(cpsProperties []galasaapi.GalasaProperty) (string, error)
func (*PropertyYamlFormatter) GetName ¶
func (*PropertyYamlFormatter) GetName() string