config

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileName = "procyon"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func New

func New(source property.Source) *Config

func (*Config) PropertySource

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

type DefaultResourceResolver

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

func (*DefaultResourceResolver) ResolveResources

func (r *DefaultResourceResolver) ResolveResources(ctx context.Context, location string, profiles []string) ([]Resource, error)

type FileLoader

type FileLoader struct {
}

func (*FileLoader) IsLoadable

func (l *FileLoader) IsLoadable(resource Resource) bool

func (*FileLoader) LoadConfig

func (l *FileLoader) LoadConfig(ctx context.Context, resource Resource) (*Config, error)

type FileResource

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

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 struct {
	// contains filtered or unexported fields
}

func (*Importer) Import

func (i *Importer) Import(ctx context.Context, location string, profiles []string) ([]*Config, error)

type Loader

type Loader interface {
	IsLoadable(resource Resource) bool
	LoadConfig(ctx context.Context, resource Resource) (*Config, error)
}

type Resource

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

type ResourceResolver

type ResourceResolver interface {
	ResolveResources(ctx context.Context, location string, profiles []string) ([]Resource, error)
}

Jump to

Keyboard shortcuts

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