Documentation ¶
Index ¶
- func LimitHandler(lmt *limiter.Limiter) gin.HandlerFunc
- type Config
- type JSONResultError
- type JSONResultSuccess
- type Logging
- type MaintainershipClient
- type Manager
- func (m *Manager) DoGroupCreate(c *gin.Context)
- func (m *Manager) DoGroupDelete(c *gin.Context)
- func (m *Manager) DoGroupList(c *gin.Context)
- func (m *Manager) DoReposAdd(c *gin.Context)
- func (m *Manager) DoReposRemove(c *gin.Context)
- func (m *Manager) DoReposSet(c *gin.Context)
- func (m *Manager) DoTokenRegister(c *gin.Context)
- func (m *Manager) DoTokenRemove(c *gin.Context)
- func (m *Manager) Serve()
- func (m *Manager) SetRoutes()
- func (m *Manager) Status(c *gin.Context)
- type Server
- type TLS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LimitHandler ¶
func LimitHandler(lmt *limiter.Limiter) gin.HandlerFunc
Types ¶
type JSONResultError ¶
type JSONResultSuccess ¶
type JSONResultSuccess struct { Code int `json:"Code" ` Response interface{} `json:"Response"` }
type MaintainershipClient ¶
type MaintainershipClient struct { TeamsClient teamsClient UsersClient usersClient }
type Manager ¶
type Manager struct { ActionsClient actionsClient RepositoriesClient repositoriesClient TeamsClient teamsClient Limit *limiter.Limiter Router *gin.Engine Server *http.Server Config *Config Logger *logrus.Logger CreateMaintainershipClient func(string, string) (*MaintainershipClient, *github.User, error) }
func (*Manager) DoGroupCreate ¶
DoGroupCreate Create a new GitHub Action organization Runner Group @Summary Create a new GitHub Action organization Runner Group @Description Creates a new GitHub Action organization runner group named with the team slug @Tags Groups @Produce json @Param team query string true "Canonical **slug** of the GitHub team" @Param Authorization header string true "Authorization token" @Success 200 {object} JSONResultSuccess{Code=int,Response=string} @Router /group-create [post] @Security ApiKeyAuth
func (*Manager) DoGroupDelete ¶
DoGroupDelete Deletes an existing GitHub Action organization Runner Group @Summary Deletes an existing GitHub Action organization Runner Group @Description Deletes an existing GitHub Action organization runner group named with the team slug @Tags Groups @Produce json @Param team query string true "Canonical **slug** of the GitHub team" @Success 200 {object} JSONResultSuccess{Code=int,Response=string} @Router /group-delete [delete] @Security ApiKeyAuth
func (*Manager) DoGroupList ¶
DoGroupList List all resources associated with a GitHub Action organization Runner Group @Summary List all resources associated with a GitHub Action organization Runner Group @Description List all repositories and runners assigned to a GitHub Action organization runner group named with the team slug @Tags Groups @Produce json @Param team query string true "Canonical **slug** of the GitHub team" @Success 200 {object} JSONResultSuccess{Code=int,Response=listResponse} @Router /group-list [get] @Security ApiKeyAuth
func (*Manager) DoReposAdd ¶
DoReposAdd Add new repositories to an existing GitHub Actions organization runner group @Summary Add new repositories to an existing GitHub Actions organization runner group @Description Adds new repositories to an existing GitHub Actions organization named with the team slug @Tags Repos @Produce json @Param team query string true "Canonical **slug** of the GitHub team" @Param repos query []string true "Comma-seperated list of repository slugs" @Success 200 {object} JSONResultSuccess{Code=int,Response=string} @Router /repos-add [patch] @Security ApiKeyAuth
func (*Manager) DoReposRemove ¶
DoReposRemove Remove existing repositories from an existing GitHub Actions organization runner group @Summary Remove existing repositories from an existing GitHub Actions organization runner group @Description Removes existing repositories to an existing GitHub Actions organization named with the team slug @Tags Repos @Produce json @Param team query string true "Canonical **slug** of the GitHub team" @Param repos query []string true "Comma-seperated list of repository slugs" @Success 200 {object} JSONResultSuccess{Code=int,Response=string} @Router /repos-remove [patch] @Security ApiKeyAuth
func (*Manager) DoReposSet ¶
DoReposSet Replaces all existing repositories in an existing GitHub Actions organization runner group with a new set of repositories @Summary Replaces all existing repositories in an existing GitHub Actions organization runner group with a new set of repositories @Description Replaces all existing repositories in an existing GitHub Actions organization named with the team slug with a new set of repositories @Tags Repos @Produce json @Param team query string true "Canonical **slug** of the GitHub team" @Param repos query []string true "Comma-seperated list of repository slugs" @Success 200 {object} JSONResultSuccess{Code=int,Response=string} @Router /repos-set [patch] @Security ApiKeyAuth
func (*Manager) DoTokenRegister ¶
DoTokenRegister Request a GitHub Action organization runner registration token @Summary Create a new GitHub Action organization runner registration token @Description Creates a new GitHub Action organization runner removal token that can be used to configure GitHub Action runners at the organization level @Tags Tokens @Produce json @Param team query string true "Canonical **slug** of the GitHub team" @Success 200 {object} JSONResultSuccess{Code=int,Response=github.RegistrationToken} @Router /token-register [get] @Security ApiKeyAuth
func (*Manager) DoTokenRemove ¶
DoTokenRemove Request a GitHub Action organization runner removal token @Summary Create a new GitHub Action organization runner removal token @Description Creates a new GitHub Action organization runner removal token that can be used remove a GitHub Action runners at the organization level @Tags Tokens @Produce json @Param team query string true "Canonical **slug** of the GitHub team" @Success 200 {object} JSONResultSuccess{Code=int,Response=github.RegistrationToken} @Router /token-remove [get] @Security ApiKeyAuth