store

package
v0.0.0-...-de44970 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventStore

type EventStore struct {
}

func NewEventStore

func NewEventStore() EventStore

func (EventStore) GetEvent

func (s EventStore) GetEvent(tx *dbr.Tx, projectID, eventID int) (*models.Event, error)

func (EventStore) GetEventDetailsMap

func (s EventStore) GetEventDetailsMap(tx *dbr.Tx, nodeRef models.NodeRef) (map[string]interface{}, error)

func (EventStore) SaveEvent

func (s EventStore) SaveEvent(tx *dbr.Tx, event models.Event) error

func (EventStore) SaveNodeBlob

func (s EventStore) SaveNodeBlob(tx *dbr.Tx, nodeBlob models.NodeBlob) error

TODO move to the nodeStore

type OrganizationStore

type OrganizationStore struct {
}

TODO consider move store sources from ./db/store to ./store

func NewOrganizationStore

func NewOrganizationStore() OrganizationStore

func (OrganizationStore) GetOrganization

func (s OrganizationStore) GetOrganization(tx *dbr.Tx, orgSlug string) (*models.Organization, error)

func (OrganizationStore) SaveOrganization

func (s OrganizationStore) SaveOrganization(tx *dbr.Tx, org models.Organization) error

func (OrganizationStore) SaveOrganizationMember

func (s OrganizationStore) SaveOrganizationMember(
	tx *dbr.Tx, orgMember models.OrganizationMember) error

type ProjectStore

type ProjectStore struct {
}

func NewProjectStore

func NewProjectStore() ProjectStore

func (ProjectStore) GetEnvironments

func (s ProjectStore) GetEnvironments(tx *dbr.Tx, projectID int) ([]models.Environment, error)

func (ProjectStore) GetProject

func (s ProjectStore) GetProject(tx *dbr.Tx, orgSlug, projectSlug string) (models.Project, error)

func (ProjectStore) GetTags

func (s ProjectStore) GetTags(tx *dbr.Tx, projectID int) ([]*models.TagKey, error)

func (ProjectStore) SaveEnvironment

func (s ProjectStore) SaveEnvironment(tx *dbr.Tx, environment models.Environment) error

func (ProjectStore) SaveEventGroup

func (s ProjectStore) SaveEventGroup(tx *dbr.Tx, group models.Group) error

func (ProjectStore) SaveProject

func (s ProjectStore) SaveProject(tx *dbr.Tx, project models.Project) error

func (ProjectStore) SaveSearches

func (s ProjectStore) SaveSearches(tx *dbr.Tx, searches ...models.SavedSearch) error

func (ProjectStore) SaveTags

func (s ProjectStore) SaveTags(tx *dbr.Tx, tags ...*models.TagKey) error

type TeamStore

type TeamStore struct {
}

func NewTeamStore

func NewTeamStore() TeamStore

func (TeamStore) SaveMember

func (s TeamStore) SaveMember(tx *dbr.Tx, teamMember models.OrganizationMemberTeam) error

func (TeamStore) SaveTeam

func (s TeamStore) SaveTeam(tx *dbr.Tx, team models.Team) error

type UserStore

type UserStore struct {
}

func NewUserStore

func NewUserStore() UserStore

func (UserStore) SaveUser

func (s UserStore) SaveUser(tx *dbr.Tx, user models.User) error

Jump to

Keyboard shortcuts

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