reader

package
v2.10.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigReader

type ConfigReader interface {
	Read(configFilePath string, cfg *khulnasoft.Config) error
}

type ConfigReaderImpl

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

func New

func New(fs afero.Fs, param *config.Param) *ConfigReaderImpl

func (*ConfigReaderImpl) Read

func (reader *ConfigReaderImpl) Read(configFilePath string, cfg *khulnasoft.Config) error

type MockConfigReader

type MockConfigReader struct {
	Cfg *khulnasoft.Config
	Err error
}

func (*MockConfigReader) Read

func (reader *MockConfigReader) Read(configFilePath string, cfg *khulnasoft.Config) error

Jump to

Keyboard shortcuts

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