config

package
v0.0.0-...-e63a7e0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Source      SourceConfig
	Destination DestinationConfig
	LogLevel    string
}

func New

func New(cfgFilePath string) (*Config, error)

func (*Config) DebugEnabled

func (c *Config) DebugEnabled() bool

func (*Config) GetLogLevel

func (c *Config) GetLogLevel() slog.Level

type DestinationConfig

type DestinationConfig struct {
	Type           string
	ResourceConfig ResourceConfig `mapstructure:",remain"`
}

type ResourceConfig

type ResourceConfig map[string]any

type SourceConfig

type SourceConfig struct {
	Type           string
	ResourceConfig ResourceConfig `mapstructure:",remain"`
}

Jump to

Keyboard shortcuts

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