Documentation ¶
Index ¶
- type ConfigParser
- func (p *ConfigParser) Parse(filePaths reader.FilePaths) ([]ast.FileObject, status.MultiError)
- func (p *ConfigParser) ReadClusterNamesFromSelector(_ reader.FilePaths) ([]string, status.MultiError)
- func (p *ConfigParser) ReadClusterRegistryResources(_ reader.FilePaths, _ configsync.SourceFormat) ([]ast.FileObject, status.MultiError)
- type ParserInputs
- type ParserOutputs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigParser ¶
type ConfigParser struct { Calls int Inputs []ParserInputs Outputs []ParserOutputs }
ConfigParser fakes filesystem.ConfigParser.
This is not in kpt.dev/configsync/pkg/testing/fake because that would cause a import loop (filesystem -> fake -> filesystem).
func (*ConfigParser) Parse ¶
func (p *ConfigParser) Parse(filePaths reader.FilePaths) ([]ast.FileObject, status.MultiError)
Parse fakes filesystem.ConfigParser.Parse
func (*ConfigParser) ReadClusterNamesFromSelector ¶
func (p *ConfigParser) ReadClusterNamesFromSelector(_ reader.FilePaths) ([]string, status.MultiError)
ReadClusterNamesFromSelector fakes filesystem.ConfigParser.ReadClusterNamesFromSelector
func (*ConfigParser) ReadClusterRegistryResources ¶
func (p *ConfigParser) ReadClusterRegistryResources(_ reader.FilePaths, _ configsync.SourceFormat) ([]ast.FileObject, status.MultiError)
ReadClusterRegistryResources fakes filesystem.ConfigParser.ReadClusterRegistryResources
type ParserInputs ¶
ParserInputs stores inputs for fake.ConfigParser.Parse()
type ParserOutputs ¶
type ParserOutputs struct { FileObjects []ast.FileObject Errors status.MultiError }
ParserOutputs stores outputs for fake.ConfigParser.Parse()
Click to show internal directories.
Click to hide internal directories.