api

package
v0.12.0-beta4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteConnection added in v0.12.0

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

DELETE /plugins/gitlab/connections/:connectionId

func GetConnection

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

GET /plugins/gitlab/connections/:connectionId

{
	"name": "gitlab data connection name",
	"endpoint": "gitlab api endpoint, i.e. https://gitlab.com/api/v4/",
	"token": "gitlab api access token"
}

func Init added in v0.12.0

func Init(config *viper.Viper, logger core.Logger, database *gorm.DB)

func ListConnections

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

GET /plugins/gitlab/connections

func MakePipelinePlan added in v0.12.0

func MakePipelinePlan(subtaskMetas []core.SubTaskMeta, connectionId uint64, scope []*core.BlueprintScopeV100) (core.PipelinePlan, error)

func PatchConnection

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

PATCH /plugins/gitlab/connections/:connectionId

{
	"name": "gitlab data connection name",
	"endpoint": "gitlab api endpoint, i.e. https://gitlab.com/api/v4/",
	"token": "gitlab api access token"
}

func PostConnections added in v0.12.0

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

POST /plugins/gitlab/connections

{
	"name": "gitlab data connection name",
	"endpoint": "gitlab api endpoint, i.e. https://gitlab.com/api/v4/",
	"token": "gitlab api access token"
}

func TestConnection

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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