Documentation ¶
Index ¶
- Constants
- type BoltDb
- func (d *BoltDb) ApplyMigration(m db.Migration) (err error)
- func (d *BoltDb) Close(token string)
- func (d *BoltDb) Connect(token string)
- func (d *BoltDb) CreateAPIToken(token db.APIToken) (db.APIToken, error)
- func (d *BoltDb) CreateAccessKey(key db.AccessKey) (db.AccessKey, error)
- func (d *BoltDb) CreateEnvironment(env db.Environment) (db.Environment, error)
- func (d *BoltDb) CreateEvent(evt db.Event) (newEvent db.Event, err error)
- func (d *BoltDb) CreateInventory(inventory db.Inventory) (db.Inventory, error)
- func (d *BoltDb) CreateProject(project db.Project) (db.Project, error)
- func (d *BoltDb) CreateProjectUser(projectUser db.ProjectUser) (db.ProjectUser, error)
- func (d *BoltDb) CreateRepository(repository db.Repository) (db.Repository, error)
- func (d *BoltDb) CreateRunner(runner db.Runner) (newRunner db.Runner, err error)
- func (d *BoltDb) CreateSchedule(schedule db.Schedule) (newSchedule db.Schedule, err error)
- func (d *BoltDb) CreateSession(session db.Session) (db.Session, error)
- func (d *BoltDb) CreateTask(task db.Task) (newTask db.Task, err error)
- func (d *BoltDb) CreateTaskOutput(output db.TaskOutput) (db.TaskOutput, error)
- func (d *BoltDb) CreateTemplate(template db.Template) (newTemplate db.Template, err error)
- func (d *BoltDb) CreateUser(user db.UserWithPwd) (newUser db.User, err error)
- func (d *BoltDb) CreateUserWithoutPassword(user db.User) (newUser db.User, err error)
- func (d *BoltDb) CreateView(view db.View) (db.View, error)
- func (d *BoltDb) DeleteAPIToken(userID int, tokenID string) (err error)
- func (d *BoltDb) DeleteAccessKey(projectID int, accessKeyID int) error
- func (d *BoltDb) DeleteEnvironment(projectID int, environmentID int) error
- func (d *BoltDb) DeleteGlobalRunner(runnerID int) (err error)
- func (d *BoltDb) DeleteInventory(projectID int, inventoryID int) error
- func (d *BoltDb) DeleteProject(projectID int) error
- func (d *BoltDb) DeleteProjectUser(projectID, userID int) error
- func (d *BoltDb) DeleteRepository(projectID int, repositoryId int) error
- func (d *BoltDb) DeleteRunner(projectID int, runnerID int) (err error)
- func (d *BoltDb) DeleteSchedule(projectID int, scheduleID int) error
- func (d *BoltDb) DeleteTaskWithOutputs(projectID int, taskID int) error
- func (d *BoltDb) DeleteTemplate(projectID int, templateID int) error
- func (d *BoltDb) DeleteUser(userID int) error
- func (d *BoltDb) DeleteView(projectID int, viewID int) error
- func (d *BoltDb) ExpireAPIToken(userID int, tokenID string) (err error)
- func (d *BoltDb) ExpireSession(userID int, sessionID int) (err error)
- func (d *BoltDb) GetAPIToken(tokenID string) (token db.APIToken, err error)
- func (d *BoltDb) GetAPITokens(userID int) (tokens []db.APIToken, err error)
- func (d *BoltDb) GetAccessKey(projectID int, accessKeyID int) (key db.AccessKey, err error)
- func (d *BoltDb) GetAccessKeyRefs(projectID int, accessKeyID int) (db.ObjectReferrers, error)
- func (d *BoltDb) GetAccessKeys(projectID int, params db.RetrieveQueryParams) ([]db.AccessKey, error)
- func (d *BoltDb) GetAllProjects() (projects []db.Project, err error)
- func (d *BoltDb) GetEnvironment(projectID int, environmentID int) (environment db.Environment, err error)
- func (d *BoltDb) GetEnvironmentRefs(projectID int, environmentID int) (db.ObjectReferrers, error)
- func (d *BoltDb) GetEnvironments(projectID int, params db.RetrieveQueryParams) (environment []db.Environment, err error)
- func (d *BoltDb) GetEvents(projectID int, params db.RetrieveQueryParams) (events []db.Event, err error)
- func (d *BoltDb) GetGlobalRunner(runnerID int) (runner db.Runner, err error)
- func (d *BoltDb) GetGlobalRunners() (runners []db.Runner, err error)
- func (d *BoltDb) GetInventories(projectID int, params db.RetrieveQueryParams) (inventories []db.Inventory, err error)
- func (d *BoltDb) GetInventory(projectID int, inventoryID int) (inventory db.Inventory, err error)
- func (d *BoltDb) GetInventoryRefs(projectID int, inventoryID int) (db.ObjectReferrers, error)
- func (d *BoltDb) GetProject(projectID int) (project db.Project, err error)
- func (d *BoltDb) GetProjectSchedules(projectID int) (schedules []db.Schedule, err error)
- func (d *BoltDb) GetProjectTasks(projectID int, params db.RetrieveQueryParams) ([]db.TaskWithTpl, error)
- func (d *BoltDb) GetProjectUser(projectID, userID int) (user db.ProjectUser, err error)
- func (d *BoltDb) GetProjectUsers(projectID int, params db.RetrieveQueryParams) (users []db.UserWithProjectRole, err error)
- func (d *BoltDb) GetProjects(userID int) (projects []db.Project, err error)
- func (d *BoltDb) GetRepositories(projectID int, params db.RetrieveQueryParams) (repositories []db.Repository, err error)
- func (d *BoltDb) GetRepository(projectID int, repositoryID int) (repository db.Repository, err error)
- func (d *BoltDb) GetRepositoryRefs(projectID int, repositoryID int) (db.ObjectReferrers, error)
- func (d *BoltDb) GetRunner(projectID int, runnerID int) (runner db.Runner, err error)
- func (d *BoltDb) GetRunners(projectID int) (runners []db.Runner, err error)
- func (d *BoltDb) GetSchedule(projectID int, scheduleID int) (schedule db.Schedule, err error)
- func (d *BoltDb) GetSchedules() (schedules []db.Schedule, err error)
- func (d *BoltDb) GetSession(userID int, sessionID int) (session db.Session, err error)
- func (d *BoltDb) GetTask(projectID int, taskID int) (task db.Task, err error)
- func (d *BoltDb) GetTaskOutputs(projectID int, taskID int) (outputs []db.TaskOutput, err error)
- func (d *BoltDb) GetTemplate(projectID int, templateID int) (template db.Template, err error)
- func (d *BoltDb) GetTemplateRefs(projectID int, templateID int) (db.ObjectReferrers, error)
- func (d *BoltDb) GetTemplateSchedules(projectID int, templateID int) (schedules []db.Schedule, err error)
- func (d *BoltDb) GetTemplateTasks(projectID int, templateID int, params db.RetrieveQueryParams) ([]db.TaskWithTpl, error)
- func (d *BoltDb) GetTemplates(projectID int, filter db.TemplateFilter, params db.RetrieveQueryParams) (templates []db.Template, err error)
- func (d *BoltDb) GetUser(userID int) (user db.User, err error)
- func (d *BoltDb) GetUserByLoginOrEmail(login string, email string) (existingUser db.User, err error)
- func (d *BoltDb) GetUserEvents(userID int, params db.RetrieveQueryParams) (events []db.Event, err error)
- func (d *BoltDb) GetUsers(params db.RetrieveQueryParams) (users []db.User, err error)
- func (d *BoltDb) GetView(projectID int, viewID int) (view db.View, err error)
- func (d *BoltDb) GetViews(projectID int) (views []db.View, err error)
- func (d *BoltDb) IsInitialized() (initialized bool, err error)
- func (d *BoltDb) IsMigrationApplied(migration db.Migration) (bool, error)
- func (d *BoltDb) Migrate() error
- func (d *BoltDb) PermanentConnection() bool
- func (d *BoltDb) RekeyAccessKeys(oldKey string) error
- func (d *BoltDb) SetScheduleCommitHash(projectID int, scheduleID int, hash string) error
- func (d *BoltDb) SetUserPassword(userID int, password string) error
- func (d *BoltDb) SetViewPositions(projectID int, positions map[int]int) error
- func (d *BoltDb) TouchSession(userID int, sessionID int) (err error)
- func (d *BoltDb) TryRollbackMigration(m db.Migration)
- func (d *BoltDb) UpdateAccessKey(key db.AccessKey) error
- func (d *BoltDb) UpdateEnvironment(env db.Environment) error
- func (d *BoltDb) UpdateInventory(inventory db.Inventory) error
- func (d *BoltDb) UpdateProject(project db.Project) error
- func (d *BoltDb) UpdateProjectUser(projectUser db.ProjectUser) error
- func (d *BoltDb) UpdateRepository(repository db.Repository) error
- func (d *BoltDb) UpdateRunner(runner db.Runner) (err error)
- func (d *BoltDb) UpdateSchedule(schedule db.Schedule) error
- func (d *BoltDb) UpdateTask(task db.Task) error
- func (d *BoltDb) UpdateTemplate(template db.Template) error
- func (d *BoltDb) UpdateUser(user db.UserWithPwd) error
- func (d *BoltDb) UpdateView(view db.View) error
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) CreateAPIToken ¶
func (*BoltDb) CreateAccessKey ¶
func (*BoltDb) CreateEnvironment ¶
func (d *BoltDb) CreateEnvironment(env db.Environment) (db.Environment, error)
func (*BoltDb) CreateEvent ¶
func (*BoltDb) CreateInventory ¶
func (*BoltDb) CreateProject ¶
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 (*BoltDb) CreateSchedule ¶
func (*BoltDb) CreateSession ¶
func (*BoltDb) CreateTaskOutput ¶
func (d *BoltDb) CreateTaskOutput(output db.TaskOutput) (db.TaskOutput, error)
func (*BoltDb) CreateTemplate ¶
func (*BoltDb) CreateUser ¶
func (*BoltDb) CreateUserWithoutPassword ¶
func (*BoltDb) DeleteAPIToken ¶
func (*BoltDb) DeleteAccessKey ¶
func (*BoltDb) DeleteEnvironment ¶
func (*BoltDb) DeleteGlobalRunner ¶
func (*BoltDb) DeleteInventory ¶
func (*BoltDb) DeleteProject ¶
func (*BoltDb) DeleteProjectUser ¶
func (*BoltDb) DeleteRepository ¶
func (*BoltDb) DeleteRunner ¶
func (*BoltDb) DeleteSchedule ¶
func (*BoltDb) DeleteTaskWithOutputs ¶
func (*BoltDb) DeleteTemplate ¶
func (*BoltDb) DeleteUser ¶
func (*BoltDb) ExpireAPIToken ¶
func (*BoltDb) ExpireSession ¶
func (*BoltDb) GetAPIToken ¶
func (*BoltDb) GetAPITokens ¶
func (*BoltDb) GetAccessKey ¶
func (*BoltDb) GetAccessKeyRefs ¶
func (*BoltDb) GetAccessKeys ¶
func (*BoltDb) GetAllProjects ¶
func (*BoltDb) GetEnvironment ¶
func (*BoltDb) GetEnvironmentRefs ¶
func (*BoltDb) GetEnvironments ¶
func (d *BoltDb) GetEnvironments(projectID int, params db.RetrieveQueryParams) (environment []db.Environment, err error)
func (*BoltDb) GetGlobalRunner ¶
func (*BoltDb) GetGlobalRunners ¶
func (*BoltDb) GetInventories ¶
func (*BoltDb) GetInventory ¶
func (*BoltDb) GetInventoryRefs ¶
func (*BoltDb) GetProject ¶
func (*BoltDb) GetProjectSchedules ¶
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 (*BoltDb) GetRepositories ¶
func (d *BoltDb) GetRepositories(projectID int, params db.RetrieveQueryParams) (repositories []db.Repository, err error)
func (*BoltDb) GetRepository ¶
func (*BoltDb) GetRepositoryRefs ¶
func (*BoltDb) GetRunners ¶
func (*BoltDb) GetSchedule ¶
func (*BoltDb) GetSession ¶
func (*BoltDb) GetTaskOutputs ¶
func (*BoltDb) GetTemplate ¶
func (*BoltDb) GetTemplateRefs ¶
func (*BoltDb) GetTemplateSchedules ¶
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) GetUserByLoginOrEmail ¶
func (*BoltDb) GetUserEvents ¶
func (*BoltDb) IsInitialized ¶
func (*BoltDb) IsMigrationApplied ¶
func (*BoltDb) PermanentConnection ¶
func (*BoltDb) RekeyAccessKeys ¶
func (*BoltDb) SetScheduleCommitHash ¶
func (*BoltDb) SetUserPassword ¶
func (*BoltDb) SetViewPositions ¶
func (*BoltDb) TryRollbackMigration ¶
func (*BoltDb) UpdateEnvironment ¶
func (d *BoltDb) UpdateEnvironment(env db.Environment) 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) UpdateUser ¶
func (d *BoltDb) UpdateUser(user db.UserWithPwd) error
Click to show internal directories.
Click to hide internal directories.