executions

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package executions will manage all executions requirements

Package executions will manage all executions requirements

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(c *gin.Context)

List permit to retrieve executions with pagination

func Read

func Read(c *gin.Context)

Read permit to read content of specific execution

func Search(c *gin.Context)

Search handle requirements to search projects with searchExecutions struct

func UniqID

func UniqID(c *gin.Context)

UniqID permit to get content of all uniq id executions

func UpdateResultExecution

func UpdateResultExecution(c *gin.Context)

UpdateResultExecution permit update specific execution result

Types

type DBRead

type DBRead struct {
	Execution_id           int       `json:"execution_id"`
	Project_id             int       `json:"project_id"`
	Branch                 string    `json:"branch"`
	Execution_status       string    `json:"execution_status"`
	Uniq_id                string    `json:"uniq_id"`
	Spec                   string    `json:"spec"`
	Result                 string    `json:"result"`
	Date                   time.Time `json:"date"`
	Execution_error_output string    `json:"execution_error_output"`
	Pod_name               string    `json:"pod_name"`
	Pod_cleaned            bool      `json:"pod_cleaned"`
	Project_name           string    `json:"project_name"`
}

DBRead struct permit to map data from db

func GetExecutionIDForUnitTesting

func GetExecutionIDForUnitTesting() (z DBRead, err error)

GetExecutionIDForUnitTesting will fetch data from db

Jump to

Keyboard shortcuts

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