config

package
v0.0.0-...-72f410e Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelConfig

func DelConfig(c *gin.Context)

DelConfig godoc @Tags config @Description Delete Application Config @OperationId DelConfig @Accept json @Produce json @Param name path string true "name of the config" @Param version path string true "version of the config" @Success 200 {object} ex.Response "ok" @Failure 400 {object} ex.Response "Invalid Name supplied!" @Failure 404 {object} ex.Response "Instance not found" @Failure 405 {object} ex.Response "Invalid input" @Failure 500 {object} ex.Response "Server Error" @Router "/config/name/{name}/version/{version}" [delete]

func GetConfig

func GetConfig(c *gin.Context)

GetConfig godoc @Tags config @Description Get Application Config @OperationId GetConfig @Accept json @Produce json @Param name path string true "name of the config" @Param version path string true "version of the config" @Success 200 {object} config.ConfigType "ok" @Failure 400 {object} ex.Response "Invalid Name supplied!" @Failure 404 {object} ex.Response "Instance not found" @Failure 405 {object} ex.Response "Invalid input" @Failure 500 {object} ex.Response "Server Error" @Router "/config/name/{name}/version/{version}" [get]

func ModConfig

func ModConfig(c *gin.Context)

ModConfig godoc @Tags config @Description Modify Application Config @OperationId ModConfig @Accept json @Produce json @Param config body ConfigType true "data of the config" @Success 200 {object} ex.Response "ok" @Failure 400 {object} ex.Response "Invalid Name supplied!" @Failure 404 {object} ex.Response "Instance not found" @Failure 405 {object} ex.Response "Invalid input" @Failure 500 {object} ex.Response "Server Error" @Router "/config" [put]

func NewConfig

func NewConfig(c *gin.Context)

NewConfig godoc @Tags config @Description Modify Application Config @OperationId NewConfig @Accept json @Produce json @Param config body ConfigType true "data of the config" @Success 200 {object} ex.Response "ok" @Failure 400 {object} ex.Response "Invalid Name supplied!" @Failure 404 {object} ex.Response "Instance not found" @Failure 405 {object} ex.Response "Invalid input" @Failure 500 {object} ex.Response "Server Error" @Router "/config" [post]

func StartTest

func StartTest(c *gin.Context)

StartTest godoc @Tags application @Description Modify Application Config @OperationId NewConfig @Accept json @Produce json @Param name path string true "name of the config" @Param version path string true "version of the config" @Success 200 {object} ex.Response "ok" @Failure 400 {object} ex.Response "Invalid Name supplied!" @Failure 404 {object} ex.Response "Instance not found" @Failure 405 {object} ex.Response "Invalid input" @Failure 500 {object} ex.Response "Server Error" @Router "/application/build/name/{name}/version/{version}" [post]

Types

type ConfigInfo

type ConfigInfo struct {
	Config      ConfigType          `json:"config"`
	ProjectInfo project.ProjectInfo `json:"project_info"`
	PipeLineId  uint64              `json:"pipeline_id"`
	Jobid       uint64              `json:"job_id"`
}

type ConfigType

type ConfigType struct {
	Name    string `json:"name"`
	Version string `json:"version"`
	Context string `json:"context"`
}

Jump to

Keyboard shortcuts

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