persist

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapPersist

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

func (*ConfigMapPersist) Get

func (cmp *ConfigMapPersist) Get(key string) (*Event, error)

func (*ConfigMapPersist) IsEnabled

func (cmp *ConfigMapPersist) IsEnabled() bool

func (*ConfigMapPersist) Save

func (cmp *ConfigMapPersist) Save(event *Event) error

type Event

type Event struct {
	EventKey     string
	EventPayload string
}

type EventPersist

type EventPersist interface {
	Save(event *Event) error
	Get(key string) (*Event, error)
	IsEnabled() bool
}

func NewConfigMapPersist

func NewConfigMapPersist(ctx context.Context, client kubernetes.Interface, configmap *v1alpha1.ConfigMapPersistence, namespace string) (EventPersist, error)

type NullPersistence

type NullPersistence struct {
}

func (*NullPersistence) Get

func (n *NullPersistence) Get(key string) (*Event, error)

func (*NullPersistence) IsEnabled

func (cmp *NullPersistence) IsEnabled() bool

func (*NullPersistence) Save

func (n *NullPersistence) Save(event *Event) error

Jump to

Keyboard shortcuts

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