controllers

package
v0.0.0-...-f07dfbc Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
}

Admin is the entrypoint of endpoints used for admin operations.

func (*Admin) ExecuteDeploymentJobAnalytics

func (a *Admin) ExecuteDeploymentJobAnalytics(c echo.Context) error

ExecuteDeploymentJobAnalytics run the analytics of deployment status on projects.

type Auth

type Auth struct {
}

Auth contains all login handlers

func (*Auth) Login

func (a *Auth) Login(c echo.Context) error

Login handles the login of a user When user is authorized, it creates a JWT Token https://jwt.io/introduction/ that will be store on client

type Entities

type Entities struct {
}

Entities is the controller type

func (*Entities) Delete

func (u *Entities) Delete(c echo.Context) error

Delete entity from database

func (*Entities) Get

func (u *Entities) Get(c echo.Context) error

Get entity from database

func (*Entities) GetAll

func (u *Entities) GetAll(c echo.Context) error

GetAll entities from database

func (*Entities) Save

func (u *Entities) Save(c echo.Context) error

Save creates or update given entity

type Export

type Export struct {
}

Export contains all handlers for exporting data as CSV/XSLX...

func (*Export) ExportAll

func (a *Export) ExportAll(c echo.Context) error

ExportAll exports all the data as a file

type FunctionalServices

type FunctionalServices struct {
}

FunctionalServices is the controller type

func (*FunctionalServices) Delete

func (u *FunctionalServices) Delete(c echo.Context) error

Delete functional service from database

func (*FunctionalServices) Get

Get functional service from database

func (*FunctionalServices) GetAll

func (u *FunctionalServices) GetAll(c echo.Context) error

GetAll functional services from database

func (*FunctionalServices) Save

func (u *FunctionalServices) Save(c echo.Context) error

Save creates or update given functional service

type Languages

type Languages struct {
}

Languages is the controller type

func (*Languages) GetAll

func (u *Languages) GetAll(c echo.Context) error

GetAll languages from database

func (*Languages) Save

func (u *Languages) Save(c echo.Context) error

Save creates a language

type Projects

type Projects struct {
}

Projects is the controller type

func (*Projects) Delete

func (p *Projects) Delete(c echo.Context) error

Delete project from database

func (*Projects) Get

func (p *Projects) Get(c echo.Context) error

Get project from database. The project was stored by a middleware which use id to get project informations

func (*Projects) GetAll

func (p *Projects) GetAll(c echo.Context) error

GetAll functional services from database

func (*Projects) GetIndicators

func (p *Projects) GetIndicators(c echo.Context) error

GetIndicators corresponding to a specific project in database. The project was stored by a middleware which use id to get project informations

func (*Projects) Save

func (p *Projects) Save(c echo.Context) error

Save creates or update given project

func (*Projects) UpdateDocktorInfo

func (p *Projects) UpdateDocktorInfo(c echo.Context) error

UpdateDocktorInfo updates docktor info of a specific project

type SaveProjectData

type SaveProjectData struct {
	// contains filtered or unexported fields
}

SaveProjectData is the Struct used in order to manage project to Save easily

func NewSaveProjectData

func NewSaveProjectData(existingProject types.Project, projectToSave types.Project) SaveProjectData

NewSaveProjectData is SaveProjectData Constructor

type Technologies

type Technologies struct {
}

Technologies is the controller type

func (*Technologies) GetAll

func (u *Technologies) GetAll(c echo.Context) error

GetAll technologies from database

func (*Technologies) Save

func (u *Technologies) Save(c echo.Context) error

Save creates a technology

type Token

type Token struct {
	ID   string     `json:"id_token,omitempty"`
	User types.User `json:"user,omitempty"`
}

Token is a JWT Token

type UsageIndicators

type UsageIndicators struct {
}

UsageIndicators is the controller type

func (*UsageIndicators) BulkImport

func (u *UsageIndicators) BulkImport(c echo.Context) error

BulkImport imports a list of given usage indicators at once. It creates or updates existing ones based on unicity of Docktor group name and service type

func (*UsageIndicators) GetAll

func (u *UsageIndicators) GetAll(c echo.Context) error

GetAll usage indicators from database

type Users

type Users struct {
}

Users is the controller type

func (*Users) Delete

func (u *Users) Delete(c echo.Context) error

Delete user from database

func (*Users) Get

func (u *Users) Get(c echo.Context) error

Get user from database

func (*Users) GetAll

func (u *Users) GetAll(c echo.Context) error

GetAll users from database

func (*Users) Profile

func (u *Users) Profile(c echo.Context) error

Profile returns the profile of the connecter user

func (*Users) Update

func (u *Users) Update(c echo.Context) error

Update updates existing user, given its id User is updated according to the role of the connected user Some fields are read-only because it's owned by LDAP provider (ex: Name/Username)

Jump to

Keyboard shortcuts

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