handlers

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnodotEventhandler

type AnodotEventhandler struct {
	// contains filtered or unexported fields
}

func NewAnodotEventHandler

func NewAnodotEventHandler(anodotURL string, apiToken string, config configuration.Configuration) (*AnodotEventhandler, error)

func (*AnodotEventhandler) Handle

func (a *AnodotEventhandler) Handle(event Event)

type ConfigmapHandler

type ConfigmapHandler struct {
	configuration.EventConfig
}

func (*ConfigmapHandler) EventData

func (c *ConfigmapHandler) EventData(event Event) ([]events.Event, error)

func (*ConfigmapHandler) SupportedEvent

func (c *ConfigmapHandler) SupportedEvent() string

type DaemonsetHandler

type DaemonsetHandler struct {
	configuration.EventConfig
}

func (*DaemonsetHandler) EventData

func (d *DaemonsetHandler) EventData(event Event) ([]events.Event, error)

func (*DaemonsetHandler) SupportedEvent

func (d *DaemonsetHandler) SupportedEvent() string

type DeploymentHandler

type DeploymentHandler struct {
	configuration.EventConfig
}

func (*DeploymentHandler) EventData

func (d *DeploymentHandler) EventData(event Event) ([]events.Event, error)

func (*DeploymentHandler) SupportedEvent

func (d *DeploymentHandler) SupportedEvent() string

type Event

type Event struct {
	Key          string
	EventType    string
	ResourceType string

	EventTime time.Time

	//optional fields
	New, Old interface{}
}

func (Event) String

func (e Event) String() string

type JobHandler

type JobHandler struct {
	configuration.EventConfig
}

func (*JobHandler) EventData

func (d *JobHandler) EventData(event Event) ([]events.Event, error)

func (*JobHandler) SupportedEvent

func (d *JobHandler) SupportedEvent() string

type KubernetesEventsHandler

type KubernetesEventsHandler interface {
	//multiple Anodot Events could be generated from single Kubernetes event
	EventData(event Event) ([]events.Event, error)
	SupportedEvent() string
}

type SecretHandler

type SecretHandler struct {
	configuration.EventConfig
}

func (*SecretHandler) EventData

func (d *SecretHandler) EventData(event Event) ([]events.Event, error)

func (*SecretHandler) SupportedEvent

func (d *SecretHandler) SupportedEvent() string

type StatefulSetHandler

type StatefulSetHandler struct {
	configuration.EventConfig
}

func (*StatefulSetHandler) EventData

func (s *StatefulSetHandler) EventData(event Event) ([]events.Event, error)

func (*StatefulSetHandler) SupportedEvent

func (s *StatefulSetHandler) SupportedEvent() string

Jump to

Keyboard shortcuts

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