eventsrcsstoregorm

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct{ DB *gorm.DB }

func (*Store) AddProjectBinding

func (s *Store) AddProjectBinding(ctx context.Context, srcid apieventsrc.EventSourceID, pid apiproject.ProjectID, name, assoc, cfg string, approved bool, data *apieventsrc.EventSourceProjectBindingSettings) error

func (*Store) Get

func (*Store) GetProjectBindings

func (s *Store) GetProjectBindings(ctx context.Context, srcid *apieventsrc.EventSourceID, pid *apiproject.ProjectID, name, assoc string, onlyApproved bool) ([]*apieventsrc.EventSourceProjectBinding, error)

func (*Store) List

func (*Store) Setup

func (s *Store) Setup(ctx context.Context) error

func (*Store) Teardown

func (s *Store) Teardown(ctx context.Context) error

func (*Store) Update

func (*Store) UpdateProjectBinding

func (s *Store) UpdateProjectBinding(ctx context.Context, srcid apieventsrc.EventSourceID, pid apiproject.ProjectID, name string, approved bool, data *apieventsrc.EventSourceProjectBindingSettings) error

Jump to

Keyboard shortcuts

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