Documentation ¶
Index ¶
- func DeleteConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)
- func GetConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)
- func Init(br core.BasicRes)
- func ListConnections(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)
- func MakePipelinePlan(subtaskMetas []core.SubTaskMeta, connectionId uint64, ...) (core.PipelinePlan, errors.Error)
- func PatchConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)
- func PostConnections(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)
- func TestConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteConnection ¶
func DeleteConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)
@Summary delete a bitbucket connection @Description Delete a bitbucket connection @Tags plugins/bitbucket @Success 200 {object} models.BitbucketConnection @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /plugins/bitbucket/connections/{connectionId} [DELETE]
func GetConnection ¶
func GetConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)
@Summary get bitbucket connection detail @Description Get bitbucket connection detail @Tags plugins/bitbucket @Success 200 {object} models.BitbucketConnection @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /plugins/bitbucket/connections/{connectionId} [GET]
func ListConnections ¶
func ListConnections(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)
@Summary get all bitbucket connections @Description Get all bitbucket connections @Tags plugins/bitbucket @Success 200 {object} []models.BitbucketConnection @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /plugins/bitbucket/connections [GET]
func MakePipelinePlan ¶
func MakePipelinePlan(subtaskMetas []core.SubTaskMeta, connectionId uint64, scope []*core.BlueprintScopeV100) (core.PipelinePlan, errors.Error)
func PatchConnection ¶
func PatchConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)
@Summary patch bitbucket connection @Description Patch bitbucket connection @Tags plugins/bitbucket @Param body body models.BitbucketConnection true "json body" @Success 200 {object} models.BitbucketConnection @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /plugins/bitbucket/connections/{connectionId} [PATCH]
func PostConnections ¶
func PostConnections(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)
@Summary create bitbucket connection @Description Create bitbucket connection @Tags plugins/bitbucket @Param body body models.BitbucketConnection true "json body" @Success 200 {object} models.BitbucketConnection @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /plugins/bitbucket/connections [POST]
func TestConnection ¶
func TestConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)
@Summary test bitbucket connection @Description Test bitbucket Connection @Tags plugins/bitbucket @Param body body models.TestConnectionRequest true "json body" @Success 200 {object} shared.ApiBody "Success" @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /plugins/bitbucket/test [POST]
Types ¶
This section is empty.