Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func (*Factory) NewProvider ¶
func (f *Factory) NewProvider(providerCfg *config.PipedAnalysisProvider) (provider Provider, err error)
NewProvider generates an appropriate provider according to analysis provider config.
type Provider ¶
type Provider interface { analysisprovider.Provider // RunQuery runs the given query against the log provider, // and then checks if there is at least one error log.. RunQuery(ctx context.Context, query string) (result bool, err error) }
Provider represents a client for log provider which provides logs for analysis.
Click to show internal directories.
Click to hide internal directories.