package
2.11.0-beta1+incompatible
Repository: https://github.com/semaphoreui/semaphore.git
Documentation: pkg.go.dev
# Functions
AddEnvironment creates an environment in the database.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AddInventory creates an inventory in the database.
AddKey adds a new key to the database.
AddProject adds a new project to the database.
AddRepository creates a new repository in the database.
No description provided by the author
AddSchedule adds a template to the database.
AddTask inserts a task into the database and returns a header or returns error.
AddTemplate adds a template to the database.
AddUser adds a user to a projects team in the database.
AddView adds a new key to the database.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DeleteProject removes a project from the database.
No description provided by the author
EnvironmentMiddleware ensures an environment exists and loads it to the context.
GetAllTasks returns all tasks for the current project.
No description provided by the author
GetEnvironment retrieves sorted environments from the database.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetInventory returns an inventory from the database.
No description provided by the author
No description provided by the author
GetKeys retrieves sorted keys from the database.
GetLastTasks returns the hundred most recent tasks.
GetMustCanMiddleware ensures that the user has administrator rights.
GetProject returns a project details.
GetProjects returns all projects in this users context.
No description provided by the author
GetRepositories returns all repositories in a project sorted by type.
No description provided by the author
No description provided by the author
No description provided by the author
GetSchedule returns single template by ID.
GetTask returns a task based on its id.
GetTaskMiddleware is middleware that gets a task by id and sets the context to it or panics.
GetTaskOutput returns the logged task output by id and writes it as json or returns error.
GetTasksList returns a list of tasks for the current project in desc order to limit or error.
GetTaskOutput returns the logged task output by id and writes it as json or returns error.
GetTemplate returns single template by ID.
No description provided by the author
GetTemplates returns all templates for a project in a sort order.
No description provided by the author
No description provided by the author
GetUsers returns all users in a project.
GetViews retrieves sorted keys from the database.
No description provided by the author
No description provided by the author
InventoryMiddleware ensures an inventory exists and loads it to the context.
IsValidInventoryPath tests a path to ensure it is below the cwd.
KeyMiddleware ensures a key exists and loads it to the context.
LeftProject removes a user from a project team.
ProjectMiddleware ensures a project exists and loads it to the context.
RemoveEnvironment deletes an environment from the database.
No description provided by the author
RemoveInventory deletes an inventory from the database.
RemoveKey deletes a key from the database.
RemoveRepository deletes a repository from a project in the database.
RemoveSchedule deletes a schedule from the database.
RemoveTask removes a task from the database.
RemoveTemplate deletes a template from the database.
RemoveUser removes a user from a project team.
RemoveView deletes a view from the database.
RepositoryMiddleware ensures a repository exists and loads it to the context.
No description provided by the author
No description provided by the author
SchedulesMiddleware ensures a template exists and loads it to the context.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TemplatesMiddleware ensures a template exists and loads it to the context.
UpdateEnvironment updates an existing environment in the database.
No description provided by the author
No description provided by the author
No description provided by the author
UpdateInventory writes updated values to an existing inventory item in the database.
UpdateKey updates key in database nolint: gocyclo.
UpdateProject saves updated project details to the database.
UpdateRepository updates the values of a repository in the database.
No description provided by the author
UpdateSchedule writes a schedule to an existing key in the database.
UpdateTemplate writes a template to an existing key in the database.
No description provided by the author
UpdateView updates key in database nolint: gocyclo.
UserMiddleware ensures a user exists and loads it to the context.
No description provided by the author
ViewMiddleware ensures a key exists and loads it to the context.