Documentation ¶
Index ¶
- func CreatePostgresDBConnection(url string, port string, username string, password string, databaseName string) *gorm.DB
- func CreateTables(db *gorm.DB)
- func NewPostgresqlConnectionLocalhost() *gorm.DB
- func NewPostgresqlConnectionWithEnv() *gorm.DB
- func NewSQLiteConnection(dbId string) (*gorm.DB, string)
- type CommitStoreDB
- func (s *CommitStoreDB) CreateCommit(commit entities.Commit) (*entities.Commit, error)
- func (s *CommitStoreDB) GetCommitByPipelineIdAndCommitId(pipelineId string, commitId string) (*entities.Commit, error)
- func (s *CommitStoreDB) GetCommitByPipelineIdAndPullRequestId(pipelineId string, pullRequestId int64) (*entities.Commit, error)
- func (s *CommitStoreDB) GetCommits() ([]entities.Commit, error)
- func (s *CommitStoreDB) UpdateCommit(commit entities.Commit) (*entities.Commit, error)
- type CommitStoreFake
- func (s *CommitStoreFake) CreateCommit(commit entities.Commit) (*entities.Commit, error)
- func (s *CommitStoreFake) GetCommitByPipelineIdAndCommitId(pipelineId string, commitId string) (*entities.Commit, error)
- func (s *CommitStoreFake) GetCommitByPipelineIdAndPullRequestId(pipelineId string, pullRequestId int64) (*entities.Commit, error)
- func (s *CommitStoreFake) GetCommits() ([]entities.Commit, error)
- func (s *CommitStoreFake) UpdateCommit(commit entities.Commit) (*entities.Commit, error)
- type CommitStoreInterface
- type DeploymentStoreDB
- func (s *DeploymentStoreDB) CreateDeployment(deployment entities.Deployment) (*entities.Deployment, error)
- func (s *DeploymentStoreDB) GetDeploymentByCommitIdAndEnvironment(commitId string, environment string) (*entities.Deployment, error)
- func (s *DeploymentStoreDB) UpdateDeployment(deployment entities.Deployment) (*entities.Deployment, error)
- type DeploymentStoreFake
- func (s *DeploymentStoreFake) CreateDeployment(deployment entities.Deployment) (*entities.Deployment, error)
- func (s *DeploymentStoreFake) GetDeploymentByCommitIdAndEnvironment(commitId string, environment string) (*entities.Deployment, error)
- func (s *DeploymentStoreFake) GetDeployments() ([]entities.Deployment, error)
- func (s *DeploymentStoreFake) UpdateDeployment(deployment entities.Deployment) (*entities.Deployment, error)
- type DeploymentStoreInterface
- type EventStoreDB
- type EventStoreFake
- type EventStoreInterface
- type IncidentStoreDB
- func (s *IncidentStoreDB) CreateIncident(incident entities.Incident) (*entities.Incident, error)
- func (s *IncidentStoreDB) GetIncidents() ([]entities.Incident, error)
- func (s *IncidentStoreDB) GetLatestFailureIncidentByPipelineIdAndEnvironment(pipelineId string, environment string) (*entities.Incident, error)
- func (s *IncidentStoreDB) GetLatestIncidentBySourceId(sourceId string, state string) (*entities.Incident, error)
- func (s *IncidentStoreDB) UpdateIncident(incident entities.Incident) (*entities.Incident, error)
- type IncidentStoreFake
- func (s *IncidentStoreFake) CreateIncident(incident entities.Incident) (*entities.Incident, error)
- func (s *IncidentStoreFake) GetIncidents() ([]entities.Incident, error)
- func (s *IncidentStoreFake) GetLatestFailureIncidentByPipelineIdAndEnvironment(pipelineId string, environment string) (*entities.Incident, error)
- func (s *IncidentStoreFake) GetLatestIncidentBySourceId(sourceId string, state string) (*entities.Incident, error)
- func (s *IncidentStoreFake) UpdateIncident(incident entities.Incident) (*entities.Incident, error)
- type IncidentStoreInterface
- type UserDBStore
- type UserStoreInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTables ¶
Types ¶
type CommitStoreDB ¶
type CommitStoreDB struct {
// contains filtered or unexported fields
}
func NewCommitStoreDB ¶
func NewCommitStoreDB(db *gorm.DB) *CommitStoreDB
func (*CommitStoreDB) CreateCommit ¶
func (*CommitStoreDB) GetCommitByPipelineIdAndCommitId ¶
func (*CommitStoreDB) GetCommitByPipelineIdAndPullRequestId ¶
func (*CommitStoreDB) GetCommits ¶
func (s *CommitStoreDB) GetCommits() ([]entities.Commit, error)
func (*CommitStoreDB) UpdateCommit ¶
type CommitStoreFake ¶
type CommitStoreFake struct {
// contains filtered or unexported fields
}
func NewCommitStoreFake ¶
func NewCommitStoreFake() *CommitStoreFake
func (*CommitStoreFake) CreateCommit ¶
func (*CommitStoreFake) GetCommitByPipelineIdAndCommitId ¶
func (*CommitStoreFake) GetCommitByPipelineIdAndPullRequestId ¶
func (*CommitStoreFake) GetCommits ¶
func (s *CommitStoreFake) GetCommits() ([]entities.Commit, error)
func (*CommitStoreFake) UpdateCommit ¶
type CommitStoreInterface ¶
type CommitStoreInterface interface { GetCommits() ([]entities.Commit, error) GetCommitByPipelineIdAndCommitId(pipelineId string, commitId string) (*entities.Commit, error) GetCommitByPipelineIdAndPullRequestId(pipelineId string, pullRequestId int64) (*entities.Commit, error) CreateCommit(event entities.Commit) (*entities.Commit, error) UpdateCommit(event entities.Commit) (*entities.Commit, error) }
type DeploymentStoreDB ¶
type DeploymentStoreDB struct {
// contains filtered or unexported fields
}
func NewDeploymentStoreDB ¶
func NewDeploymentStoreDB(db *gorm.DB) *DeploymentStoreDB
func (*DeploymentStoreDB) CreateDeployment ¶
func (s *DeploymentStoreDB) CreateDeployment(deployment entities.Deployment) (*entities.Deployment, error)
func (*DeploymentStoreDB) GetDeploymentByCommitIdAndEnvironment ¶
func (s *DeploymentStoreDB) GetDeploymentByCommitIdAndEnvironment(commitId string, environment string) (*entities.Deployment, error)
func (*DeploymentStoreDB) UpdateDeployment ¶
func (s *DeploymentStoreDB) UpdateDeployment(deployment entities.Deployment) (*entities.Deployment, error)
type DeploymentStoreFake ¶
type DeploymentStoreFake struct {
// contains filtered or unexported fields
}
func NewDeploymentStoreFake ¶
func NewDeploymentStoreFake() *DeploymentStoreFake
func (*DeploymentStoreFake) CreateDeployment ¶
func (s *DeploymentStoreFake) CreateDeployment(deployment entities.Deployment) (*entities.Deployment, error)
func (*DeploymentStoreFake) GetDeploymentByCommitIdAndEnvironment ¶
func (s *DeploymentStoreFake) GetDeploymentByCommitIdAndEnvironment(commitId string, environment string) (*entities.Deployment, error)
func (*DeploymentStoreFake) GetDeployments ¶
func (s *DeploymentStoreFake) GetDeployments() ([]entities.Deployment, error)
func (*DeploymentStoreFake) UpdateDeployment ¶
func (s *DeploymentStoreFake) UpdateDeployment(deployment entities.Deployment) (*entities.Deployment, error)
type DeploymentStoreInterface ¶
type DeploymentStoreInterface interface { GetDeploymentByCommitIdAndEnvironment(commitId string, environment string) (*entities.Deployment, error) CreateDeployment(deployment entities.Deployment) (*entities.Deployment, error) UpdateDeployment(deployment entities.Deployment) (*entities.Deployment, error) }
type EventStoreDB ¶
type EventStoreDB struct {
// contains filtered or unexported fields
}
func NewEventStoreDB ¶
func NewEventStoreDB(db *gorm.DB) *EventStoreDB
func (*EventStoreDB) CreateEvent ¶
func (*EventStoreDB) GetAllEvents ¶
func (s *EventStoreDB) GetAllEvents() ([]entities.Event, error)
func (*EventStoreDB) GetEventsByCommitId ¶
type EventStoreFake ¶
type EventStoreFake struct {
// contains filtered or unexported fields
}
func NewEventStoreFake ¶
func NewEventStoreFake() *EventStoreFake
func (*EventStoreFake) CreateEvent ¶
func (*EventStoreFake) GetAllEvents ¶
func (s *EventStoreFake) GetAllEvents() ([]entities.Event, error)
func (*EventStoreFake) GetEventsByCommitId ¶
type EventStoreInterface ¶
type IncidentStoreDB ¶
type IncidentStoreDB struct {
// contains filtered or unexported fields
}
func NewIncidentStoreDB ¶
func NewIncidentStoreDB(db *gorm.DB) *IncidentStoreDB
func (*IncidentStoreDB) CreateIncident ¶
func (*IncidentStoreDB) GetIncidents ¶
func (s *IncidentStoreDB) GetIncidents() ([]entities.Incident, error)
func (*IncidentStoreDB) GetLatestFailureIncidentByPipelineIdAndEnvironment ¶
func (*IncidentStoreDB) GetLatestIncidentBySourceId ¶
func (*IncidentStoreDB) UpdateIncident ¶
type IncidentStoreFake ¶
type IncidentStoreFake struct {
// contains filtered or unexported fields
}
func NewIncidentStoreFake ¶
func NewIncidentStoreFake() *IncidentStoreFake
func (*IncidentStoreFake) CreateIncident ¶
func (*IncidentStoreFake) GetIncidents ¶
func (s *IncidentStoreFake) GetIncidents() ([]entities.Incident, error)
func (*IncidentStoreFake) GetLatestFailureIncidentByPipelineIdAndEnvironment ¶
func (*IncidentStoreFake) GetLatestIncidentBySourceId ¶
func (*IncidentStoreFake) UpdateIncident ¶
type IncidentStoreInterface ¶
type IncidentStoreInterface interface { GetIncidents() ([]entities.Incident, error) GetLatestIncidentBySourceId(sourceId string, state string) (*entities.Incident, error) GetLatestFailureIncidentByPipelineIdAndEnvironment(pipelineId string, environment string) (*entities.Incident, error) CreateIncident(event entities.Incident) (*entities.Incident, error) UpdateIncident(event entities.Incident) (*entities.Incident, error) }
type UserDBStore ¶
type UserDBStore struct {
// contains filtered or unexported fields
}
func NewUserDBStore ¶
func NewUserDBStore(db *gorm.DB) *UserDBStore
func (*UserDBStore) CreateUser ¶
func (*UserDBStore) GetUserByUsername ¶
func (s *UserDBStore) GetUserByUsername(username string) (*entities.User, error)
Click to show internal directories.
Click to hide internal directories.