save

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationMapper

type ConfigurationMapper interface {
	ToMap() map[string]interface{}
}

type ConfigurationSaver

type ConfigurationSaver interface {
	Save(w ConfigurationWriter, fs afero.Fs, config ConfigurationMapper, configFile string) error
}

type ConfigurationWriter

type ConfigurationWriter interface {
	Configurer
	WriteConfig() error
	WriteConfigAs(file string) error
	SafeWriteConfig() error
	SafeWriteConfigAs(file string) error
}

type Configurer

type Configurer interface {
	SetConfigFile(file string)
	MergeConfigMap(cfg map[string]interface{}) error
}

type SafeSave

type SafeSave struct{}

func (*SafeSave) Save

func (s *SafeSave) Save(w ConfigurationWriter, fs afero.Fs, config ConfigurationMapper, configFile string) error

type Save

type Save struct{}

func (*Save) Save

func (s *Save) Save(w ConfigurationWriter, fs afero.Fs, config ConfigurationMapper, configFile string) error

Jump to

Keyboard shortcuts

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