secretsformatter

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 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

Index

Constants

View Source
const (
	HEADER_SECRET_NAME        = "name"
	HEADER_SECRET_TYPE        = "type"
	HEADER_SECRET_DESCRIPTION = "description"
	HEADER_LAST_UPDATED_TIME  = "last-updated(UTC)"
	HEADER_LAST_UPDATED_BY    = "last-updated-by"
)

----------------------------------------------------- SecretsFormatter - implementations can take a collection of secrets and turn them into a string for display to the user.

View Source
const (
	SUMMARY_FORMATTER_NAME = "summary"
)

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

View Source
const (
	YAML_FORMATTER_NAME = "yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretSummaryFormatter

type SecretSummaryFormatter struct {
}

func (*SecretSummaryFormatter) FormatSecrets

func (*SecretSummaryFormatter) FormatSecrets(secrets []galasaapi.GalasaSecret) (string, error)

func (*SecretSummaryFormatter) GetName

func (*SecretSummaryFormatter) GetName() string

type SecretYamlFormatter

type SecretYamlFormatter struct {
}

func (*SecretYamlFormatter) FormatSecrets

func (*SecretYamlFormatter) FormatSecrets(secrets []galasaapi.GalasaSecret) (string, error)

func (*SecretYamlFormatter) GetName

func (*SecretYamlFormatter) GetName() string

type SecretsFormatter

type SecretsFormatter interface {
	FormatSecrets(secrets []galasaapi.GalasaSecret) (string, error)
	GetName() string
}

func NewSecretSummaryFormatter

func NewSecretSummaryFormatter() SecretsFormatter

func NewSecretYamlFormatter

func NewSecretYamlFormatter() SecretsFormatter

Jump to

Keyboard shortcuts

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