Documentation ¶
Index ¶
- Constants
- type DbusService
- type MissingFieldError
- type Model
- type ServiceConfig
- type TestComp
- func (tc *TestComp) AddBaseModel() *TestComp
- func (tc *TestComp) AddModel(name string, modules []string, modelSets []string) *TestComp
- func (tc *TestComp) AddModelWithCheckImport(name string, modules []string, modelSets []string, checkOnlyImports []string) *TestComp
- func (tc *TestComp) ServiceName() string
- func (tc *TestComp) SetAfter(after ...string) *TestComp
- func (tc *TestComp) SetBefore(before ...string) *TestComp
- func (tc *TestComp) SetDefault() *TestComp
- func (tc *TestComp) SetPrefix(prefix string) *TestComp
- func (tc *TestComp) String() string
Constants ¶
View Source
const ( // 'Base' is used rather than default to avoid confusion with the // 'default' component which has NO explicitly assigned modules and // instead owns all unowned modules. BaseModelSet = "vyatta-v1" BaseNameAndModelPrefix = "net.vyatta.test" BaseModulePrefix = "vyatta-test" BaseVersion = "v1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbusService ¶
type MissingFieldError ¶
type MissingFieldError error
type Model ¶
type Model struct { Name string ExecName string ModelSets []string Modules []string ImportsForCheck []string }
func (*Model) FilePrefix ¶
func (*Model) GenerateDbusConfig ¶
func (*Model) GenerateDbusService ¶
type ServiceConfig ¶
type ServiceConfig struct { Description string Name string ExecName string ConfigFiles []string Before []string // This service starts BEFORE services listed here After []string // This service starts AFTER services listed here StartOnBoot bool Ephemeral bool DefaultComp bool ModelByName map[string]*Model ModelByModelSet map[string]*Model }
func LoadComponentConfigDir ¶
func LoadComponentConfigDir(dir string) ([]*ServiceConfig, error)
func ParseConfiguration ¶
func ParseConfiguration(input []byte) (*ServiceConfig, error)
func (*ServiceConfig) FilePrefix ¶
func (comp *ServiceConfig) FilePrefix() string
func (*ServiceConfig) GenerateDbusConfig ¶
func (comp *ServiceConfig) GenerateDbusConfig() []byte
func (*ServiceConfig) GenerateDbusService ¶
func (comp *ServiceConfig) GenerateDbusService() []byte
func (*ServiceConfig) GenerateSystemdService ¶
func (comp *ServiceConfig) GenerateSystemdService() []byte
type TestComp ¶
type TestComp struct {
// contains filtered or unexported fields
}
func (*TestComp) AddBaseModel ¶
func (*TestComp) AddModelWithCheckImport ¶
func (*TestComp) ServiceName ¶
func (*TestComp) SetDefault ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.