bolt

package
v0.2.54 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const MaxID = 2147483647

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltDb

type BoltDb struct {
	Filename string
	// contains filtered or unexported fields
}

func CreateTestStore

func CreateTestStore() *BoltDb

func (*BoltDb) ApplyMigration

func (d *BoltDb) ApplyMigration(m db.Migration) (err error)

func (*BoltDb) Close

func (d *BoltDb) Close(token string)

func (*BoltDb) Connect

func (d *BoltDb) Connect(token string)

func (*BoltDb) CreateAPIToken

func (d *BoltDb) CreateAPIToken(token db.APIToken) (db.APIToken, error)

func (*BoltDb) CreateAccessKey

func (d *BoltDb) CreateAccessKey(key db.AccessKey) (db.AccessKey, error)

func (*BoltDb) CreateEnvironment

func (d *BoltDb) CreateEnvironment(env db.Environment) (db.Environment, error)

func (*BoltDb) CreateEvent

func (d *BoltDb) CreateEvent(evt db.Event) (newEvent db.Event, err error)

func (*BoltDb) CreateInventory

func (d *BoltDb) CreateInventory(inventory db.Inventory) (db.Inventory, error)

func (*BoltDb) CreateProject

func (d *BoltDb) CreateProject(project db.Project) (db.Project, error)

func (*BoltDb) CreateProjectUser

func (d *BoltDb) CreateProjectUser(projectUser db.ProjectUser) (db.ProjectUser, error)

func (*BoltDb) CreateRepository

func (d *BoltDb) CreateRepository(repository db.Repository) (db.Repository, error)

func (*BoltDb) CreateRunner

func (d *BoltDb) CreateRunner(runner db.Runner) (newRunner db.Runner, err error)

func (*BoltDb) CreateSchedule

func (d *BoltDb) CreateSchedule(schedule db.Schedule) (newSchedule db.Schedule, err error)

func (*BoltDb) CreateSession

func (d *BoltDb) CreateSession(session db.Session) (db.Session, error)

func (*BoltDb) CreateTask

func (d *BoltDb) CreateTask(task db.Task) (newTask db.Task, err error)

func (*BoltDb) CreateTaskOutput

func (d *BoltDb) CreateTaskOutput(output db.TaskOutput) (db.TaskOutput, error)

func (*BoltDb) CreateTemplate

func (d *BoltDb) CreateTemplate(template db.Template) (newTemplate db.Template, err error)

func (*BoltDb) CreateUser

func (d *BoltDb) CreateUser(user db.UserWithPwd) (newUser db.User, err error)

func (*BoltDb) CreateUserWithoutPassword

func (d *BoltDb) CreateUserWithoutPassword(user db.User) (newUser db.User, err error)

func (*BoltDb) CreateView

func (d *BoltDb) CreateView(view db.View) (db.View, error)

func (*BoltDb) DeleteAPIToken

func (d *BoltDb) DeleteAPIToken(userID int, tokenID string) (err error)

func (*BoltDb) DeleteAccessKey

func (d *BoltDb) DeleteAccessKey(projectID int, accessKeyID int) error

func (*BoltDb) DeleteEnvironment

func (d *BoltDb) DeleteEnvironment(projectID int, environmentID int) error

func (*BoltDb) DeleteGlobalRunner

func (d *BoltDb) DeleteGlobalRunner(runnerID int) (err error)

func (*BoltDb) DeleteInventory

func (d *BoltDb) DeleteInventory(projectID int, inventoryID int) error

func (*BoltDb) DeleteProject

func (d *BoltDb) DeleteProject(projectID int) error

func (*BoltDb) DeleteProjectUser

func (d *BoltDb) DeleteProjectUser(projectID, userID int) error

func (*BoltDb) DeleteRepository

func (d *BoltDb) DeleteRepository(projectID int, repositoryId int) error

func (*BoltDb) DeleteRunner

func (d *BoltDb) DeleteRunner(projectID int, runnerID int) (err error)

func (*BoltDb) DeleteSchedule

func (d *BoltDb) DeleteSchedule(projectID int, scheduleID int) error

func (*BoltDb) DeleteTaskWithOutputs

func (d *BoltDb) DeleteTaskWithOutputs(projectID int, taskID int) error

func (*BoltDb) DeleteTemplate

func (d *BoltDb) DeleteTemplate(projectID int, templateID int) error

func (*BoltDb) DeleteUser

func (d *BoltDb) DeleteUser(userID int) error

func (*BoltDb) DeleteView

func (d *BoltDb) DeleteView(projectID int, viewID int) error

func (*BoltDb) ExpireAPIToken

func (d *BoltDb) ExpireAPIToken(userID int, tokenID string) (err error)

func (*BoltDb) ExpireSession

func (d *BoltDb) ExpireSession(userID int, sessionID int) (err error)

func (*BoltDb) GetAPIToken

func (d *BoltDb) GetAPIToken(tokenID string) (token db.APIToken, err error)

func (*BoltDb) GetAPITokens

func (d *BoltDb) GetAPITokens(userID int) (tokens []db.APIToken, err error)

func (*BoltDb) GetAccessKey

func (d *BoltDb) GetAccessKey(projectID int, accessKeyID int) (key db.AccessKey, err error)

func (*BoltDb) GetAccessKeyRefs

func (d *BoltDb) GetAccessKeyRefs(projectID int, accessKeyID int) (db.ObjectReferrers, error)

func (*BoltDb) GetAccessKeys

func (d *BoltDb) GetAccessKeys(projectID int, params db.RetrieveQueryParams) ([]db.AccessKey, error)

func (*BoltDb) GetAllProjects

func (d *BoltDb) GetAllProjects() (projects []db.Project, err error)

func (*BoltDb) GetEnvironment

func (d *BoltDb) GetEnvironment(projectID int, environmentID int) (environment db.Environment, err error)

func (*BoltDb) GetEnvironmentRefs

func (d *BoltDb) GetEnvironmentRefs(projectID int, environmentID int) (db.ObjectReferrers, error)

func (*BoltDb) GetEnvironments

func (d *BoltDb) GetEnvironments(projectID int, params db.RetrieveQueryParams) (environment []db.Environment, err error)

func (*BoltDb) GetEvents

func (d *BoltDb) GetEvents(projectID int, params db.RetrieveQueryParams) (events []db.Event, err error)

func (*BoltDb) GetGlobalRunner

func (d *BoltDb) GetGlobalRunner(runnerID int) (runner db.Runner, err error)

func (*BoltDb) GetGlobalRunners

func (d *BoltDb) GetGlobalRunners() (runners []db.Runner, err error)

func (*BoltDb) GetInventories

func (d *BoltDb) GetInventories(projectID int, params db.RetrieveQueryParams) (inventories []db.Inventory, err error)

func (*BoltDb) GetInventory

func (d *BoltDb) GetInventory(projectID int, inventoryID int) (inventory db.Inventory, err error)

func (*BoltDb) GetInventoryRefs

func (d *BoltDb) GetInventoryRefs(projectID int, inventoryID int) (db.ObjectReferrers, error)

func (*BoltDb) GetProject

func (d *BoltDb) GetProject(projectID int) (project db.Project, err error)

func (*BoltDb) GetProjectSchedules

func (d *BoltDb) GetProjectSchedules(projectID int) (schedules []db.Schedule, err error)

func (*BoltDb) GetProjectTasks

func (d *BoltDb) GetProjectTasks(projectID int, params db.RetrieveQueryParams) ([]db.TaskWithTpl, error)

func (*BoltDb) GetProjectUser

func (d *BoltDb) GetProjectUser(projectID, userID int) (user db.ProjectUser, err error)

func (*BoltDb) GetProjectUsers

func (d *BoltDb) GetProjectUsers(projectID int, params db.RetrieveQueryParams) (users []db.UserWithProjectRole, err error)

func (*BoltDb) GetProjects

func (d *BoltDb) GetProjects(userID int) (projects []db.Project, err error)

func (*BoltDb) GetRepositories

func (d *BoltDb) GetRepositories(projectID int, params db.RetrieveQueryParams) (repositories []db.Repository, err error)

func (*BoltDb) GetRepository

func (d *BoltDb) GetRepository(projectID int, repositoryID int) (repository db.Repository, err error)

func (*BoltDb) GetRepositoryRefs

func (d *BoltDb) GetRepositoryRefs(projectID int, repositoryID int) (db.ObjectReferrers, error)

func (*BoltDb) GetRunner

func (d *BoltDb) GetRunner(projectID int, runnerID int) (runner db.Runner, err error)

func (*BoltDb) GetRunners

func (d *BoltDb) GetRunners(projectID int) (runners []db.Runner, err error)

func (*BoltDb) GetSchedule

func (d *BoltDb) GetSchedule(projectID int, scheduleID int) (schedule db.Schedule, err error)

func (*BoltDb) GetSchedules

func (d *BoltDb) GetSchedules() (schedules []db.Schedule, err error)

func (*BoltDb) GetSession

func (d *BoltDb) GetSession(userID int, sessionID int) (session db.Session, err error)

func (*BoltDb) GetTask

func (d *BoltDb) GetTask(projectID int, taskID int) (task db.Task, err error)

func (*BoltDb) GetTaskOutputs

func (d *BoltDb) GetTaskOutputs(projectID int, taskID int) (outputs []db.TaskOutput, err error)

func (*BoltDb) GetTemplate

func (d *BoltDb) GetTemplate(projectID int, templateID int) (template db.Template, err error)

func (*BoltDb) GetTemplateRefs

func (d *BoltDb) GetTemplateRefs(projectID int, templateID int) (db.ObjectReferrers, error)

func (*BoltDb) GetTemplateSchedules

func (d *BoltDb) GetTemplateSchedules(projectID int, templateID int) (schedules []db.Schedule, err error)

func (*BoltDb) GetTemplateTasks

func (d *BoltDb) GetTemplateTasks(projectID int, templateID int, params db.RetrieveQueryParams) ([]db.TaskWithTpl, error)

func (*BoltDb) GetTemplates

func (d *BoltDb) GetTemplates(projectID int, filter db.TemplateFilter, params db.RetrieveQueryParams) (templates []db.Template, err error)

func (*BoltDb) GetUser

func (d *BoltDb) GetUser(userID int) (user db.User, err error)

GetUser retrieves a user from the database by ID

func (*BoltDb) GetUserByLoginOrEmail

func (d *BoltDb) GetUserByLoginOrEmail(login string, email string) (existingUser db.User, err error)

func (*BoltDb) GetUserEvents

func (d *BoltDb) GetUserEvents(userID int, params db.RetrieveQueryParams) (events []db.Event, err error)

func (*BoltDb) GetUsers

func (d *BoltDb) GetUsers(params db.RetrieveQueryParams) (users []db.User, err error)

func (*BoltDb) GetView

func (d *BoltDb) GetView(projectID int, viewID int) (view db.View, err error)

func (*BoltDb) GetViews

func (d *BoltDb) GetViews(projectID int) (views []db.View, err error)

func (*BoltDb) IsInitialized

func (d *BoltDb) IsInitialized() (initialized bool, err error)

func (*BoltDb) IsMigrationApplied

func (d *BoltDb) IsMigrationApplied(migration db.Migration) (bool, error)

func (*BoltDb) Migrate

func (d *BoltDb) Migrate() error

func (*BoltDb) PermanentConnection

func (d *BoltDb) PermanentConnection() bool

func (*BoltDb) RekeyAccessKeys

func (d *BoltDb) RekeyAccessKeys(oldKey string) error

func (*BoltDb) SetScheduleCommitHash

func (d *BoltDb) SetScheduleCommitHash(projectID int, scheduleID int, hash string) error

func (*BoltDb) SetUserPassword

func (d *BoltDb) SetUserPassword(userID int, password string) error

func (*BoltDb) SetViewPositions

func (d *BoltDb) SetViewPositions(projectID int, positions map[int]int) error

func (*BoltDb) TouchSession

func (d *BoltDb) TouchSession(userID int, sessionID int) (err error)

func (*BoltDb) TryRollbackMigration

func (d *BoltDb) TryRollbackMigration(m db.Migration)

func (*BoltDb) UpdateAccessKey

func (d *BoltDb) UpdateAccessKey(key db.AccessKey) error

func (*BoltDb) UpdateEnvironment

func (d *BoltDb) UpdateEnvironment(env db.Environment) error

func (*BoltDb) UpdateInventory

func (d *BoltDb) UpdateInventory(inventory db.Inventory) error

func (*BoltDb) UpdateProject

func (d *BoltDb) UpdateProject(project db.Project) error

func (*BoltDb) UpdateProjectUser

func (d *BoltDb) UpdateProjectUser(projectUser db.ProjectUser) error

func (*BoltDb) UpdateRepository

func (d *BoltDb) UpdateRepository(repository db.Repository) error

func (*BoltDb) UpdateRunner

func (d *BoltDb) UpdateRunner(runner db.Runner) (err error)

func (*BoltDb) UpdateSchedule

func (d *BoltDb) UpdateSchedule(schedule db.Schedule) error

func (*BoltDb) UpdateTask

func (d *BoltDb) UpdateTask(task db.Task) error

func (*BoltDb) UpdateTemplate

func (d *BoltDb) UpdateTemplate(template db.Template) error

func (*BoltDb) UpdateUser

func (d *BoltDb) UpdateUser(user db.UserWithPwd) error

func (*BoltDb) UpdateView

func (d *BoltDb) UpdateView(view db.View) error

Jump to

Keyboard shortcuts

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