configurator

package
v1.56.3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnmarshalError in config.
	ErrUnmarshalError = errors.New("unmarshal issue")

	// ErrMarshalError in config.
	ErrMarshalError = errors.New("marshal issue")

	// ErrTraverseError in config.
	ErrTraverseError = errors.New("traverse issue")
)

Functions

This section is empty.

Types

type Config added in v1.28.0

type Config struct {
	Kind string
	Data []byte
}

Config for configurator.

type ConfigParams added in v1.28.0

type ConfigParams struct {
	Application string
	Version     string
	Environment string
	Continent   string
	Country     string
	Command     string
	Kind        string
}

ConfigParams for configurator.

func (ConfigParams) String added in v1.28.0

func (p ConfigParams) String() string

String of params.

type Configurator

type Configurator interface {
	GetConfig(ctx context.Context, params ConfigParams) (*Config, error)
}

Configurator for configurator.

type Transformer added in v1.38.0

type Transformer struct {
	// contains filtered or unexported fields
}

Transformer for config.

func NewTransformer added in v1.38.0

func NewTransformer(pt *provider.Transformer, f *marshaller.Factory) *Transformer

NewTransformer for config.

func (*Transformer) Transform added in v1.38.0

func (t *Transformer) Transform(ctx context.Context, cfg *Config) ([]byte, error)

Transform config.

Directories

Path Synopsis
git
s3

Jump to

Keyboard shortcuts

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