config

package
v0.0.5-dev Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

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

func NewData

func NewData(source property.Source) *Data

func (*Data) PropertySource

func (d *Data) PropertySource() property.Source

type FileImporter

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

func NewFileImporter

func NewFileImporter(environment env.Environment) *FileImporter

func (*FileImporter) Load

func (i *FileImporter) Load(profiles []string, location string) ([]*Data, error)

type FileResolver

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

func NewFileResolver

func NewFileResolver(environment env.Environment, sourceLoaders []property.SourceLoader) *FileResolver

func (*FileResolver) Resolve

func (r *FileResolver) Resolve(location string) ([]Resource, error)

func (*FileResolver) ResolveProfiles

func (r *FileResolver) ResolveProfiles(profiles []string, location string) ([]Resource, error)

type FileResource

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

func NewFileResource

func NewFileResource(path string, file fs.File, loader property.SourceLoader) *FileResource

func (*FileResource) File

func (r *FileResource) File() fs.File

func (*FileResource) Loader

func (r *FileResource) Loader() property.SourceLoader

func (*FileResource) Location

func (r *FileResource) Location() string

func (*FileResource) Name

func (r *FileResource) Name() string

func (*FileResource) Profile

func (r *FileResource) Profile() string

type Importer

type Importer interface {
	Load(profiles []string, location string) ([]*Data, error)
}

type Resolver

type Resolver interface {
	Resolve(location string) ([]Resource, error)
	ResolveProfiles(profiles []string, location string) ([]Resource, error)
}

type Resource

type Resource interface {
	Name() string
	Location() string
	Profile() string
	Loader() property.SourceLoader
}

Jump to

Keyboard shortcuts

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