api

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 3 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/github/sources/:sourceId

func ListSources

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

GET /plugins/github/sources

func PutSource

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

PUT /plugins/github/sources/:sourceId

Types

type GithubConfig

type GithubConfig struct {
	GITHUB_ENDPOINT string `mapstructure:"GITHUB_ENDPOINT"`
	GITHUB_AUTH     string `mapstructure:"GITHUB_AUTH"`
	GITHUB_PROXY    string `mapstructure:"GITHUB_PROXY"`
}

type GithubResponse

type GithubResponse struct {
	Endpoint string
	Auth     string
	Name     string
	ID       int
	Proxy    string `json:"proxy"`
}

This object conforms to what the frontend currently expects.

func GetSourceFromEnv

func GetSourceFromEnv() (*GithubResponse, error)

type GithubSource

type GithubSource struct {
	GITHUB_ENDPOINT string
	GITHUB_AUTH     string
	GITHUB_PROXY    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