controller

package
v0.0.0-...-492a0b1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GithubSSOToken

func GithubSSOToken(c *gin.Context)

func ParamsAvailableForPipeline

func ParamsAvailableForPipeline(c *gin.Context)

func ParseResponse

func ParseResponse(response *http.Response) (map[string]interface{}, error)

func PipelineForBuildType

func PipelineForBuildType(c *gin.Context)

func PipelineTrigger

func PipelineTrigger(c *gin.Context)

func PipelinesShow

func PipelinesShow(c *gin.Context)

func RequestResult

func RequestResult(c *gin.Context)

func RequestRotation

func RequestRotation(c *gin.Context)

Types

type ParamsAvailableForPipelineStruct

type ParamsAvailableForPipelineStruct struct {
	PipelineId int `form:"pipeline_id"`
}

type PipelineForBuildTypeStruct

type PipelineForBuildTypeStruct struct {
	BuildType string `form:"build_type"`
}

type PipelineTriggerStruct

type PipelineTriggerStruct struct {
	Arch         string `form:"arch" json:"arch" validate:"required"`
	ArtifactType string `form:"artifact_type" json:"artifact_type" validate:"required"`
	Branch       string `form:"branch" json:"branch" validate:"required"`
	Component    string `form:"component" json:"component" validate:"required"`
	PipelineId   int    `form:"pipeline_id" json:"pipeline_id" validate:"required,numeric"`
	Version      string `form:"version" json:"version" validate:"required,startswith=v"`
	TriggeredBy  string `form:"triggered_by" json:"triggered_by" validate:"required"`
	PushGCR      string `form:"push_gcr" json:"push_gcr" validate:"required"`
}

type PipelinesListShowRequest

type PipelinesListShowRequest struct {
	PipelineId int `form:"pipeline_id"`
	Page       int `form:"page"`
	PageSize   int `form:"page_size"`
}

type RequestResultRequestStruct

type RequestResultRequestStruct struct {
	PipelineBuildId int `form:"pipeline_build_id"`
}

type RequestRotationRequestStruct

type RequestRotationRequestStruct struct {
	PipelineBuildId int `form:"pipeline_build_id"`
}

type TestGithubSSO

type TestGithubSSO struct {
	ClientId     string `json:"client_id" form:"client_id" uri:"client_id"`
	ClientSecret string `json:"client_secret" form:"client_secret" uri:"client_secret"`
	Code         string `json:"code" form:"code" uri:"code"`
	RedirectUri  string `json:"redirect_uri" form:"redirect_uri" uri:"redirect_uri"`
}

type TibuildInfo

type TibuildInfo struct {
	PipelineId   int    `form:"pipeline_id"`
	BuildType    string `form:"build_type"`
	TabName      string `form:"tab_name"`
	Component    string `form:"component"`
	Branch       string `form:"branch"`
	Version      string `form:"version"`
	Arch         string `form:"arch"`
	PushGCR      string `form:"push_gcr"`
	ArtifactType string `form:"artifact_type"`
	Pipeline     string `form:"pipeline"`
	ArtifactMeta string `form:"artifact_meta"`
}

func (TibuildInfo) TableName

func (TibuildInfo) TableName() string

type TriggerRes

type TriggerRes struct {
	PipelineBuildId int `json:"pipeline_build_id" form:"pipeline_build_id" uri:"pipeline_build_id"`
}

type WhiteList

type WhiteList struct {
	Id     int    `gorm:"id"`
	Name   string `gorm:"name"`
	NameCn string `gorm:"name_cn"`
}

Jump to

Keyboard shortcuts

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