source

package
v0.0.0-...-a1fe3bc Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source interface {
	// Name returns the name of the target.
	Name() string
	// ParsedConfigurations returns the parsed configurations of the target.
	ParsedConfigurations() ([]interface{}, error)
}

Source is the interface for a validation source.

type SourceBuilder

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

SourceBuilder constructs a collection of source readers.

func FromPath

func FromPath(paths []string) *SourceBuilder

FromPath creates a SourceBuilder with loading sources from the given paths.

func (*SourceBuilder) Complete

func (sb *SourceBuilder) Complete() ([]Source, error)

func (*SourceBuilder) ContextRoot

func (sb *SourceBuilder) ContextRoot(contextRoot string) *SourceBuilder

ContextRoot binds the context root to the SourceBuilder. When context root is specified, all paths must be relative to context root, and source names will be relative to context root.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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