Documentation ¶
Index ¶
- func AddEnvironment(w http.ResponseWriter, r *http.Request)
- func AddInventory(w http.ResponseWriter, r *http.Request)
- func AddKey(w http.ResponseWriter, r *http.Request)
- func AddProject(w http.ResponseWriter, r *http.Request)
- func AddRepository(w http.ResponseWriter, r *http.Request)
- func AddTemplate(w http.ResponseWriter, r *http.Request)
- func AddUser(w http.ResponseWriter, r *http.Request)
- func DeleteProject(w http.ResponseWriter, r *http.Request)
- func EnvironmentMiddleware(w http.ResponseWriter, r *http.Request)
- func GetEnvironment(w http.ResponseWriter, r *http.Request)
- func GetInventory(w http.ResponseWriter, r *http.Request)
- func GetKeys(w http.ResponseWriter, r *http.Request)
- func GetProject(w http.ResponseWriter, r *http.Request)
- func GetProjects(w http.ResponseWriter, r *http.Request)
- func GetRepositories(w http.ResponseWriter, r *http.Request)
- func GetTemplates(w http.ResponseWriter, r *http.Request)
- func GetUsers(w http.ResponseWriter, r *http.Request)
- func InventoryMiddleware(w http.ResponseWriter, r *http.Request)
- func IsValidInventoryPath(path string) bool
- func KeyMiddleware(w http.ResponseWriter, r *http.Request)
- func MakeUserAdmin(w http.ResponseWriter, r *http.Request)
- func MustBeAdmin(w http.ResponseWriter, r *http.Request)
- func ProjectMiddleware(w http.ResponseWriter, r *http.Request)
- func RemoveEnvironment(w http.ResponseWriter, r *http.Request)
- func RemoveInventory(w http.ResponseWriter, r *http.Request)
- func RemoveKey(w http.ResponseWriter, r *http.Request)
- func RemoveRepository(w http.ResponseWriter, r *http.Request)
- func RemoveTemplate(w http.ResponseWriter, r *http.Request)
- func RemoveUser(w http.ResponseWriter, r *http.Request)
- func RepositoryMiddleware(w http.ResponseWriter, r *http.Request)
- func TemplatesMiddleware(w http.ResponseWriter, r *http.Request)
- func UpdateEnvironment(w http.ResponseWriter, r *http.Request)
- func UpdateInventory(w http.ResponseWriter, r *http.Request)
- func UpdateKey(w http.ResponseWriter, r *http.Request)
- func UpdateProject(w http.ResponseWriter, r *http.Request)
- func UpdateRepository(w http.ResponseWriter, r *http.Request)
- func UpdateTemplate(w http.ResponseWriter, r *http.Request)
- func UserMiddleware(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEnvironment ¶
func AddEnvironment(w http.ResponseWriter, r *http.Request)
AddEnvironment creates an environment in the database
func AddInventory ¶
func AddInventory(w http.ResponseWriter, r *http.Request)
AddInventory creates an inventory in the database
func AddKey ¶
func AddKey(w http.ResponseWriter, r *http.Request)
AddKey adds a new key to the database
func AddProject ¶
func AddProject(w http.ResponseWriter, r *http.Request)
AddProject adds a new project to the database
func AddRepository ¶
func AddRepository(w http.ResponseWriter, r *http.Request)
AddRepository creates a new repository in the database
func AddTemplate ¶
func AddTemplate(w http.ResponseWriter, r *http.Request)
AddTemplate adds a template to the database
func AddUser ¶
func AddUser(w http.ResponseWriter, r *http.Request)
AddUser adds a user to a projects team in the database
func DeleteProject ¶
func DeleteProject(w http.ResponseWriter, r *http.Request)
DeleteProject removes a project from the database
func EnvironmentMiddleware ¶
func EnvironmentMiddleware(w http.ResponseWriter, r *http.Request)
EnvironmentMiddleware ensures an environment exists and loads it to the context
func GetEnvironment ¶
func GetEnvironment(w http.ResponseWriter, r *http.Request)
GetEnvironment retrieves sorted environments from the database
func GetInventory ¶
func GetInventory(w http.ResponseWriter, r *http.Request)
GetInventory returns an inventory from the database
func GetKeys ¶
func GetKeys(w http.ResponseWriter, r *http.Request)
GetKeys retrieves sorted keys from the database
func GetProject ¶
func GetProject(w http.ResponseWriter, r *http.Request)
GetProject returns a project details
func GetProjects ¶
func GetProjects(w http.ResponseWriter, r *http.Request)
GetProjects returns all projects in this users context
func GetRepositories ¶
func GetRepositories(w http.ResponseWriter, r *http.Request)
GetRepositories returns all repositories in a project sorted by type
func GetTemplates ¶
func GetTemplates(w http.ResponseWriter, r *http.Request)
GetTemplates returns all templates for a project in a sort order
func GetUsers ¶
func GetUsers(w http.ResponseWriter, r *http.Request)
GetUsers returns all users in a project
func InventoryMiddleware ¶
func InventoryMiddleware(w http.ResponseWriter, r *http.Request)
InventoryMiddleware ensures an inventory exists and loads it to the context
func IsValidInventoryPath ¶
IsValidInventoryPath tests a path to ensure it is below the cwd
func KeyMiddleware ¶
func KeyMiddleware(w http.ResponseWriter, r *http.Request)
KeyMiddleware ensures a key exists and loads it to the context
func MakeUserAdmin ¶
func MakeUserAdmin(w http.ResponseWriter, r *http.Request)
MakeUserAdmin writes the admin flag to the users account
func MustBeAdmin ¶
func MustBeAdmin(w http.ResponseWriter, r *http.Request)
MustBeAdmin ensures that the user has administrator rights
func ProjectMiddleware ¶
func ProjectMiddleware(w http.ResponseWriter, r *http.Request)
ProjectMiddleware ensures a project exists and loads it to the context
func RemoveEnvironment ¶
func RemoveEnvironment(w http.ResponseWriter, r *http.Request)
RemoveEnvironment deletes an environment from the database
func RemoveInventory ¶
func RemoveInventory(w http.ResponseWriter, r *http.Request)
RemoveInventory deletes an inventory from the database
func RemoveKey ¶
func RemoveKey(w http.ResponseWriter, r *http.Request)
RemoveKey deletes a key from the database
func RemoveRepository ¶
func RemoveRepository(w http.ResponseWriter, r *http.Request)
RemoveRepository deletes a repository from a project in the database
func RemoveTemplate ¶
func RemoveTemplate(w http.ResponseWriter, r *http.Request)
RemoveTemplate deletes a template from the database
func RemoveUser ¶
func RemoveUser(w http.ResponseWriter, r *http.Request)
RemoveUser removes a user from a project team
func RepositoryMiddleware ¶
func RepositoryMiddleware(w http.ResponseWriter, r *http.Request)
RepositoryMiddleware ensures a repository exists and loads it to the context
func TemplatesMiddleware ¶
func TemplatesMiddleware(w http.ResponseWriter, r *http.Request)
TemplatesMiddleware ensures a template exists and loads it to the context
func UpdateEnvironment ¶
func UpdateEnvironment(w http.ResponseWriter, r *http.Request)
UpdateEnvironment updates an existing environment in the database
func UpdateInventory ¶
func UpdateInventory(w http.ResponseWriter, r *http.Request)
UpdateInventory writes updated values to an existing inventory item in the database
func UpdateKey ¶
func UpdateKey(w http.ResponseWriter, r *http.Request)
UpdateKey updates key in database nolint: gocyclo
func UpdateProject ¶
func UpdateProject(w http.ResponseWriter, r *http.Request)
UpdateProject saves updated project details to the database
func UpdateRepository ¶
func UpdateRepository(w http.ResponseWriter, r *http.Request)
UpdateRepository updates the values of a repository in the database
func UpdateTemplate ¶
func UpdateTemplate(w http.ResponseWriter, r *http.Request)
UpdateTemplate writes a template to an existing key in the database
func UserMiddleware ¶
func UserMiddleware(w http.ResponseWriter, r *http.Request)
UserMiddleware ensures a user exists and loads it to the context
Types ¶
This section is empty.