config

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: ISC Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DefaultRepository string
	Repositories      map[string]RepositoryConfig
	Sources           map[string]SourceConfig
	Destinations      map[string]DestinationConfig
}

func NewConfig

func NewConfig() *Config

func (*Config) GetDestination

func (c *Config) GetDestination(name string) (map[string]string, bool)

func (*Config) GetRepository

func (c *Config) GetRepository(name string) (map[string]string, error)

func (*Config) GetSource

func (c *Config) GetSource(name string) (map[string]string, bool)

func (*Config) HasDestination

func (c *Config) HasDestination(name string) bool

func (*Config) HasRepository

func (c *Config) HasRepository(name string) bool

func (*Config) HasSource

func (c *Config) HasSource(name string) bool

type DestinationConfig

type DestinationConfig = map[string]string

type RepositoryConfig

type RepositoryConfig = map[string]string

type SourceConfig

type SourceConfig = map[string]string

Jump to

Keyboard shortcuts

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