syncd: github.com/dreamans/syncd/router/deploy Index | Files

package deploy

import "github.com/dreamans/syncd/router/deploy"

Index

Package Files

apply.go build.go deploy.go mail.go

Constants

const (
    MAIL_MODE_AUDIT_NOTICE = 1
    MAIL_MODE_AUDIT_RESULT = 2
    MAIL_MODE_DEPLOY       = 3
)
const (
    MAIL_STATUS_SUCCESS = 1
    MAIL_STATUS_FAILED  = 0
)

func ApplyAudit Uses

func ApplyAudit(c *gin.Context)

func ApplyDetail Uses

func ApplyDetail(c *gin.Context)

func ApplyDrop Uses

func ApplyDrop(c *gin.Context)

func ApplyList Uses

func ApplyList(c *gin.Context)

func ApplyProjectAll Uses

func ApplyProjectAll(c *gin.Context)

func ApplyProjectDetail Uses

func ApplyProjectDetail(c *gin.Context)

func ApplyRollbackList Uses

func ApplyRollbackList(c *gin.Context)

func ApplySubmit Uses

func ApplySubmit(c *gin.Context)

func ApplyUpdate Uses

func ApplyUpdate(c *gin.Context)

func BuildStart Uses

func BuildStart(c *gin.Context)

func BuildStatus Uses

func BuildStatus(c *gin.Context)

func BuildStop Uses

func BuildStop(c *gin.Context)

func DeployRollback Uses

func DeployRollback(c *gin.Context)

func DeployStart Uses

func DeployStart(c *gin.Context)

func DeployStatus Uses

func DeployStatus(c *gin.Context)

func DeployStop Uses

func DeployStop(c *gin.Context)

func MailSend Uses

func MailSend(msg *MailMessage)

type ApplyAuditFormBind Uses

type ApplyAuditFormBind struct {
    ID                  int    `form:"id" binding:"required"`
    AuditStatus         int    `form:"audit_status" binding:"required"`
    AuditRefusalReasion string `form:"audit_refusal_reasion"`
}

type ApplyFormBind Uses

type ApplyFormBind struct {
    ProjectId     int    `form:"project_id" binding:"required"`
    SpaceId       int    `form:"space_id" binding:"required"`
    Name          string `form:"name" binding:"required"`
    BranchName    string `form:"branch_name"`
    CommitVersion string `form:"commit_version"`
    Description   string `form:"description"`
    RollbackId    int    `form:"rollback_id"`
}

type ApplyQueryBind Uses

type ApplyQueryBind struct {
    Time        int    `form:"time"`
    AuditStatus int    `form:"audit_status"`
    Status      int    `form:"status"`
    ProjectId   int    `form:"project_id"`
    Keyword     string `form:"keyword"`
    Offset      int    `form:"offset"`
    Limit       int    `form:"limit" binding:"required,gte=1,lte=999"`
}

type ApplyUpdateFormBind Uses

type ApplyUpdateFormBind struct {
    ID            int    `form:"id" binding:"required"`
    BranchName    string `form:"branch_name" binding:"required"`
    CommitVersion string `form:"commit_version"`
    Description   string `form:"description" binding:"required"`
}

type MailMessage Uses

type MailMessage struct {
    Mail    string
    ApplyId int
    Mode    int
    Status  int
    Title   string
}

Package deploy imports 16 packages (graph) and is imported by 1 packages. Updated 2019-05-11. Refresh now. Tools for package owners.