blueprints

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(c *gin.Context)

@Summary delete blueprints @Description Delete BluePrints @Tags framework/blueprints @Param blueprintId path string true "blueprintId" @Success 200 @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /blueprints/{blueprintId} [delete]

func Get

func Get(c *gin.Context)

@Summary get blueprints @Description get blueprints @Tags framework/blueprints @Accept application/json @Param blueprintId path int true "blueprint id" @Success 200 {object} models.Blueprint @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /blueprints/{blueprintId} [get]

func GetBlueprintPipelines added in v0.13.0

func GetBlueprintPipelines(c *gin.Context)

@Summary get pipelines by blueprint id @Description get pipelines by blueprint id @Tags framework/blueprints @Accept application/json @Param blueprintId path int true "blueprint id" @Success 200 {object} shared.ResponsePipelines @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /blueprints/{blueprintId}/pipelines [get]

func Index

func Index(c *gin.Context)

@Summary get blueprints @Description get blueprints @Tags framework/blueprints @Accept application/json @Success 200 {object} gin.H @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /blueprints [get]

func Patch

func Patch(c *gin.Context)

@Summary patch blueprints @Description patch blueprints @Tags framework/blueprints @Accept application/json @Param blueprintId path string true "blueprintId" @Success 200 {object} models.Blueprint @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /blueprints/{blueprintId} Patch

func Post

func Post(c *gin.Context)

@Summary post blueprints @Description post blueprints @Tags framework/blueprints @Accept application/json @Param blueprint body models.Blueprint true "json" @Success 200 {object} models.Blueprint @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /blueprints [post]

func PostDbtBlueprint added in v0.13.0

func PostDbtBlueprint(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)

@Summary blueprints plan for dbt @Description blueprints plan for dbt @Tags framework/blueprints @Accept application/json @Param blueprint body DbtBlueprintPlan true "json" @Router /blueprints/dbt/blueprint-plan [post]

func PostFeishuBlueprint added in v0.13.0

func PostFeishuBlueprint(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)

@Summary blueprints plan for feishu @Description blueprints plan for feishu @Tags framework/blueprints @Accept application/json @Param blueprint body FeishuBlueprintPlan true "json" @Router /blueprints/feishu/blueprint-plan [post]

func PostGitextractorBlueprint added in v0.13.0

func PostGitextractorBlueprint(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)

@Summary blueprints plan for gitextractor @Description blueprints plan for gitextractor @Tags framework/blueprints @Accept application/json @Param blueprint body GitextractorBlueprintPlan true "json" @Router /blueprints/gitextractor/blueprint-plan [post]

func PostGithubBluePrint added in v0.13.0

func PostGithubBluePrint(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)

@Summary blueprints setting for github @Description blueprint setting for github @Tags framework/blueprints @Accept application/json @Param blueprint body GithubBlueprintSetting true "json" @Router /blueprints/github/blueprint-setting [post]

func PostGitlabBluePrint added in v0.13.0

func PostGitlabBluePrint(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)

@Summary blueprints setting for gitlab @Description blueprint setting for gitlab @Tags framework/blueprints @Accept application/json @Param blueprint body GitlabBlueprintSetting true "json" @Router /blueprints/gitlab/blueprint-setting [post]

func PostJiraBlueprintSetting added in v0.13.0

func PostJiraBlueprintSetting(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)

@Summary blueprints setting for jira @Description blueprint setting for jira @Tags framework/blueprints @Accept application/json @Param blueprint-setting body JiraBlueprintSetting true "json" @Router /blueprints/jira/blueprint-setting [post]

func PostRefdiffBlueprint added in v0.13.0

func PostRefdiffBlueprint(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)

@Summary blueprints plan for refdiff @Description blueprints plan for refdiff @Tags framework/blueprints @Accept application/json @Param blueprint body RefdiffBlueprintPlan true "json" @Router /blueprints/refdiff/blueprint-plan [post]

func PostTapdBlueprintSetting added in v0.13.0

func PostTapdBlueprintSetting(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)

@Summary blueprints setting for tapd @Description blueprint setting for tapd @Tags framework/blueprints @Accept application/json @Param blueprint body TapdBlueprintSetting true "json" @Router /blueprints/tapd/blueprint-setting [post]

func Trigger added in v0.12.0

func Trigger(c *gin.Context)

@Summary trigger blueprint @Description trigger a blueprint immediately @Tags framework/blueprints @Accept application/json @Param blueprintId path string true "blueprintId" @Success 200 {object} models.Pipeline @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /blueprints/{blueprintId}/trigger Post

Types

type CodeTransformationRules added in v0.13.0

type CodeTransformationRules struct {
	PrType               string `mapstructure:"prType" json:"prType"`
	PrComponent          string `mapstructure:"prComponent" json:"prComponent"`
	PrBodyClosePattern   string `mapstructure:"prBodyClosePattern" json:"prBodyClosePattern"`
	IssueSeverity        string `mapstructure:"issueSeverity" json:"issueSeverity"`
	IssuePriority        string `mapstructure:"issuePriority" json:"issuePriority"`
	IssueComponent       string `mapstructure:"issueComponent" json:"issueComponent"`
	IssueTypeBug         string `mapstructure:"issueTypeBug" json:"issueTypeBug"`
	IssueTypeIncident    string `mapstructure:"issueTypeIncident" json:"issueTypeIncident"`
	IssueTypeRequirement string `mapstructure:"issueTypeRequirement" json:"issueTypeRequirement"`
}

type DbtBlueprintPlan added in v0.13.0

type DbtBlueprintPlan [][]struct {
	Plugin  string `json:"plugin"`
	Options struct {
		ProjectPath    string   `json:"projectPath"`
		ProjectName    string   `json:"projectName"`
		ProjectTarget  string   `json:"projectTarget"`
		SelectedModels []string `json:"selectedModels"`
		ProjectVars    struct {
			Demokey1 string `json:"demokey1"`
			Demokey2 string `json:"demokey2"`
		} `json:"projectVars"`
	} `json:"options"`
}

type FeishuBlueprintPlan added in v0.13.0

type FeishuBlueprintPlan [][]struct {
	Plugin  string   `json:"plugin"`
	Options struct{} `json:"options"`
}

type GitextractorBlueprintPlan added in v0.13.0

type GitextractorBlueprintPlan [][]struct {
	Plugin  string `json:"plugin"`
	Options struct {
		URL    string `json:"url"`
		RepoID string `json:"repoId"`
	} `json:"options"`
}

type GithubBlueprintSetting added in v0.13.0

type GithubBlueprintSetting []struct {
	Version     string `json:"version"`
	Connections []struct {
		Plugin       string `json:"plugin"`
		ConnectionID int    `json:"connectionId"`
		Scope        []struct {
			Transformation CodeTransformationRules `json:"transformation"`
			Options        struct {
				Owner string `json:"owner"`
				Repo  string `json:"repo"`
				Since string
			} `json:"options"`
			Entities []string `json:"entities"`
		} `json:"scope"`
	} `json:"connections"`
}

type GitlabBlueprintSetting added in v0.13.0

type GitlabBlueprintSetting []struct {
	Version     string `json:"version"`
	Connections []struct {
		Plugin       string `json:"plugin"`
		ConnectionID int    `json:"connectionId"`
		Scope        []struct {
			Transformation CodeTransformationRules `json:"transformation"`
			Options        struct {
				ProjectId int `json:"projectId"`
				Since     string
			} `json:"options"`
			Entities []string `json:"entities"`
		} `json:"scope"`
	} `json:"connections"`
}

type JiraBlueprintSetting added in v0.13.0

type JiraBlueprintSetting []struct {
	Version     string `json:"version"`
	Connections []struct {
		Plugin       string `json:"plugin"`
		ConnectionID int    `json:"connectionId"`
		Scope        []struct {
			Transformation TicketTransformationRules `json:"transformation"`
			Options        struct {
				BoardId uint64 `json:"boardId"`
				Since   string `json:"since"`
			} `json:"options"`
			Entities []string `json:"entities"`
		} `json:"scope"`
	} `json:"connections"`
}

type RefdiffBlueprintPlan added in v0.13.0

type RefdiffBlueprintPlan [][]struct {
	Plugin  string `json:"plugin"`
	Options struct {
		RepoID string `json:"repoId"`
		Pairs  []struct {
			NewRef string `json:"newRef"`
			OldRef string `json:"oldRef"`
		} `json:"pairs"`
	} `json:"options"`
}

type TapdBlueprintSetting added in v0.13.0

type TapdBlueprintSetting []struct {
	Version     string `json:"version"`
	Connections []struct {
		Plugin       string `json:"plugin"`
		ConnectionID int    `json:"connectionId"`
		Scope        []struct {
			Options struct {
				WorkspaceId uint64   `mapstruct:"workspaceId"`
				CompanyId   uint64   `mapstruct:"companyId"`
				Tasks       []string `mapstruct:"tasks,omitempty"`
				Since       string
			} `json:"options"`
			Entities []string `json:"entities"`
		} `json:"scope"`
	} `json:"connections"`
}

type TicketTransformationRules added in v0.13.0

type TicketTransformationRules struct {
	EpicKeyField               string `json:"epicKeyField"`
	StoryPointField            string `json:"storyPointField"`
	RemotelinkCommitShaPattern string `json:"remotelinkCommitShaPattern"`
	TypeMappings               map[string]struct {
		StandardType string `json:"standardType"`
	} `json:"typeMappings"`
}

Jump to

Keyboard shortcuts

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