Documentation ¶
Index ¶
- Variables
- func HandleGitHubEvent(w http.ResponseWriter, r *http.Request, ds datastore.Datastore)
- func HandleMetrics(w http.ResponseWriter, r *http.Request, ds datastore.Datastore)
- func NewMux(ds datastore.Datastore) *goji.Mux
- func Serve(ctx context.Context, ds datastore.Datastore) error
- type ErrorResponse
- type TargetCreateParam
- type UserTarget
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GHExistGitHubRepositoryFunc = gh.ExistGitHubRepository GHExistRunnerReleases = gh.ExistRunnerReleases GHListRunnersFunc = gh.ListRunners GHIsInstalledGitHubApp = gh.IsInstalledGitHubApp GHGenerateGitHubAppsToken = gh.GenerateGitHubAppsToken GHNewClientApps = gh.NewClientGitHubApps )
function pointer (for testing)
Functions ¶
func HandleGitHubEvent ¶ added in v1.15.11
HandleGitHubEvent handle GitHub webhook event
func HandleMetrics ¶ added in v1.15.11
HandleMetrics handle metrics endpoint
Types ¶
type ErrorResponse ¶ added in v1.10.9
type ErrorResponse struct {
Error string `json:"error"`
}
ErrorResponse is error response
type TargetCreateParam ¶ added in v1.8.5
type TargetCreateParam struct { datastore.Target GHEDomain *string `json:"ghe_domain"` // ignore RunnerUser *string `json:"runner_user"` // nullable ProviderURL *string `json:"provider_url"` // nullable }
TargetCreateParam is parameter for POST /target
type UserTarget ¶ added in v1.8.0
type UserTarget struct { UUID uuid.UUID `json:"id"` Scope string `json:"scope"` TokenExpiredAt time.Time `json:"token_expired_at"` ResourceType string `json:"resource_type"` ProviderURL string `json:"provider_url"` Status datastore.TargetStatus `json:"status"` StatusDescription string `json:"status_description"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
UserTarget is format for user
Click to show internal directories.
Click to hide internal directories.