Documentation
¶
Index ¶
- func GetConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func ListConnections(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func PutConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func TestConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- type ApiUserResponse
- type GitlabConnection
- type GitlabResponse
- type TestConnectionRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConnection ¶
func GetConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
GET /plugins/gitlab/connections/:connectionId
func ListConnections ¶
func ListConnections(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
GET /plugins/gitlab/connections
func PutConnection ¶
func PutConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
PUT /plugins/gitlab/connections/:connectionId
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 GitlabConnection ¶
type GitlabConnection 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 GitlabResponse ¶
type GitlabResponse struct {
Name string
ID int
GitlabConnection
}
This object conforms to what the frontend currently expects.
func GetConnectionFromEnv ¶
func GetConnectionFromEnv() (*GitlabResponse, error)
type TestConnectionRequest ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.