config

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfigYAML

func CreateConfigYAML(configpath string) I.IConfig

CreateConfigYAML ...

func ProvideConfig

func ProvideConfig(dal I.IDAL, ui I.IUIPlugin, logger I.ILogger, helper I.IHelper) I.IConfig

ProvideConfig ...

Types

type ConfigDatabase

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

ConfigDatabase ...

func (*ConfigDatabase) AddProfile

func (coDB *ConfigDatabase) AddProfile(p I.IProfile) error

AddProfile ...

func (*ConfigDatabase) DumpConfig

func (coDB *ConfigDatabase) DumpConfig(i ...interface{}) interface{}

DumpConfig ...

func (*ConfigDatabase) GetActiveProfile

func (coDB *ConfigDatabase) GetActiveProfile() I.IProfile

GetActiveProfile ...

func (*ConfigDatabase) GetActiveProfileByName

func (coDB *ConfigDatabase) GetActiveProfileByName(profilename string) (I.IProfile, error)

GetActiveProfileByName ...

func (*ConfigDatabase) GetAllProfiles

func (coDB *ConfigDatabase) GetAllProfiles() (map[string]I.IProfile, error)

GetAllProfiles ...

func (*ConfigDatabase) GetConfigPath

func (coDB *ConfigDatabase) GetConfigPath() (string, error)

GetConfigPath ...

func (*ConfigDatabase) InitNewProfile

func (coDB *ConfigDatabase) InitNewProfile(name string) error

InitNewProfile ...

func (*ConfigDatabase) Remove

func (coDB *ConfigDatabase) Remove(i interface{}) error

RemoveProject ...

func (*ConfigDatabase) RemoveProfile

func (coDB *ConfigDatabase) RemoveProfile(p I.IProfile) error

RemoveProfile ...

func (*ConfigDatabase) Save

func (coDB *ConfigDatabase) Save(i ...interface{}) error

Save ...

func (*ConfigDatabase) SetActiveProfile

func (coDB *ConfigDatabase) SetActiveProfile(name string) error

SetActiveProfile ...

func (*ConfigDatabase) SetConfigPath

func (coDB *ConfigDatabase) SetConfigPath(path string) error

SetConfigPath ...

func (*ConfigDatabase) String

func (coDB *ConfigDatabase) String() string

type ConfigYAML

type ConfigYAML struct {
	PluginConfig []string
	PluginFolder []string
	LastUsed     time.Time
	// contains filtered or unexported fields
}

ConfigYAML implements the IConfig based on yaml file...

func (*ConfigYAML) GetConfigPath

func (yamlObj *ConfigYAML) GetConfigPath() string

GetConfigPath ...

func (*ConfigYAML) GetLastUsed

func (yamlObj *ConfigYAML) GetLastUsed() time.Time

GetLastUsed ...

func (*ConfigYAML) GetProjectDirs

func (yamlObj *ConfigYAML) GetProjectDirs() []string

GetProjectDirs ...

func (*ConfigYAML) GetSourceAsString

func (yamlObj *ConfigYAML) GetSourceAsString() string

GetSourceAsString ...

func (*ConfigYAML) Update

func (yamlObj *ConfigYAML) Update() error

Update ...

Jump to

Keyboard shortcuts

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