Documentation ¶
Index ¶
- func Init(id instance.ID, logger instance.LoggerFunc, error instance.ErrorFunc, ...) instance.Instance
- type Config
- func (c *Config) AddSection(section, typ string) error
- func (c *Config) Del(section, option string) error
- func (c *Config) DelSection(section string) error
- func (c *Config) Dependencies() instance.Dependencies
- func (c *Config) Get(section, option string) ([]string, bool, error)
- func (c *Config) GetBool(section, option string) (bool, bool, error)
- func (c *Config) GetBoolDefault(section, option string, def bool) (bool, error)
- func (c *Config) GetDependentInstance(_ instance.ID) instance.DependencyInstance
- func (c *Config) GetInt(section, option string) (int, bool, error)
- func (c *Config) GetIntDefault(section, option string, def int) (int, error)
- func (c *Config) GetIntList(section, option string) ([]int, bool, error)
- func (c *Config) GetLast(section, option string) (string, bool, error)
- func (c *Config) GetSections(secType string) ([]string, bool, error)
- func (c *Config) GetStringDefault(section, option string, def string) (string, error)
- func (c *Config) ID() instance.ID
- func (c *Config) OnServiceListChanged()
- func (c *Config) Set(section, option string, values ...string) (bool, error)
- func (c *Config) SetDependenciesChangedHandler(_ func())
- func (c *Config) SetDependency(i instance.DependencyInstance)
- func (c *Config) SetServiceListGetter(_ func() []string)
- func (c *Config) Start()
- func (c *Config) Stop()
- func (c *Config) UnsetDependency(id instance.ID)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(id instance.ID, logger instance.LoggerFunc, error instance.ErrorFunc, selfkill instance.SelfKillFunc, _ manifest.Configurator) instance.Instance
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) AddSection ¶
func (*Config) DelSection ¶
func (*Config) Dependencies ¶
func (c *Config) Dependencies() instance.Dependencies
func (*Config) GetBoolDefault ¶
func (*Config) GetDependentInstance ¶
func (c *Config) GetDependentInstance(_ instance.ID) instance.DependencyInstance
In theory an instance could call this method with an suspicious argument. Currently this is not dangerous because all instances that have access to an filesystem instance have the same rights
func (*Config) GetIntDefault ¶
func (*Config) GetIntList ¶
func (*Config) GetStringDefault ¶
func (*Config) OnServiceListChanged ¶
func (c *Config) OnServiceListChanged()
func (*Config) SetDependenciesChangedHandler ¶
func (c *Config) SetDependenciesChangedHandler(_ func())
func (*Config) SetDependency ¶
func (c *Config) SetDependency(i instance.DependencyInstance)
func (*Config) SetServiceListGetter ¶
func (*Config) UnsetDependency ¶
Click to show internal directories.
Click to hide internal directories.