Documentation ¶
Index ¶
- type AccessTokensController
- type AgentsController
- func (ctrl *AgentsController) AgentAccess(c *gin.Context)
- func (ctrl *AgentsController) Create(c *gin.Context)
- func (ctrl *AgentsController) Delete(c *gin.Context)
- func (ctrl *AgentsController) GenerateRunnerToken(c *gin.Context)
- func (ctrl *AgentsController) Get(c *gin.Context)
- func (ctrl *AgentsController) GetRuns(c *gin.Context)
- func (ctrl *AgentsController) List(c *gin.Context)
- func (a *AgentsController) Middleware() []gin.HandlerFunc
- func (a *AgentsController) Routes() []types.Route
- func (ctrl *AgentsController) Update(c *gin.Context)
- type AuthController
- type CreateAgentRequest
- type CreateRunInput
- type CreateRunnerTokenInput
- type CreateTokenPayload
- type CreateVariableInput
- type CreateVariableSetInput
- type CredentialsResponse
- type MeController
- type OrganizationsController
- type RegistryController
- type RunsController
- func (ctrl *RunsController) Create(c *gin.Context)
- func (ctrl *RunsController) GeneratePresignedUrl(c *gin.Context)
- func (ctrl *RunsController) Get(c *gin.Context)
- func (ctrl *RunsController) List(c *gin.Context)
- func (ctrl *RunsController) SaveLogs(c *gin.Context)
- func (ctrl *RunsController) StorePlan(c *gin.Context)
- func (ctrl *RunsController) Update(c *gin.Context)
- type VariableSetsController
- type VariablesController
- type VcsConnectionCreateInput
- type VcsConnectionsController
- func (ctrl *VcsConnectionsController) Create(c *gin.Context)
- func (ctrl *VcsConnectionsController) Credentials(c *gin.Context)
- func (ctrl *VcsConnectionsController) Delete(c *gin.Context)
- func (ctrl *VcsConnectionsController) Get(c *gin.Context)
- func (ctrl *VcsConnectionsController) List(c *gin.Context)
- type WorkspacesController
- func (ctrl *WorkspacesController) CreateWorkspace(c *gin.Context)
- func (ctrl *WorkspacesController) DeleteWorkspace(c *gin.Context)
- func (ctrl *WorkspacesController) GetState(c *gin.Context)
- func (ctrl *WorkspacesController) GetWorkspace(c *gin.Context)
- func (ctrl *WorkspacesController) ListVariables(c *gin.Context)
- func (ctrl *WorkspacesController) ListWorkspaces(c *gin.Context)
- func (ctrl *WorkspacesController) LockWorkspace(c *gin.Context)
- func (ctrl *WorkspacesController) UnlockWorkspace(c *gin.Context)
- func (ctrl *WorkspacesController) UpdateWorkspace(c *gin.Context)
- func (ctrl *WorkspacesController) UploadState(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokensController ¶ added in v1.12.0
type AccessTokensController struct {
Repository access_token.Repository
}
func NewAccessTokensController ¶ added in v1.12.0
func NewAccessTokensController(repo access_token.Repository) *AccessTokensController
func (*AccessTokensController) Create ¶ added in v1.12.0
func (ctrl *AccessTokensController) Create(c *gin.Context)
func (*AccessTokensController) Delete ¶ added in v1.13.0
func (ctrl *AccessTokensController) Delete(c *gin.Context)
func (*AccessTokensController) List ¶ added in v1.12.0
func (ctrl *AccessTokensController) List(c *gin.Context)
type AgentsController ¶
type AgentsController struct { Repository agent.AgentRepository RunsRepository run.RunRepository WorkspaceRepository workspaces.WorkspacesRepository JwtSecretKey string }
func NewAgentsController ¶ added in v1.8.0
func NewAgentsController( agentRepo agent.AgentRepository, runsRepo run.RunRepository, workspaceRepo workspaces.WorkspacesRepository, conf *config.Config, ) *AgentsController
func (*AgentsController) AgentAccess ¶
func (ctrl *AgentsController) AgentAccess(c *gin.Context)
func (*AgentsController) Create ¶
func (ctrl *AgentsController) Create(c *gin.Context)
func (*AgentsController) Delete ¶
func (ctrl *AgentsController) Delete(c *gin.Context)
func (*AgentsController) GenerateRunnerToken ¶ added in v1.6.0
func (ctrl *AgentsController) GenerateRunnerToken(c *gin.Context)
func (*AgentsController) Get ¶
func (ctrl *AgentsController) Get(c *gin.Context)
func (*AgentsController) GetRuns ¶
func (ctrl *AgentsController) GetRuns(c *gin.Context)
func (*AgentsController) List ¶
func (ctrl *AgentsController) List(c *gin.Context)
func (*AgentsController) Middleware ¶ added in v1.8.0
func (a *AgentsController) Middleware() []gin.HandlerFunc
func (*AgentsController) Routes ¶ added in v1.8.0
func (a *AgentsController) Routes() []types.Route
func (*AgentsController) Update ¶
func (ctrl *AgentsController) Update(c *gin.Context)
type AuthController ¶
type AuthController struct { }
func (*AuthController) Login ¶
func (ctrl *AuthController) Login(c *gin.Context)
func (*AuthController) Register ¶
func (ctrl *AuthController) Register(c *gin.Context)
type CreateAgentRequest ¶
type CreateAgentRequest struct {
Name string `json:"name"`
}
type CreateRunInput ¶
type CreateRunInput struct {
Operation string `json:"operation"`
}
type CreateRunnerTokenInput ¶ added in v1.6.0
type CreateTokenPayload ¶ added in v1.12.0
type CreateVariableInput ¶ added in v1.4.0
type CreateVariableSetInput ¶ added in v1.4.0
type CredentialsResponse ¶ added in v1.3.0
type CredentialsResponse struct {
GithubPersonalAccessToken string `json:"token"`
}
type MeController ¶ added in v1.0.3
func NewMeController ¶ added in v1.8.0
func NewMeController(db *gorm.DB, auth *authboss.Authboss) *MeController
func (*MeController) ListOrganizations ¶ added in v1.0.3
func (ctrl *MeController) ListOrganizations(c *gin.Context)
type OrganizationsController ¶
type OrganizationsController struct {
Repository organization.OrganizationRepository
}
func NewOrganizationsController ¶ added in v1.8.0
func NewOrganizationsController(repo organization.OrganizationRepository) *OrganizationsController
func (*OrganizationsController) Create ¶
func (ctrl *OrganizationsController) Create(c *gin.Context)
func (*OrganizationsController) Get ¶
func (ctrl *OrganizationsController) Get(c *gin.Context)
func (*OrganizationsController) List ¶
func (ctrl *OrganizationsController) List(c *gin.Context)
func (*OrganizationsController) SetContext ¶
func (ctrl *OrganizationsController) SetContext(c *gin.Context)
type RegistryController ¶
type RegistryController struct { }
type RunsController ¶
type RunsController struct { Runs run.RunRepository Workspaces workspaces.WorkspacesRepository RunManager run_manager.RunManager FileManager file_manager.FileManager }
func NewRunsController ¶ added in v1.8.0
func NewRunsController( repo run.RunRepository, workspaceRepo workspaces.WorkspacesRepository, runManager run_manager.RunManager, fileManager file_manager.FileManager, ) *RunsController
func (*RunsController) Create ¶
func (ctrl *RunsController) Create(c *gin.Context)
func (*RunsController) GeneratePresignedUrl ¶
func (ctrl *RunsController) GeneratePresignedUrl(c *gin.Context)
func (*RunsController) Get ¶
func (ctrl *RunsController) Get(c *gin.Context)
func (*RunsController) List ¶
func (ctrl *RunsController) List(c *gin.Context)
func (*RunsController) SaveLogs ¶
func (ctrl *RunsController) SaveLogs(c *gin.Context)
func (*RunsController) StorePlan ¶
func (ctrl *RunsController) StorePlan(c *gin.Context)
func (*RunsController) Update ¶
func (ctrl *RunsController) Update(c *gin.Context)
type VariableSetsController ¶ added in v1.4.0
type VariableSetsController struct {
Repository variables.SetRepository
}
func NewVariableSetsController ¶ added in v1.8.0
func NewVariableSetsController(repo variables.SetRepository) *VariableSetsController
func (*VariableSetsController) Create ¶ added in v1.4.0
func (ctrl *VariableSetsController) Create(c *gin.Context)
func (*VariableSetsController) Delete ¶ added in v1.4.0
func (ctrl *VariableSetsController) Delete(c *gin.Context)
func (*VariableSetsController) Get ¶ added in v1.4.0
func (ctrl *VariableSetsController) Get(c *gin.Context)
func (*VariableSetsController) List ¶ added in v1.4.0
func (ctrl *VariableSetsController) List(c *gin.Context)
func (*VariableSetsController) Update ¶ added in v1.4.0
func (ctrl *VariableSetsController) Update(c *gin.Context)
type VariablesController ¶ added in v1.4.0
type VariablesController struct {
Repository variables.Repository
}
func NewVariablesController ¶ added in v1.8.0
func NewVariablesController(repo variables.Repository) *VariablesController
func (*VariablesController) Create ¶ added in v1.4.0
func (ctrl *VariablesController) Create(c *gin.Context)
func (*VariablesController) Delete ¶ added in v1.4.0
func (ctrl *VariablesController) Delete(c *gin.Context)
func (*VariablesController) Get ¶ added in v1.4.0
func (ctrl *VariablesController) Get(c *gin.Context)
func (*VariablesController) List ¶ added in v1.4.0
func (ctrl *VariablesController) List(c *gin.Context)
func (*VariablesController) Update ¶ added in v1.4.0
func (ctrl *VariablesController) Update(c *gin.Context)
type VcsConnectionCreateInput ¶ added in v1.2.1
type VcsConnectionsController ¶ added in v1.2.1
type VcsConnectionsController struct {
Repository vcs_connection.Repository
}
func NewVcsConnectionsController ¶ added in v1.8.0
func NewVcsConnectionsController( repo vcs_connection.Repository, ) *VcsConnectionsController
func (*VcsConnectionsController) Create ¶ added in v1.2.1
func (ctrl *VcsConnectionsController) Create(c *gin.Context)
func (*VcsConnectionsController) Credentials ¶ added in v1.3.0
func (ctrl *VcsConnectionsController) Credentials(c *gin.Context)
func (*VcsConnectionsController) Delete ¶ added in v1.2.1
func (ctrl *VcsConnectionsController) Delete(c *gin.Context)
func (*VcsConnectionsController) Get ¶ added in v1.2.1
func (ctrl *VcsConnectionsController) Get(c *gin.Context)
func (*VcsConnectionsController) List ¶ added in v1.2.1
func (ctrl *VcsConnectionsController) List(c *gin.Context)
type WorkspacesController ¶
type WorkspacesController struct { Repository workspaces.WorkspacesRepository FileManager file_manager.FileManager }
func NewWorkspacesController ¶ added in v1.8.0
func NewWorkspacesController(repo workspaces.WorkspacesRepository, fileManager file_manager.FileManager) *WorkspacesController
func (*WorkspacesController) CreateWorkspace ¶
func (ctrl *WorkspacesController) CreateWorkspace(c *gin.Context)
func (*WorkspacesController) DeleteWorkspace ¶
func (ctrl *WorkspacesController) DeleteWorkspace(c *gin.Context)
func (*WorkspacesController) GetState ¶
func (ctrl *WorkspacesController) GetState(c *gin.Context)
func (*WorkspacesController) GetWorkspace ¶
func (ctrl *WorkspacesController) GetWorkspace(c *gin.Context)
func (*WorkspacesController) ListVariables ¶ added in v1.3.0
func (ctrl *WorkspacesController) ListVariables(c *gin.Context)
func (*WorkspacesController) ListWorkspaces ¶
func (ctrl *WorkspacesController) ListWorkspaces(c *gin.Context)
func (*WorkspacesController) LockWorkspace ¶
func (ctrl *WorkspacesController) LockWorkspace(c *gin.Context)
func (*WorkspacesController) UnlockWorkspace ¶
func (ctrl *WorkspacesController) UnlockWorkspace(c *gin.Context)
func (*WorkspacesController) UpdateWorkspace ¶
func (ctrl *WorkspacesController) UpdateWorkspace(c *gin.Context)
func (*WorkspacesController) UploadState ¶
func (ctrl *WorkspacesController) UploadState(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.