provider

package
v0.2.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderName = "StackOverflow"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	EmitEvent(event v1.Event) error
	GetName() string
}

Provider is an interface for the answers provider.

type StackOverflowProvider

type StackOverflowProvider struct {
	Recorder record.EventRecorder
	Log      logr.Logger
}

StackOverflowProvider defines the StackOverflow provider.

func (*StackOverflowProvider) EmitEvent

func (s *StackOverflowProvider) EmitEvent(event v1.Event) error

EmitEvent fires an event if an answer for an error was found.

func (*StackOverflowProvider) GetName added in v0.2.9

func (s *StackOverflowProvider) GetName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL