api

package
v0.9.2-test1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 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/ae/sources/:sourceId

func ListSources

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

GET /plugins/ae/sources

func PutSource

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

PUT /plugins/ae/sources/:sourceId

func TestConnection

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

GET /plugins/github/test

Types

type AEConfig

type AEConfig struct {
	AE_APP_ID    string `mapstructure:"AE_APP_ID"`
	AE_SIGN      string `mapstructure:"AE_SIGN"`
	AE_NONCE_STR string `mapstructure:"AE_NONCE_STR"`
	AE_ENDPOINT  string `mapstructure:"AE_ENDPOINT"`
}

type AEResponse

type AEResponse struct {
	Endpoint string
	Sign     string
	Nonce    string
	AppId    string
	Name     string
	ID       int
}

This object conforms to what the frontend currently expects.

func GetSourceFromEnv

func GetSourceFromEnv() (*AEResponse, error)

type ApiMeResponse

type ApiMeResponse struct {
	Name     string `json:"name"`
	GithubId int    `json:"id"`
	HTMLUrl  string `json:"html_url"`
}

Jump to

Keyboard shortcuts

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