Documentation ¶
Index ¶
- type Evaluator
- type EvaluatorSourceMapping
- type LuaDescriptor
- type Operator
- type Resource
- type Storage
- type StorageImpl
- func (stor *StorageImpl) AddSourcesToEvaluator(ctx context.Context, evaluator_id string, sources []*Resource) error
- func (stor *StorageImpl) CreateEvaluator(ctx context.Context, e *Evaluator) (*Evaluator, error)
- func (stor *StorageImpl) DeleteEvaluator(ctx context.Context, id string) error
- func (stor *StorageImpl) ExistEvaluator(ctx context.Context, e *Evaluator) (bool, error)
- func (stor *StorageImpl) ExistOperator(ctx context.Context, o *Operator) (bool, error)
- func (stor *StorageImpl) GetDBConn(ctx context.Context) *gorm.DB
- func (stor *StorageImpl) GetEvaluator(ctx context.Context, id string) (*Evaluator, error)
- func (stor *StorageImpl) GetRootDBConn() *gorm.DB
- func (stor *StorageImpl) ListEvaluators(ctx context.Context, e *Evaluator) ([]*Evaluator, error)
- func (stor *StorageImpl) ListEvaluatorsBySource(ctx context.Context, src *Resource) ([]*Evaluator, error)
- func (stor *StorageImpl) PatchEvaluator(ctx context.Context, id string, e *Evaluator) (*Evaluator, error)
- func (stor *StorageImpl) RemoveSourcesFromEvaluator(ctx context.Context, evaluator_id string, sources []*Resource) error
- type StorageImplOption
- type TracedStorage
- func (s *TracedStorage) AddSourcesToEvaluator(ctx context.Context, evaluator_id string, sources []*Resource) error
- func (s *TracedStorage) CreateEvaluator(ctx context.Context, e *Evaluator) (*Evaluator, error)
- func (s *TracedStorage) DeleteEvaluator(ctx context.Context, id string) error
- func (s *TracedStorage) ExistEvaluator(ctx context.Context, e *Evaluator) (bool, error)
- func (s *TracedStorage) ExistOperator(ctx context.Context, o *Operator) (bool, error)
- func (s *TracedStorage) GetEvaluator(ctx context.Context, id string) (*Evaluator, error)
- func (s *TracedStorage) ListEvaluators(ctx context.Context, e *Evaluator) ([]*Evaluator, error)
- func (s *TracedStorage) PatchEvaluator(ctx context.Context, id string, e *Evaluator) (*Evaluator, error)
- func (s *TracedStorage) RemoveSourcesFromEvaluator(ctx context.Context, evaluator_id string, sources []*Resource) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvaluatorSourceMapping ¶
type LuaDescriptor ¶
type Storage ¶
type Storage interface { CreateEvaluator(context.Context, *Evaluator) (*Evaluator, error) DeleteEvaluator(ctx context.Context, id string) error PatchEvaluator(ctx context.Context, id string, evaluator *Evaluator) (*Evaluator, error) GetEvaluator(ctx context.Context, id string) (*Evaluator, error) ListEvaluators(context.Context, *Evaluator) ([]*Evaluator, error) ListEvaluatorsBySource(context.Context, *Resource) ([]*Evaluator, error) AddSourcesToEvaluator(ctx context.Context, evaluator_id string, sources []*Resource) error RemoveSourcesFromEvaluator(ctx context.Context, evaluator_id string, sources []*Resource) error ExistEvaluator(context.Context, *Evaluator) (bool, error) ExistOperator(context.Context, *Operator) (bool, error) }
func NewStorage ¶
func NewStorageImpl ¶
func NewTracedStorage ¶
func NewTracedStorage(s *StorageImpl) (Storage, error)
type StorageImpl ¶
type StorageImpl struct {
// contains filtered or unexported fields
}
func (*StorageImpl) AddSourcesToEvaluator ¶
func (*StorageImpl) CreateEvaluator ¶
func (*StorageImpl) DeleteEvaluator ¶
func (stor *StorageImpl) DeleteEvaluator(ctx context.Context, id string) error
func (*StorageImpl) ExistEvaluator ¶
func (*StorageImpl) ExistOperator ¶
func (*StorageImpl) GetEvaluator ¶
func (*StorageImpl) GetRootDBConn ¶
func (stor *StorageImpl) GetRootDBConn() *gorm.DB
func (*StorageImpl) ListEvaluators ¶
func (*StorageImpl) ListEvaluatorsBySource ¶
func (*StorageImpl) PatchEvaluator ¶
func (*StorageImpl) RemoveSourcesFromEvaluator ¶
type StorageImplOption ¶
type StorageImplOption struct {
IsTraced bool
}
type TracedStorage ¶
type TracedStorage struct { *opentracing_storage_helper.BaseTracedStorage *StorageImpl }
func (*TracedStorage) AddSourcesToEvaluator ¶
func (*TracedStorage) CreateEvaluator ¶
func (*TracedStorage) DeleteEvaluator ¶
func (s *TracedStorage) DeleteEvaluator(ctx context.Context, id string) error
func (*TracedStorage) ExistEvaluator ¶
func (*TracedStorage) ExistOperator ¶
func (*TracedStorage) GetEvaluator ¶
func (*TracedStorage) ListEvaluators ¶
func (*TracedStorage) PatchEvaluator ¶
func (*TracedStorage) RemoveSourcesFromEvaluator ¶
Click to show internal directories.
Click to hide internal directories.