Documentation ¶
Index ¶
- Variables
- func Base() string
- func Execute(c Context) int
- func RealDir(path string) (string, error)
- type CompositeConfigSource
- func (this *CompositeConfigSource) GetArgs(runtime string) map[string]string
- func (this *CompositeConfigSource) GetExecutable(runtime string) string
- func (this *CompositeConfigSource) GetRuntime() string
- func (this *CompositeConfigSource) GetUse() []string
- func (this *CompositeConfigSource) Locate(paths []string, entry string) string
- func (this *CompositeConfigSource) String() string
- func (this *CompositeConfigSource) Valid() bool
- type ConfigSource
- type Context
- type EnvironmentConfigSource
- func (this *EnvironmentConfigSource) GetArgs(runtime string) map[string]string
- func (this *EnvironmentConfigSource) GetExecutable(runtime string) string
- func (this *EnvironmentConfigSource) GetRuntime() string
- func (this *EnvironmentConfigSource) GetUse() []string
- func (this *EnvironmentConfigSource) Locate(paths []string, entry string) string
- func (this *EnvironmentConfigSource) String() string
- func (this *EnvironmentConfigSource) Valid() bool
- type Executor
- type IniConfigSource
- func (this *IniConfigSource) GetArgs(runtime string) map[string]string
- func (this *IniConfigSource) GetExecutable(runtime string) string
- func (this *IniConfigSource) GetRuntime() string
- func (this *IniConfigSource) GetUse() []string
- func (this *IniConfigSource) Locate(paths []string, entry string) string
- func (this *IniConfigSource) String() string
- func (this *IniConfigSource) Valid() bool
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Log log.Logger
)
Functions ¶
Types ¶
type CompositeConfigSource ¶
type CompositeConfigSource struct {
// contains filtered or unexported fields
}
func (*CompositeConfigSource) GetArgs ¶
func (this *CompositeConfigSource) GetArgs(runtime string) map[string]string
func (*CompositeConfigSource) GetExecutable ¶
func (this *CompositeConfigSource) GetExecutable(runtime string) string
func (*CompositeConfigSource) GetRuntime ¶
func (this *CompositeConfigSource) GetRuntime() string
func (*CompositeConfigSource) GetUse ¶
func (this *CompositeConfigSource) GetUse() []string
func (*CompositeConfigSource) Locate ¶
func (this *CompositeConfigSource) Locate(paths []string, entry string) string
func (*CompositeConfigSource) String ¶
func (this *CompositeConfigSource) String() string
func (*CompositeConfigSource) Valid ¶
func (this *CompositeConfigSource) Valid() bool
type ConfigSource ¶
type ConfigSource interface { Valid() bool GetUse() []string GetRuntime() string GetExecutable(runtime string) string GetArgs(runtime string) map[string]string Locate([]string, string) string String() string }
func NewCompositeConfigSource ¶
func NewCompositeConfigSource(sources ...ConfigSource) ConfigSource
type EnvironmentConfigSource ¶
type EnvironmentConfigSource struct{}
func NewEnvironmentConfigSource ¶
func NewEnvironmentConfigSource() *EnvironmentConfigSource
func (*EnvironmentConfigSource) GetArgs ¶
func (this *EnvironmentConfigSource) GetArgs(runtime string) map[string]string
func (*EnvironmentConfigSource) GetExecutable ¶
func (this *EnvironmentConfigSource) GetExecutable(runtime string) string
func (*EnvironmentConfigSource) GetRuntime ¶
func (this *EnvironmentConfigSource) GetRuntime() string
func (*EnvironmentConfigSource) GetUse ¶
func (this *EnvironmentConfigSource) GetUse() []string
func (*EnvironmentConfigSource) Locate ¶
func (this *EnvironmentConfigSource) Locate(paths []string, entry string) string
func (*EnvironmentConfigSource) String ¶
func (this *EnvironmentConfigSource) String() string
func (*EnvironmentConfigSource) Valid ¶
func (this *EnvironmentConfigSource) Valid() bool
type IniConfigSource ¶
type IniConfigSource struct {
// contains filtered or unexported fields
}
func IniConfigSourceFromFile ¶
func IniConfigSourceFromFile(paths ...string) *IniConfigSource
func (*IniConfigSource) GetArgs ¶
func (this *IniConfigSource) GetArgs(runtime string) map[string]string
func (*IniConfigSource) GetExecutable ¶
func (this *IniConfigSource) GetExecutable(runtime string) string
func (*IniConfigSource) GetRuntime ¶
func (this *IniConfigSource) GetRuntime() string
func (*IniConfigSource) GetUse ¶
func (this *IniConfigSource) GetUse() []string
func (*IniConfigSource) Locate ¶
func (this *IniConfigSource) Locate(paths []string, entry string) string
func (*IniConfigSource) String ¶
func (this *IniConfigSource) String() string
func (*IniConfigSource) Valid ¶
func (this *IniConfigSource) Valid() bool
Click to show internal directories.
Click to hide internal directories.