Documentation ¶
Index ¶
Constants ¶
View Source
const ( DataDatabasePath = "./" DatabaseName = "modm" DatabaseFileName = DatabaseName + ".db" InMemoryDsn = "file::memory:" )
Variables ¶
This section is empty.
Functions ¶
func SetDefaultDatabasePath ¶
func SetDefaultDatabasePath(path string)
Types ¶
type Database ¶
func NewDatabase ¶
func NewDatabase(options *DatabaseOptions) Database
Gets a new db using the provided Options. If options are nil, the default DSN is used
type DatabaseOptions ¶
type GetDeploymentQuery ¶
type GetDeploymentQuery struct {
// contains filtered or unexported fields
}
func NewGetDeploymentQuery ¶
func NewGetDeploymentQuery(db *gorm.DB) *GetDeploymentQuery
func (*GetDeploymentQuery) Execute ¶
func (q *GetDeploymentQuery) Execute(id uint) model.Deployment
type InvokedOperationQuery ¶ added in v1.2.0
type InvokedOperationQuery struct {
// contains filtered or unexported fields
}
func NewInvokedOperationQuery ¶ added in v1.2.0
func NewInvokedOperationQuery(db *gorm.DB) *InvokedOperationQuery
func (*InvokedOperationQuery) First ¶ added in v1.2.0
func (q *InvokedOperationQuery) First(stageId uuid.UUID, correlationId string) (*model.InvokedOperation, error)
finds the first invoked operation for a retry stage by id and correlation id if found returns the operation and nil error, otherwise returns nil, error
type ListDeploymentsQuery ¶
type ListDeploymentsQuery struct {
// contains filtered or unexported fields
}
List deployments
func NewListDeploymentsQuery ¶
func NewListDeploymentsQuery(db *gorm.DB) *ListDeploymentsQuery
func (*ListDeploymentsQuery) Execute ¶
func (q *ListDeploymentsQuery) Execute() []model.Deployment
type StageQuery ¶ added in v1.2.0
type StageQuery struct {
// contains filtered or unexported fields
}
func NewStageQuery ¶ added in v1.2.0
func NewStageQuery(db *gorm.DB) *StageQuery
func (*StageQuery) Execute ¶ added in v1.2.0
func (q *StageQuery) Execute(id uuid.UUID) (*model.Deployment, *model.Stage, error)
finds a stage by id. If found returns the parent deployment, the stage and nil error if not found, returns nil, nil, error
Click to show internal directories.
Click to hide internal directories.