source

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Overview

Package source provides a base for all config sources. It provides a source interface which can be used to create config sources, and a data type, which gets used to pass around parsed config sources.

Index

Constants

This section is empty.

Variables

View Source
var Plugins = container.NewList[Source]() //nolint:gochecknoglobals

Plugins is the configsource plugin container.

Functions

This section is empty.

Types

type Source

type Source interface {
	// Schemes is a slice of schemes this reader supports.
	Schemes() []string

	// Read reads the url in u and returns it as map[string]any.
	Read(u *url.URL) (map[string]any, error)

	// String returns the name of the source.
	String() string
}

Source is a config source.

Jump to

Keyboard shortcuts

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