propertiesformatter

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: 5 Imported by: 0

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

View Source
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.

View Source
const (
	RAW_FORMATTER_NAME = "raw"
)

----------------------------------------------------- Raw format.

View Source
const (
	SUMMARY_FORMATTER_NAME = "summary"
)

----------------------------------------------------- Summary format.

View Source
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

Jump to

Keyboard shortcuts

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