Documentation ¶
Index ¶
- Constants
- func BytesToStr(bytes []byte) string
- func FlatMap(m map[string]interface{}) map[string]interface{}
- func ForEachComponentProcessor(callback func(string, goo.Type) error) (err error)
- func ForEachComponentType(callback func(string, goo.Type) error) (err error)
- func GenerateUUID(uuidBuffer []byte)
- func GetComponentTypes(requestedType goo.Type) ([]goo.Type, error)
- func GetComponentTypesWithParam(requestedType goo.Type, paramTypes []goo.Type) ([]goo.Type, error)
- func Register(components ...Component)
- type AppFileParser
- type AppFilePropertySource
- func (propertySource *AppFilePropertySource) ContainsProperty(name string) bool
- func (propertySource *AppFilePropertySource) GetName() string
- func (propertySource *AppFilePropertySource) GetProperty(name string) interface{}
- func (propertySource *AppFilePropertySource) GetPropertyNames() []string
- func (propertySource *AppFilePropertySource) GetSource() interface{}
- type BooleanToStringConverter
- type CommandLineArgs
- type CommandLinePropertySource
- type Component
- type ComponentProcessor
- type ConfigurableEnvironment
- type DefaultTypeConverterService
- func (cs *DefaultTypeConverterService) CanConvert(sourceTyp goo.Type, targetTyp goo.Type) bool
- func (cs *DefaultTypeConverterService) Convert(source interface{}, sourceTyp goo.Type, targetTyp goo.Type) (result interface{}, err error)
- func (cs *DefaultTypeConverterService) RegisterConverter(converter TypeConverter)
- type Environment
- type NumberToStringConverter
- type Priority
- type PriorityValue
- type PropertyResolver
- type PropertySource
- type PropertySources
- func (o *PropertySources) Add(propertySource PropertySource)
- func (o *PropertySources) Get(name string) (PropertySource, bool)
- func (o *PropertySources) GetPropertyResources() []PropertySource
- func (o *PropertySources) GetSize() int
- func (o *PropertySources) Remove(name string) PropertySource
- func (o *PropertySources) RemoveIfPresent(propertySource PropertySource)
- func (o *PropertySources) Replace(name string, propertySource PropertySource)
- type SimpleCommandLineArgsParser
- type SimpleCommandLinePropertySource
- func (cmdLineSource SimpleCommandLinePropertySource) ContainsOption(name string) bool
- func (cmdLineSource SimpleCommandLinePropertySource) ContainsProperty(name string) bool
- func (cmdLineSource SimpleCommandLinePropertySource) GetName() string
- func (cmdLineSource SimpleCommandLinePropertySource) GetNonOptionArgs() []string
- func (cmdLineSource SimpleCommandLinePropertySource) GetOptionValues(name string) []string
- func (cmdLineSource SimpleCommandLinePropertySource) GetProperty(name string) interface{}
- func (cmdLineSource SimpleCommandLinePropertySource) GetPropertyNames() []string
- func (cmdLineSource SimpleCommandLinePropertySource) GetSource() interface{}
- type SimplePropertyResolver
- type StandardEnvironment
- func (env StandardEnvironment) ContainsProperty(name string) bool
- func (env StandardEnvironment) GetProperty(name string, defaultValue string) interface{}
- func (env StandardEnvironment) GetPropertySources() *PropertySources
- func (env StandardEnvironment) GetSystemEnvironment() []string
- func (env StandardEnvironment) GetTypeConverterService() TypeConverterService
- type StringToBooleanConverter
- type StringToNumberConverter
- type SystemEnvironmentPropertySource
- func (propertySource SystemEnvironmentPropertySource) ContainsProperty(name string) bool
- func (propertySource SystemEnvironmentPropertySource) GetName() string
- func (propertySource SystemEnvironmentPropertySource) GetProperty(name string) interface{}
- func (propertySource SystemEnvironmentPropertySource) GetPropertyNames() []string
- func (propertySource SystemEnvironmentPropertySource) GetSource() interface{}
- type TaskWatch
- type TypeConverter
- type TypeConverterRegistry
- type TypeConverterService
Constants ¶
View Source
const NonOptionArgsPropertyName = "nonOptionArgs"
View Source
const ProcyonAppFilePath = "test-resources/"
View Source
const ProcyonAppFilePrefix = "procyon"
View Source
const ProcyonAppFilePropertySource = "ProcyonAppFilePropertySource"
View Source
const ProcyonAppFileSuffix = ".yaml"
View Source
const ProcyonApplicationCommandLinePropertySource = "ProcyonApplicationCommandLinePropertySource"
View Source
const ProcyonDefaultProfile = "default"
View Source
const ProcyonSystemEnvironmentPropertySource = "ProcyonSystemEnvironmentPropertySource"
Variables ¶
This section is empty.
Functions ¶
func BytesToStr ¶
func ForEachComponentType ¶
func GenerateUUID ¶
func GenerateUUID(uuidBuffer []byte)
Types ¶
type AppFileParser ¶
type AppFileParser struct { }
func NewAppFileParser ¶
func NewAppFileParser() *AppFileParser
type AppFilePropertySource ¶
type AppFilePropertySource struct {
// contains filtered or unexported fields
}
func NewAppFilePropertySource ¶
func NewAppFilePropertySource(profiles string) *AppFilePropertySource
func (*AppFilePropertySource) ContainsProperty ¶
func (propertySource *AppFilePropertySource) ContainsProperty(name string) bool
func (*AppFilePropertySource) GetName ¶
func (propertySource *AppFilePropertySource) GetName() string
func (*AppFilePropertySource) GetProperty ¶
func (propertySource *AppFilePropertySource) GetProperty(name string) interface{}
func (*AppFilePropertySource) GetPropertyNames ¶
func (propertySource *AppFilePropertySource) GetPropertyNames() []string
func (*AppFilePropertySource) GetSource ¶
func (propertySource *AppFilePropertySource) GetSource() interface{}
type BooleanToStringConverter ¶
type BooleanToStringConverter struct { }
func NewBooleanToStringConverter ¶
func NewBooleanToStringConverter() BooleanToStringConverter
type CommandLineArgs ¶
type CommandLineArgs struct {
// contains filtered or unexported fields
}
func NewCommandLineArgs ¶
func NewCommandLineArgs() CommandLineArgs
type ComponentProcessor ¶
type ConfigurableEnvironment ¶
type ConfigurableEnvironment interface { Environment GetPropertySources() *PropertySources GetSystemEnvironment() []string GetTypeConverterService() TypeConverterService }
type DefaultTypeConverterService ¶
type DefaultTypeConverterService struct {
// contains filtered or unexported fields
}
func NewDefaultTypeConverterService ¶
func NewDefaultTypeConverterService() *DefaultTypeConverterService
func (*DefaultTypeConverterService) CanConvert ¶
func (*DefaultTypeConverterService) RegisterConverter ¶
func (cs *DefaultTypeConverterService) RegisterConverter(converter TypeConverter)
type Environment ¶
type Environment interface { PropertyResolver }
type NumberToStringConverter ¶
type NumberToStringConverter struct { }
func NewNumberToStringConverter ¶
func NewNumberToStringConverter() NumberToStringConverter
type Priority ¶
type Priority interface {
GetPriority() PriorityValue
}
type PriorityValue ¶
type PriorityValue int32
const PriorityHighest PriorityValue = math.MinInt32
const PriorityLowest PriorityValue = math.MaxInt32
type PropertyResolver ¶
type PropertySource ¶
type PropertySources ¶
type PropertySources struct {
// contains filtered or unexported fields
}
func NewPropertySources ¶
func NewPropertySources() *PropertySources
func (*PropertySources) Add ¶
func (o *PropertySources) Add(propertySource PropertySource)
func (*PropertySources) Get ¶
func (o *PropertySources) Get(name string) (PropertySource, bool)
func (*PropertySources) GetPropertyResources ¶
func (o *PropertySources) GetPropertyResources() []PropertySource
func (*PropertySources) GetSize ¶
func (o *PropertySources) GetSize() int
func (*PropertySources) Remove ¶
func (o *PropertySources) Remove(name string) PropertySource
func (*PropertySources) RemoveIfPresent ¶
func (o *PropertySources) RemoveIfPresent(propertySource PropertySource)
func (*PropertySources) Replace ¶
func (o *PropertySources) Replace(name string, propertySource PropertySource)
type SimpleCommandLineArgsParser ¶
type SimpleCommandLineArgsParser struct { }
func NewCommandLineArgsParser ¶
func NewCommandLineArgsParser() SimpleCommandLineArgsParser
func (SimpleCommandLineArgsParser) Parse ¶
func (parser SimpleCommandLineArgsParser) Parse(args []string) (CommandLineArgs, error)
type SimpleCommandLinePropertySource ¶
type SimpleCommandLinePropertySource struct {
// contains filtered or unexported fields
}
func NewSimpleCommandLinePropertySource ¶
func NewSimpleCommandLinePropertySource(args []string) SimpleCommandLinePropertySource
func (SimpleCommandLinePropertySource) ContainsOption ¶
func (cmdLineSource SimpleCommandLinePropertySource) ContainsOption(name string) bool
func (SimpleCommandLinePropertySource) ContainsProperty ¶
func (cmdLineSource SimpleCommandLinePropertySource) ContainsProperty(name string) bool
func (SimpleCommandLinePropertySource) GetName ¶
func (cmdLineSource SimpleCommandLinePropertySource) GetName() string
func (SimpleCommandLinePropertySource) GetNonOptionArgs ¶
func (cmdLineSource SimpleCommandLinePropertySource) GetNonOptionArgs() []string
func (SimpleCommandLinePropertySource) GetOptionValues ¶
func (cmdLineSource SimpleCommandLinePropertySource) GetOptionValues(name string) []string
func (SimpleCommandLinePropertySource) GetProperty ¶
func (cmdLineSource SimpleCommandLinePropertySource) GetProperty(name string) interface{}
func (SimpleCommandLinePropertySource) GetPropertyNames ¶
func (cmdLineSource SimpleCommandLinePropertySource) GetPropertyNames() []string
func (SimpleCommandLinePropertySource) GetSource ¶
func (cmdLineSource SimpleCommandLinePropertySource) GetSource() interface{}
type SimplePropertyResolver ¶
type SimplePropertyResolver struct {
// contains filtered or unexported fields
}
func NewSimplePropertyResolver ¶
func NewSimplePropertyResolver(sources *PropertySources) *SimplePropertyResolver
func (*SimplePropertyResolver) ContainsProperty ¶
func (resolver *SimplePropertyResolver) ContainsProperty(name string) bool
func (*SimplePropertyResolver) GetProperty ¶
func (resolver *SimplePropertyResolver) GetProperty(name string, defaultValue string) interface{}
type StandardEnvironment ¶
type StandardEnvironment struct {
// contains filtered or unexported fields
}
func NewStandardEnvironment ¶
func NewStandardEnvironment() StandardEnvironment
func (StandardEnvironment) ContainsProperty ¶
func (env StandardEnvironment) ContainsProperty(name string) bool
func (StandardEnvironment) GetProperty ¶
func (env StandardEnvironment) GetProperty(name string, defaultValue string) interface{}
func (StandardEnvironment) GetPropertySources ¶
func (env StandardEnvironment) GetPropertySources() *PropertySources
func (StandardEnvironment) GetSystemEnvironment ¶
func (env StandardEnvironment) GetSystemEnvironment() []string
func (StandardEnvironment) GetTypeConverterService ¶
func (env StandardEnvironment) GetTypeConverterService() TypeConverterService
type StringToBooleanConverter ¶
type StringToBooleanConverter struct { }
func NewStringToBooleanConverter ¶
func NewStringToBooleanConverter() StringToBooleanConverter
type StringToNumberConverter ¶
type StringToNumberConverter struct { }
func NewStringToNumberConverter ¶
func NewStringToNumberConverter() StringToNumberConverter
type SystemEnvironmentPropertySource ¶
type SystemEnvironmentPropertySource struct {
// contains filtered or unexported fields
}
func NewSystemEnvironmentPropertySource ¶
func NewSystemEnvironmentPropertySource() SystemEnvironmentPropertySource
func (SystemEnvironmentPropertySource) ContainsProperty ¶
func (propertySource SystemEnvironmentPropertySource) ContainsProperty(name string) bool
func (SystemEnvironmentPropertySource) GetName ¶
func (propertySource SystemEnvironmentPropertySource) GetName() string
func (SystemEnvironmentPropertySource) GetProperty ¶
func (propertySource SystemEnvironmentPropertySource) GetProperty(name string) interface{}
func (SystemEnvironmentPropertySource) GetPropertyNames ¶
func (propertySource SystemEnvironmentPropertySource) GetPropertyNames() []string
func (SystemEnvironmentPropertySource) GetSource ¶
func (propertySource SystemEnvironmentPropertySource) GetSource() interface{}
type TaskWatch ¶
type TaskWatch struct {
// contains filtered or unexported fields
}
func NewTaskWatch ¶
func NewTaskWatch() *TaskWatch
func NewTaskWatchWithName ¶
func (*TaskWatch) GetTotalTime ¶
type TypeConverter ¶
type TypeConverterRegistry ¶
type TypeConverterRegistry interface {
RegisterConverter(converter TypeConverter)
}
Click to show internal directories.
Click to hide internal directories.