Documentation
¶
Overview ¶
Copyright 2017 HootSuite Media Inc. SPDX-License-Identifier: Apache-2.0 Modified hereafter by contributors to runatlantis/atlantis.
Package db defines the database interface for Atlantis.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶ added in v0.37.0
type Database interface {
TryLock(lock models.ProjectLock) (bool, models.ProjectLock, error)
Unlock(project models.Project, workspace string) (*models.ProjectLock, error)
List() ([]models.ProjectLock, error)
GetLock(project models.Project, workspace string) (*models.ProjectLock, error)
UnlockByPull(repoFullName string, pullNum int) ([]models.ProjectLock, error)
UpdateProjectStatus(pull models.PullRequest, workspace string, repoRelDir string, newStatus models.ProjectPlanStatus) error
GetPullStatus(pull models.PullRequest) (*models.PullStatus, error)
DeletePullStatus(pull models.PullRequest) error
UpdatePullWithResults(pull models.PullRequest, newResults []command.ProjectResult) (models.PullStatus, error)
LockCommand(cmdName command.Name, lockTime time.Time) (*command.Lock, error)
UnlockCommand(cmdName command.Name) error
CheckCommandLock(cmdName command.Name) (*command.Lock, error)
Close() error
}
Database is an implementation of the database API we require.
Click to show internal directories.
Click to hide internal directories.