projects

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 22, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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

func IsValidInventoryPath(path string) bool

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.

Jump to

Keyboard shortcuts

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