Documentation ¶
Index ¶
- type CPUCores
- type CollectRef
- type CoreReadFilePath
- type Distiller
- type Eval
- func (v *Eval) DistillReader(r io.Reader, result collecttypes.Result) (interface{}, error)
- func (v *Eval) Evaluate(data map[string]interface{}) (interface{}, error)
- func (v *Eval) ExtractValue(distilled interface{}) (interface{}, error)
- func (v *Eval) MatchResults(index []collecttypes.Result) ([]collecttypes.Result, error)
- type Evaluator
- type FileMatch
- type Interface
- type Loadavg
- type Loadavg1
- type Loadavg15
- type Loadavg5
- type MemoryUsageAvailable
- type MemoryUsageTotal
- type Os
- type OsUptime
- type ResultDistiller
- type WhichCloud
- func (v *WhichCloud) DistillReader(r io.Reader, result collecttypes.Result) (interface{}, error)
- func (v *WhichCloud) Evaluate(data map[string]interface{}) (interface{}, error)
- func (v *WhichCloud) ExtractValue(distilled interface{}) (interface{}, error)
- func (v *WhichCloud) MatchResults(index []collecttypes.Result) ([]collecttypes.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUCores ¶
type CPUCores struct { }
func (*CPUCores) DistillReader ¶
func (*CPUCores) ExtractValue ¶
func (*CPUCores) MatchResults ¶
func (v *CPUCores) MatchResults(index []collecttypes.Result) ([]collecttypes.Result, error)
type CollectRef ¶
type CollectRef struct { meta.Ref `json:",inline" yaml:",inline" hcl:",inline"` Distiller `json:",inline" yaml:",inline" hcl:",inline"` }
func (*CollectRef) DistillReader ¶
func (v *CollectRef) DistillReader(r io.Reader, result collecttypes.Result) (interface{}, error)
func (*CollectRef) ExtractValue ¶
func (v *CollectRef) ExtractValue(distilled interface{}) (interface{}, error)
func (*CollectRef) MatchResults ¶
func (v *CollectRef) MatchResults(index []collecttypes.Result) (results []collecttypes.Result, err error)
type CoreReadFilePath ¶
type CoreReadFilePath struct { Paths []string `json:"paths" yaml:"path" hcl:"paths"` Distiller `json:",inline" yaml:",inline" hcl:",inline"` }
func (*CoreReadFilePath) DistillReader ¶
func (v *CoreReadFilePath) DistillReader(r io.Reader, result collecttypes.Result) (interface{}, error)
func (*CoreReadFilePath) ExtractValue ¶
func (v *CoreReadFilePath) ExtractValue(distilled interface{}) (interface{}, error)
func (*CoreReadFilePath) MatchResults ¶
func (v *CoreReadFilePath) MatchResults(index []collecttypes.Result) ([]collecttypes.Result, error)
type Distiller ¶
type Distiller struct { Scannable bool `json:"scannable,omitempty" yaml:"scannable,omitempty" hcl:"scannable,omitempty"` Eval *distiller.Eval `json:"eval,omitempty" yaml:"eval,omitempty" hcl:"eval,omitempty"` Identity *distiller.Identity `json:"identity,omitempty" yaml:"identity,omitempty" hcl:"identity,omitempty"` RegexpCapture *distiller.RegexpCapture `json:"regexpCapture,omitempty" yaml:"regexpCapture,omitempty" hcl:"regexpCapture,omitempty"` RegexpCaptureAll *distiller.RegexpCaptureAll `json:"regexpCaptureAll,omitempty" yaml:"regexpCaptureAll,omitempty" hcl:"regexpCaptureAll,omitempty"` }
type Eval ¶
type Eval string
func (*Eval) DistillReader ¶
func (*Eval) ExtractValue ¶
func (*Eval) MatchResults ¶
func (v *Eval) MatchResults(index []collecttypes.Result) ([]collecttypes.Result, error)
type FileMatch ¶
type FileMatch struct { PathRegexps []string `json:"pathRegexps" yaml:"pathRegexps" hcl:"pathRegexps"` Distiller `json:",inline" yaml:",inline" hcl:",inline"` }
func (*FileMatch) DistillReader ¶
func (*FileMatch) ExtractValue ¶
func (*FileMatch) MatchResults ¶
func (v *FileMatch) MatchResults(index []collecttypes.Result) ([]collecttypes.Result, error)
type Interface ¶
type Interface interface { ResultDistiller }
Interface is the Variable interface FIXME: This interface is really awkward. Variables like eval and whichCloud are only really Evaluators.
type Loadavg ¶
type Loadavg struct { }
func (*Loadavg) DistillReader ¶
func (*Loadavg) ExtractValue ¶
func (*Loadavg) MatchResults ¶
func (v *Loadavg) MatchResults(index []collecttypes.Result) ([]collecttypes.Result, error)
type Loadavg1 ¶
type Loadavg1 struct { }
func (*Loadavg1) DistillReader ¶
func (*Loadavg1) ExtractValue ¶
func (*Loadavg1) MatchResults ¶
func (v *Loadavg1) MatchResults(index []collecttypes.Result) ([]collecttypes.Result, error)
type Loadavg15 ¶
type Loadavg15 struct { }
func (*Loadavg15) DistillReader ¶
func (*Loadavg15) ExtractValue ¶
func (*Loadavg15) MatchResults ¶
func (v *Loadavg15) MatchResults(index []collecttypes.Result) ([]collecttypes.Result, error)
type Loadavg5 ¶
type Loadavg5 struct { }
func (*Loadavg5) DistillReader ¶
func (*Loadavg5) ExtractValue ¶
func (*Loadavg5) MatchResults ¶
func (v *Loadavg5) MatchResults(index []collecttypes.Result) ([]collecttypes.Result, error)
type MemoryUsageAvailable ¶
type MemoryUsageAvailable struct { }
func (*MemoryUsageAvailable) DistillReader ¶
func (v *MemoryUsageAvailable) DistillReader(r io.Reader, result collecttypes.Result) (interface{}, error)
func (*MemoryUsageAvailable) ExtractValue ¶
func (v *MemoryUsageAvailable) ExtractValue(distilled interface{}) (interface{}, error)
func (*MemoryUsageAvailable) MatchResults ¶
func (v *MemoryUsageAvailable) MatchResults(index []collecttypes.Result) ([]collecttypes.Result, error)
type MemoryUsageTotal ¶
type MemoryUsageTotal struct { }
func (*MemoryUsageTotal) DistillReader ¶
func (v *MemoryUsageTotal) DistillReader(r io.Reader, result collecttypes.Result) (interface{}, error)
func (*MemoryUsageTotal) ExtractValue ¶
func (v *MemoryUsageTotal) ExtractValue(distilled interface{}) (interface{}, error)
func (*MemoryUsageTotal) MatchResults ¶
func (v *MemoryUsageTotal) MatchResults(index []collecttypes.Result) ([]collecttypes.Result, error)
type Os ¶
type Os struct { }
func (*Os) DistillReader ¶
func (*Os) ExtractValue ¶
func (*Os) MatchResults ¶
func (v *Os) MatchResults(index []collecttypes.Result) ([]collecttypes.Result, error)
type OsUptime ¶
type OsUptime struct { }
func (*OsUptime) DistillReader ¶
func (*OsUptime) ExtractValue ¶
func (*OsUptime) MatchResults ¶
func (v *OsUptime) MatchResults(index []collecttypes.Result) ([]collecttypes.Result, error)
type ResultDistiller ¶
type ResultDistiller interface { MatchResults(index []collecttypes.Result) ([]collecttypes.Result, error) DistillReader(r io.Reader, result collecttypes.Result) (interface{}, error) ExtractValue(distilled interface{}) (interface{}, error) }
type WhichCloud ¶
type WhichCloud struct {
VariableRef string `json:"variableRef" yaml:"variableRef" hcl:"variableRef"`
}
func (*WhichCloud) DistillReader ¶
func (v *WhichCloud) DistillReader(r io.Reader, result collecttypes.Result) (interface{}, error)
func (*WhichCloud) Evaluate ¶
func (v *WhichCloud) Evaluate(data map[string]interface{}) (interface{}, error)
func (*WhichCloud) ExtractValue ¶
func (v *WhichCloud) ExtractValue(distilled interface{}) (interface{}, error)
func (*WhichCloud) MatchResults ¶
func (v *WhichCloud) MatchResults(index []collecttypes.Result) ([]collecttypes.Result, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.