Documentation ¶
Index ¶
- func GetSource(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func ListSources(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func PutSource(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func TestConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- type ApiUserResponse
- type GitlabResponse
- type GitlabSource
- type TestConnectionRequest
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)
POST /plugins/gitlab/test
Types ¶
type ApiUserResponse ¶ added in v0.6.0
Using User because it requires authentication.
type GitlabResponse ¶
type GitlabResponse struct { Name string ID int GitlabSource }
This object conforms to what the frontend currently expects.
func GetSourceFromEnv ¶
func GetSourceFromEnv() (*GitlabResponse, error)
type GitlabSource ¶
type GitlabSource struct { Endpoint string `mapstructure:"GITLAB_ENDPOINT" validate:"required"` Auth string `mapstructure:"GITLAB_AUTH" validate:"required"` Proxy string `mapstructure:"GITLAB_PROXY"` }
This object conforms to what the frontend currently sends.
type TestConnectionRequest ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.