api

package
v0.5.0-test1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSource

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

GET /plugins/gitlab/sources/:sourceId

func ListSources

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

GET /plugins/gitlab/sources

func PutSource

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

PUT /plugins/gitlab/sources/:sourceId

func TestConnection added in v0.6.0

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

GET /plugins/gitlab/test

Types

type ApiUserResponse added in v0.6.0

type ApiUserResponse struct {
	Id   int
	Name string
}

Using User because it requires authentication.

type GitlabConfig

type GitlabConfig struct {
	GITLAB_ENDPOINT            string `mapstructure:"GITLAB_ENDPOINT"`
	GITLAB_AUTH                string `mapstructure:"GITLAB_AUTH"`
	JIRA_BOARD_GITLAB_PROJECTS string `mapstructure:"JIRA_BOARD_GITLAB_PROJECTS"`
}

type GitlabResponse

type GitlabResponse struct {
	Endpoint                   string
	Auth                       string
	Name                       string
	ID                         int
	JIRA_BOARD_GITLAB_PROJECTS string
}

This object conforms to what the frontend currently expects.

func GetSourceFromEnv

func GetSourceFromEnv() (*GitlabResponse, error)

type GitlabSource

type GitlabSource struct {
	GITLAB_ENDPOINT            string
	GITLAB_AUTH                string
	JIRA_BOARD_GITLAB_PROJECTS string
}

This object conforms to what the frontend currently sends.

Jump to

Keyboard shortcuts

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