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.
Click to show internal directories.
Click to hide internal directories.