store

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package store provides interfaces for storing objects

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionStore

type ActionStore interface {
	GetAll() ([]*tarianpb.Action, error)
	FindByNamespace(namespace string) ([]*tarianpb.Action, error)
	NamespaceAndNameExist(namespace, name string) (bool, error)
	Add(*tarianpb.Action) error
	RemoveByNamespaceAndName(namespace, name string) error
}

type ConstraintStore

type ConstraintStore interface {
	GetAll() ([]*tarianpb.Constraint, error)
	FindByNamespace(namespace string) ([]*tarianpb.Constraint, error)
	NamespaceAndNameExist(namespace, name string) (bool, error)
	Add(*tarianpb.Constraint) error
	RemoveByNamespaceAndName(namespace, name string) error
}

type EventStore

type EventStore interface {
	GetAll(limit uint) ([]*tarianpb.Event, error)
	FindByNamespace(namespace string, limit uint) ([]*tarianpb.Event, error)
	FindWhereAlertNotSent() ([]*tarianpb.Event, error)
	Add(*tarianpb.Event) error
	UpdateAlertSent(uid string) error
}

type StoreSet added in v0.0.12

type StoreSet struct {
	ActionStore     ActionStore
	ConstraintStore ConstraintStore
	EventStore      EventStore
}

Jump to

Keyboard shortcuts

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