Help us shape the future of Go! Take the 2026 Go Developer Survey

fake

package
v1.24.3 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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 github.com/GoogleContainerTools/config-sync/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

type ParserInputs struct {
	FilePaths reader.FilePaths
}

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()

Jump to

Keyboard shortcuts

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