Documentation
¶
Index ¶
- func BlockTilQueueHasRunningItem(c *gin.Context)
- func CancelPipeline(ctx context.Context, input *CancelPipelineInput) (*struct{}, error)
- func CancelWorkflow(ctx context.Context, input *CancelWorkflowInput) (*struct{}, error)
- func DeleteAccessToken(ctx context.Context, input *DeleteAccessTokenInput) (*struct{}, error)
- func DeleteAccessTokenBatch(ctx context.Context, input *DeleteAccessTokenBatchInput) (*struct{}, error)
- func DeleteAgent(ctx context.Context, input *DeleteAgentInput) (*struct{}, error)
- func DeleteApprovalAlways(ctx context.Context, input *DeleteApprovalAlwaysInput) (*struct{}, error)
- func DeleteAutoscaler(ctx context.Context, input *DeleteAutoscalerInput) (*struct{}, error)
- func DeleteCron(ctx context.Context, input *DeleteCronInput) (*struct{}, error)
- func DeleteForge(ctx context.Context, input *DeleteForgeInput) (*struct{}, error)
- func DeleteGlobalRegistry(ctx context.Context, input *DeleteGlobalRegistryInput) (*struct{}, error)
- func DeleteGlobalSecret(ctx context.Context, input *DeleteGlobalSecretInput) (*struct{}, error)
- func DeleteIntegration(ctx context.Context, input *DeleteIntegrationInput) (*struct{}, error)
- func DeleteOrg(ctx context.Context, input *DeleteOrgInput) (*struct{}, error)
- func DeleteOrgAgent(ctx context.Context, input *DeleteOrgAgentInput) (*struct{}, error)
- func DeleteOrgRegistry(ctx context.Context, input *DeleteOrgRegistryInput) (*struct{}, error)
- func DeleteOrgSecret(ctx context.Context, input *DeleteOrgSecretInput) (*struct{}, error)
- func DeletePipeline(ctx context.Context, input *DeletePipelineInput) (*struct{}, error)
- func DeletePipelineLogs(ctx context.Context, input *DeletePipelineLogsInput) (*struct{}, error)
- func DeleteRegistry(ctx context.Context, input *DeleteRegistryInput) (*struct{}, error)
- func DeleteSecret(ctx context.Context, input *DeleteSecretInput) (*struct{}, error)
- func DeleteStepLogs(ctx context.Context, input *DeleteStepLogsInput) (*struct{}, error)
- func DeleteUser(ctx context.Context, input *DeleteUserInput) (*struct{}, error)
- func EventStreamSSE(c *gin.Context)
- func GetBadge(ctx context.Context, input *GetBadgeInput) (*struct{}, error)
- func GetBadgeByName(ctx context.Context, input *GetBadgeByNameInput) (*struct{}, error)
- func GetCC(ctx context.Context, input *GetCCInput) (*struct{}, error)
- func GetCCByName(ctx context.Context, input *GetCCByNameInput) (*struct{}, error)
- func GetHealth(c *gin.Context)
- func GetHealthLive(c *gin.Context)
- func GetHealthReady(c *gin.Context)
- func GetLogout(c *gin.Context)
- func GetQueueInfo(c *gin.Context)
- func GetSignaturePublicKey(ctx context.Context, _ *GetSignaturePublicKeyInput) (*struct{}, error)
- func GetUnsubscribe(ctx context.Context, input *GetUnsubscribeInput) (*struct{}, error)
- func GinContextKey() any
- func HandleAuth(c *gin.Context)
- func LogLevel(c *gin.Context)
- func LogStreamSSE(c *gin.Context)
- func LookupOrgGin(c *gin.Context)
- func LookupRepoGin(c *gin.Context)
- func MoveRepo(ctx context.Context, input *MoveRepoInput) (*struct{}, error)
- func PauseQueue(c *gin.Context)
- func PostHook(c *gin.Context)
- func RepairAllRepos(ctx context.Context, input *RepairAllReposInput) (*struct{}, error)
- func RepairRepo(ctx context.Context, input *RepairRepoInput) (*struct{}, error)
- func ResumeQueue(c *gin.Context)
- func SetLogLevel(c *gin.Context)
- func Version(c *gin.Context)
- type AccessTokenFields
- type AccessTokenResponse
- type AvailableForgeResponse
- type CancelPipelineInput
- type CancelWorkflowInput
- type ChownRepoInput
- type ChownRepoOutput
- type CreateAccessTokenRequest
- type CreatePipelineBody
- type CreatePipelineInput
- type CreatePipelineOutput
- type DeleteAccessTokenBatchInput
- type DeleteAccessTokenBatchRequest
- type DeleteAccessTokenInput
- type DeleteAgentInput
- type DeleteApprovalAlwaysInput
- type DeleteAutoscalerInput
- type DeleteCronInput
- type DeleteForgeInput
- type DeleteGlobalRegistryInput
- type DeleteGlobalSecretInput
- type DeleteIntegrationInput
- type DeleteOrgAgentInput
- type DeleteOrgInput
- type DeleteOrgRegistryInput
- type DeleteOrgSecretInput
- type DeletePipelineInput
- type DeletePipelineLogsInput
- type DeleteRegistryInput
- type DeleteRepoInput
- type DeleteRepoNotificationConfigInput
- type DeleteRepoNotificationConfigOutput
- type DeleteRepoOutput
- type DeleteSecretInput
- type DeleteStepLogsInput
- type DeleteTokenInput
- type DeleteTokenOutput
- type DeleteUserForgeInput
- type DeleteUserForgeOutput
- type DeleteUserInput
- type ForgeBody
- type GetAccessTokenInput
- type GetAccessTokenListInput
- type GetAccessTokenListOutput
- type GetAccessTokenOutput
- type GetAccessibleIntegrationsInput
- type GetAccessibleIntegrationsOutput
- type GetAdminSMTPStatusInput
- type GetAdminSMTPStatusOutput
- type GetAgentInput
- type GetAgentOutput
- type GetAgentTasksInput
- type GetAgentTasksOutput
- type GetAgentsInput
- type GetAgentsOutput
- type GetAllReposInput
- type GetAllReposOutput
- type GetAutoscalerInput
- type GetAutoscalerOutput
- type GetAutoscalerSelfInput
- type GetAutoscalerSelfOutput
- type GetAutoscalersInput
- type GetAutoscalersOutput
- type GetAvailableForgesInput
- type GetAvailableForgesOutput
- type GetAvailableScopesInput
- type GetAvailableScopesOutput
- type GetBadgeByNameInput
- type GetBadgeInput
- type GetCCByNameInput
- type GetCCInput
- type GetCronInput
- type GetCronListInput
- type GetCronListOutput
- type GetCronOutput
- type GetEntitiesInput
- type GetEntitiesOutput
- type GetFeedInput
- type GetFeedOutput
- type GetForgeInput
- type GetForgeOutput
- type GetForgesInput
- type GetForgesOutput
- type GetGlobalRegistryInput
- type GetGlobalRegistryListInput
- type GetGlobalRegistryListOutput
- type GetGlobalRegistryOutput
- type GetGlobalSecretAbbreviatedInput
- type GetGlobalSecretAbbreviatedOutput
- type GetGlobalSecretInput
- type GetGlobalSecretListInput
- type GetGlobalSecretListOutput
- type GetGlobalSecretOutput
- type GetImportableReposInput
- type GetImportableReposOutput
- type GetIntegrationInput
- type GetIntegrationListInput
- type GetIntegrationListOutput
- type GetIntegrationOutput
- type GetIntegrationTypesInput
- type GetIntegrationTypesOutput
- type GetMaintenanceConfigByActionInput
- type GetMaintenanceConfigByActionOutput
- type GetMaintenanceConfigInput
- type GetMaintenanceConfigOutput
- type GetMaintenanceLogsInput
- type GetMaintenanceLogsOutput
- type GetMaintenanceStatsInput
- type GetMaintenanceStatsOutput
- type GetMetricsInput
- type GetMetricsOutput
- type GetOrgAgentsInput
- type GetOrgInput
- type GetOrgOutput
- type GetOrgPermissionsInput
- type GetOrgPermissionsOutput
- type GetOrgRegistryInput
- type GetOrgRegistryListInput
- type GetOrgRegistryListOutput
- type GetOrgRegistryOutput
- type GetOrgSecretAbbreviatedInput
- type GetOrgSecretAbbreviatedOutput
- type GetOrgSecretInput
- type GetOrgSecretListInput
- type GetOrgSecretListOutput
- type GetOrgSecretOutput
- type GetOrgsInput
- type GetOrgsOutput
- type GetPipelineConfigInput
- type GetPipelineConfigOutput
- type GetPipelineInput
- type GetPipelineMetadataInput
- type GetPipelineMetadataOutput
- type GetPipelineOutput
- type GetPipelineQueueInput
- type GetPipelineQueueOutput
- type GetPipelinesInput
- type GetPipelinesOutput
- type GetPublicReposInput
- type GetPublicReposOutput
- type GetRegistryInput
- type GetRegistryListInput
- type GetRegistryListOutput
- type GetRegistryOutput
- type GetRepoBranchesInput
- type GetRepoBranchesOutput
- type GetRepoConfigsInput
- type GetRepoConfigsOutput
- type GetRepoForImportInput
- type GetRepoForImportOutput
- type GetRepoInput
- type GetRepoNotificationConfigInput
- type GetRepoNotificationConfigOutput
- type GetRepoOutput
- type GetRepoPermissionsInput
- type GetRepoPermissionsOutput
- type GetRepoPullRequestsInput
- type GetRepoPullRequestsOutput
- type GetReposInput
- type GetReposOutput
- type GetSecretAbbreviatedInput
- type GetSecretAbbreviatedOutput
- type GetSecretInput
- type GetSecretListInput
- type GetSecretListOutput
- type GetSecretOutput
- type GetSelfInput
- type GetSelfOutput
- type GetSignaturePublicKeyInput
- type GetStepLogsInput
- type GetStepLogsOutput
- type GetTimezonesInput
- type GetTimezonesOutput
- type GetUnsubscribeInput
- type GetUserCronListInput
- type GetUserCronListOutput
- type GetUserForgeAffectedReposInput
- type GetUserForgeAffectedReposOutput
- type GetUserForgeInput
- type GetUserForgeOutput
- type GetUserForgesInput
- type GetUserForgesOutput
- type GetUserInput
- type GetUserOrgListInput
- type GetUserOrgListOutput
- type GetUserOutput
- type GetUserRegistryListInput
- type GetUserRegistryListOutput
- type GetUserSecretListInput
- type GetUserSecretListOutput
- type GetUsersInput
- type GetUsersOutput
- type HealthStatus
- type HeartbeatBody
- type HeartbeatResponse
- type ImportPreviewResponse
- type ImportSettingsInput
- type ImportSettingsOutput
- type ImportSettingsRequest
- type ImportSettingsResponse
- type IntegrationTypeInfo
- type LookupOrgInput
- type LookupOrgOutput
- type LookupRepoInput
- type LookupRepoOutput
- type ManualWorkflow
- type ManualWorkflowsResponse
- type MoveRepoInput
- type PaginationParams
- type PatchAccessTokenInput
- type PatchAccessTokenOutput
- type PatchAgentBody
- type PatchAgentInput
- type PatchAgentOutput
- type PatchAutoscalerBody
- type PatchAutoscalerInput
- type PatchAutoscalerOutput
- type PatchCronBody
- type PatchCronInput
- type PatchCronOutput
- type PatchForgeInput
- type PatchForgeOutput
- type PatchGlobalRegistryInput
- type PatchGlobalRegistryOutput
- type PatchGlobalSecretInput
- type PatchGlobalSecretOutput
- type PatchIntegrationBody
- type PatchIntegrationInput
- type PatchIntegrationOutput
- type PatchOrgAgentInput
- type PatchOrgRegistryInput
- type PatchOrgRegistryOutput
- type PatchOrgSecretInput
- type PatchOrgSecretOutput
- type PatchRegistryBody
- type PatchRegistryInput
- type PatchRegistryOutput
- type PatchRepoInput
- type PatchRepoOutput
- type PatchSecretBody
- type PatchSecretInput
- type PatchSecretOutput
- type PatchUserBody
- type PatchUserInput
- type PatchUserOutput
- type PostAccessTokenInput
- type PostAccessTokenOutput
- type PostAdminTestSMTPInput
- type PostAdminTestSMTPOutput
- type PostAgentBody
- type PostAgentInput
- type PostAgentOutput
- type PostApprovalAlwaysInput
- type PostApprovalAlwaysOutput
- type PostApprovalInput
- type PostApprovalOutput
- type PostAutoscalerBody
- type PostAutoscalerHeartbeatInput
- type PostAutoscalerHeartbeatOutput
- type PostAutoscalerInput
- type PostAutoscalerOutput
- type PostAutoscalerTokenInput
- type PostAutoscalerTokenOutput
- type PostCronBody
- type PostCronInput
- type PostCronOutput
- type PostDeclineInput
- type PostDeclineOutput
- type PostForgeInput
- type PostForgeOutput
- type PostGlobalRegistryInput
- type PostGlobalRegistryOutput
- type PostGlobalSecretInput
- type PostGlobalSecretOutput
- type PostIntegrationBody
- type PostIntegrationInput
- type PostIntegrationOutput
- type PostOrgAgentInput
- type PostOrgRegistryInput
- type PostOrgRegistryOutput
- type PostOrgSecretInput
- type PostOrgSecretOutput
- type PostPipelineInput
- type PostPipelineOutput
- type PostRegistryBody
- type PostRegistryInput
- type PostRegistryOutput
- type PostRepoInput
- type PostRepoOutput
- type PostSecretBody
- type PostSecretInput
- type PostSecretOutput
- type PostTokenInput
- type PostTokenOutput
- type PostUserBody
- type PostUserInput
- type PostUserOutput
- type PutNotificationConfigBody
- type PutRepoNotificationConfigInput
- type PutRepoNotificationConfigOutput
- type RepairAllReposInput
- type RepairRepoInput
- type RepoFields
- type RepoResponse
- type RerunWorkflowInput
- type RerunWorkflowOutput
- type RunCronInput
- type RunCronOutput
- type RunMaintenanceNowInput
- type RunMaintenanceNowOutput
- type RunMaintenanceRequest
- type RunMaintenanceResponse
- type SecretViewAuthorizer
- type TestIntegrationInput
- type TestIntegrationOutput
- type TestIntegrationResponse
- type TokenResponse
- type UnlinkForgeResponse
- type UpdateAccessTokenRequest
- type UpdateMaintenanceConfigBody
- type UpdateMaintenanceConfigByActionInput
- type UpdateMaintenanceConfigByActionOutput
- type UpdateMaintenanceConfigInput
- type UpdateMaintenanceConfigOutput
- type UserForgeResponse
- type UserForgeStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockTilQueueHasRunningItem ¶
BlockTilQueueHasRunningItem blocks until the pipeline queue has no running items.
func CancelPipeline ¶
func CancelPipeline(ctx context.Context, input *CancelPipelineInput) (*struct{}, error)
func CancelWorkflow ¶
func CancelWorkflow(ctx context.Context, input *CancelWorkflowInput) (*struct{}, error)
func DeleteAccessToken ¶
func DeleteAccessToken(ctx context.Context, input *DeleteAccessTokenInput) (*struct{}, error)
func DeleteAccessTokenBatch ¶
func DeleteAccessTokenBatch(ctx context.Context, input *DeleteAccessTokenBatchInput) (*struct{}, error)
func DeleteAgent ¶
func DeleteAgent(ctx context.Context, input *DeleteAgentInput) (*struct{}, error)
func DeleteApprovalAlways ¶ added in v5.5.0
func DeleteApprovalAlways(ctx context.Context, input *DeleteApprovalAlwaysInput) (*struct{}, error)
func DeleteAutoscaler ¶
func DeleteAutoscaler(ctx context.Context, input *DeleteAutoscalerInput) (*struct{}, error)
func DeleteCron ¶
func DeleteCron(ctx context.Context, input *DeleteCronInput) (*struct{}, error)
func DeleteForge ¶
func DeleteForge(ctx context.Context, input *DeleteForgeInput) (*struct{}, error)
func DeleteGlobalRegistry ¶
func DeleteGlobalRegistry(ctx context.Context, input *DeleteGlobalRegistryInput) (*struct{}, error)
func DeleteGlobalSecret ¶
func DeleteGlobalSecret(ctx context.Context, input *DeleteGlobalSecretInput) (*struct{}, error)
func DeleteIntegration ¶
func DeleteIntegration(ctx context.Context, input *DeleteIntegrationInput) (*struct{}, error)
func DeleteOrgAgent ¶
func DeleteOrgAgent(ctx context.Context, input *DeleteOrgAgentInput) (*struct{}, error)
func DeleteOrgRegistry ¶
func DeleteOrgRegistry(ctx context.Context, input *DeleteOrgRegistryInput) (*struct{}, error)
func DeleteOrgSecret ¶
func DeleteOrgSecret(ctx context.Context, input *DeleteOrgSecretInput) (*struct{}, error)
func DeletePipeline ¶
func DeletePipeline(ctx context.Context, input *DeletePipelineInput) (*struct{}, error)
func DeletePipelineLogs ¶
func DeletePipelineLogs(ctx context.Context, input *DeletePipelineLogsInput) (*struct{}, error)
func DeleteRegistry ¶
func DeleteRegistry(ctx context.Context, input *DeleteRegistryInput) (*struct{}, error)
func DeleteSecret ¶
func DeleteSecret(ctx context.Context, input *DeleteSecretInput) (*struct{}, error)
func DeleteStepLogs ¶
func DeleteStepLogs(ctx context.Context, input *DeleteStepLogsInput) (*struct{}, error)
func DeleteUser ¶
func DeleteUser(ctx context.Context, input *DeleteUserInput) (*struct{}, error)
func EventStreamSSE ¶
EventStreamSSE streams events like pipeline updates via Server-Sent Events.
func GetBadgeByName ¶ added in v5.6.0
func GetBadgeByName(ctx context.Context, input *GetBadgeByNameInput) (*struct{}, error)
func GetCCByName ¶ added in v5.6.0
func GetCCByName(ctx context.Context, input *GetCCByNameInput) (*struct{}, error)
func GetHealthLive ¶
GetHealthLive is a lightweight liveness probe (no dependencies checked).
func GetHealthReady ¶
GetHealthReady is a readiness probe that checks if the server is ready to serve traffic.
func GetQueueInfo ¶
GetQueueInfo returns pipeline queue information with agent details.
func GetSignaturePublicKey ¶
func GetSignaturePublicKey(ctx context.Context, _ *GetSignaturePublicKeyInput) (*struct{}, error)
func GetUnsubscribe ¶ added in v5.8.2
func GetUnsubscribe(ctx context.Context, input *GetUnsubscribeInput) (*struct{}, error)
func GinContextKey ¶ added in v5.6.0
func GinContextKey() any
GinContextKey returns the key used to store *gin.Context in context.Context. Used by the router middleware to inject the gin context.
func HandleAuth ¶
func LogStreamSSE ¶
LogStreamSSE streams logs of a pipeline step via Server-Sent Events.
func LookupOrgGin ¶ added in v5.6.0
LookupOrgGin is a gin handler wrapper for LookupOrg (needed because the route uses a wildcard path param that huma doesn't support).
func LookupRepoGin ¶ added in v5.6.0
LookupRepoGin is a gin handler wrapper for LookupRepo (needed because the route uses a wildcard path param that huma doesn't support).
func RepairAllRepos ¶
func RepairAllRepos(ctx context.Context, input *RepairAllReposInput) (*struct{}, error)
func RepairRepo ¶
func RepairRepo(ctx context.Context, input *RepairRepoInput) (*struct{}, error)
func SetLogLevel ¶
SetLogLevel sets the current log level (registered on the base route, not the API).
Types ¶
type AccessTokenFields ¶ added in v5.6.0
type AccessTokenFields model.AccessToken
AccessTokenFields is a method-free copy of model.AccessToken for clean huma schema generation.
type AccessTokenResponse ¶
type AccessTokenResponse struct {
AccessTokenFields
Token string `json:"token"` // Only populated on creation
}
AccessTokenResponse is returned when creating a token (includes the plain token once).
type AvailableForgeResponse ¶
type AvailableForgeResponse struct {
ID int64 `json:"id"`
URL string `json:"url"`
Type string `json:"type"`
IsLinked bool `json:"is_linked"`
IsPrimary bool `json:"is_primary,omitempty"`
LinkedAs string `json:"linked_as,omitempty"`
}
AvailableForgeResponse represents a forge that can potentially be linked.
type CancelPipelineInput ¶ added in v5.6.0
type CancelWorkflowInput ¶ added in v5.6.0
type ChownRepoInput ¶ added in v5.6.0
type ChownRepoInput struct {
RepoID int64 `path:"repo_id" doc:"the repository id"`
}
type ChownRepoOutput ¶ added in v5.6.0
func ChownRepo ¶
func ChownRepo(ctx context.Context, input *ChownRepoInput) (*ChownRepoOutput, error)
type CreateAccessTokenRequest ¶
type CreateAccessTokenRequest struct {
Name string `json:"name" minLength:"1" doc:"token name"`
Scopes []string `json:"scopes" minItems:"1" doc:"token scopes"`
OrgID int64 `json:"org_id,omitempty" doc:"optional org scope"`
RepoID int64 `json:"repo_id,omitempty" doc:"optional repo scope"`
ExpiresAt int64 `json:"expires_at,omitempty" doc:"optional expiry timestamp"`
}
CreateAccessTokenRequest is the request body for creating an access token.
type CreatePipelineBody ¶ added in v5.6.0
type CreatePipelineInput ¶ added in v5.6.0
type CreatePipelineInput struct {
RepoID int64 `path:"repo_id" doc:"the repository id"`
Body CreatePipelineBody
}
type CreatePipelineOutput ¶ added in v5.6.0
func CreatePipeline ¶
func CreatePipeline(ctx context.Context, input *CreatePipelineInput) (*CreatePipelineOutput, error)
type DeleteAccessTokenBatchInput ¶ added in v5.6.0
type DeleteAccessTokenBatchInput struct {
Body DeleteAccessTokenBatchRequest
}
type DeleteAccessTokenBatchRequest ¶
type DeleteAccessTokenBatchRequest struct {
IDs []int64 `json:"ids" minItems:"1" doc:"token IDs to delete"`
}
DeleteAccessTokenBatchRequest is the request body for batch deleting access tokens.
type DeleteAccessTokenInput ¶ added in v5.6.0
type DeleteAccessTokenInput struct {
TokenID int64 `path:"token_id" doc:"the token's id"`
}
type DeleteAgentInput ¶ added in v5.6.0
type DeleteAgentInput struct {
AgentID int64 `path:"agent_id" doc:"the agent's id"`
}
type DeleteApprovalAlwaysInput ¶ added in v5.6.0
type DeleteAutoscalerInput ¶ added in v5.6.0
type DeleteAutoscalerInput struct {
AutoscalerID int64 `path:"autoscaler_id" doc:"the autoscaler's id"`
}
type DeleteCronInput ¶ added in v5.6.0
type DeleteForgeInput ¶ added in v5.6.0
type DeleteForgeInput struct {
ForgeID int64 `path:"forgeId" doc:"the forge's id"`
}
type DeleteGlobalRegistryInput ¶ added in v5.6.0
type DeleteGlobalRegistryInput struct {
Registry string `path:"registry" doc:"the registry's name"`
}
type DeleteGlobalSecretInput ¶ added in v5.6.0
type DeleteGlobalSecretInput struct {
Secret string `path:"secret" doc:"the secret's name"`
}
type DeleteIntegrationInput ¶ added in v5.6.0
type DeleteIntegrationInput struct {
IntegrationID int64 `path:"integration_id" doc:"the integration's id"`
}
type DeleteOrgAgentInput ¶ added in v5.6.0
type DeleteOrgInput ¶ added in v5.6.0
type DeleteOrgInput struct {
OrgID int64 `path:"org_id" doc:"the org's id"`
}
type DeleteOrgRegistryInput ¶ added in v5.6.0
type DeleteOrgSecretInput ¶ added in v5.6.0
type DeletePipelineInput ¶ added in v5.6.0
type DeletePipelineLogsInput ¶ added in v5.6.0
type DeleteRegistryInput ¶ added in v5.6.0
type DeleteRepoInput ¶ added in v5.6.0
type DeleteRepoNotificationConfigInput ¶ added in v5.6.0
type DeleteRepoNotificationConfigInput struct {
RepoID int64 `path:"repo_id" doc:"the repository id"`
}
type DeleteRepoNotificationConfigOutput ¶ added in v5.6.0
type DeleteRepoNotificationConfigOutput struct {
Body struct{}
}
func DeleteRepoNotificationConfig ¶ added in v5.6.0
func DeleteRepoNotificationConfig(ctx context.Context, _ *DeleteRepoNotificationConfigInput) (*DeleteRepoNotificationConfigOutput, error)
type DeleteRepoOutput ¶ added in v5.6.0
func DeleteRepo ¶
func DeleteRepo(ctx context.Context, input *DeleteRepoInput) (*DeleteRepoOutput, error)
type DeleteSecretInput ¶ added in v5.6.0
type DeleteStepLogsInput ¶ added in v5.6.0
type DeleteTokenInput ¶ added in v5.6.0
type DeleteTokenInput struct{}
type DeleteTokenOutput ¶ added in v5.6.0
type DeleteTokenOutput struct {
Body string
}
func DeleteToken ¶
func DeleteToken(ctx context.Context, _ *DeleteTokenInput) (*DeleteTokenOutput, error)
type DeleteUserForgeInput ¶ added in v5.6.0
type DeleteUserForgeInput struct {
ForgeID int64 `path:"forge_id" doc:"the forge's id"`
}
type DeleteUserForgeOutput ¶ added in v5.6.0
type DeleteUserForgeOutput struct {
Body UnlinkForgeResponse
}
func DeleteUserForge ¶
func DeleteUserForge(ctx context.Context, input *DeleteUserForgeInput) (*DeleteUserForgeOutput, error)
type DeleteUserInput ¶ added in v5.6.0
type DeleteUserInput struct {
Login string `path:"login" doc:"the user's login name"`
}
type ForgeBody ¶ added in v5.6.0
type ForgeBody struct {
URL string `json:"url" doc:"forge URL"`
Type model.ForgeType `json:"type" doc:"forge type"`
Client string `json:"client,omitempty" doc:"OAuth client ID"`
ClientSecret string `json:"client_secret,omitempty" doc:"OAuth client secret"`
OAuthHost string `json:"oauth_host,omitempty" doc:"OAuth host"`
SkipVerify bool `json:"skip_verify,omitempty" doc:"skip TLS verification"`
AdditionalOptions map[string]any `json:"additional_options,omitempty" doc:"additional forge options"`
}
type GetAccessTokenInput ¶ added in v5.6.0
type GetAccessTokenInput struct {
TokenID int64 `path:"token_id" doc:"the token's id"`
}
type GetAccessTokenListInput ¶ added in v5.6.0
type GetAccessTokenListInput struct {
PaginationParams
}
type GetAccessTokenListOutput ¶ added in v5.6.0
type GetAccessTokenListOutput struct {
Body []*model.AccessToken
}
func GetAccessTokenList ¶
func GetAccessTokenList(ctx context.Context, input *GetAccessTokenListInput) (*GetAccessTokenListOutput, error)
type GetAccessTokenOutput ¶ added in v5.6.0
type GetAccessTokenOutput struct {
Body *model.AccessToken
}
func GetAccessToken ¶
func GetAccessToken(ctx context.Context, input *GetAccessTokenInput) (*GetAccessTokenOutput, error)
type GetAccessibleIntegrationsInput ¶ added in v5.6.0
type GetAccessibleIntegrationsInput struct {
PaginationParams
}
type GetAccessibleIntegrationsOutput ¶ added in v5.6.0
type GetAccessibleIntegrationsOutput struct {
Body []*model.Integration
}
func GetAccessibleIntegrations ¶
func GetAccessibleIntegrations(ctx context.Context, input *GetAccessibleIntegrationsInput) (*GetAccessibleIntegrationsOutput, error)
type GetAdminSMTPStatusInput ¶ added in v5.6.0
type GetAdminSMTPStatusInput struct{}
type GetAdminSMTPStatusOutput ¶ added in v5.6.0
type GetAdminSMTPStatusOutput struct {
Body notification.SMTPStatus
}
func GetAdminSMTPStatus ¶ added in v5.6.0
func GetAdminSMTPStatus(ctx context.Context, _ *GetAdminSMTPStatusInput) (*GetAdminSMTPStatusOutput, error)
type GetAgentInput ¶ added in v5.6.0
type GetAgentInput struct {
AgentID int64 `path:"agent_id" doc:"the agent's id"`
}
type GetAgentOutput ¶ added in v5.6.0
func GetAgent ¶
func GetAgent(ctx context.Context, input *GetAgentInput) (*GetAgentOutput, error)
type GetAgentTasksInput ¶ added in v5.6.0
type GetAgentTasksInput struct {
AgentID int64 `path:"agent_id" doc:"the agent's id"`
}
type GetAgentTasksOutput ¶ added in v5.6.0
func GetAgentTasks ¶
func GetAgentTasks(ctx context.Context, input *GetAgentTasksInput) (*GetAgentTasksOutput, error)
type GetAgentsInput ¶ added in v5.6.0
type GetAgentsInput struct {
PaginationParams
Search string `query:"search" doc:"search in name, platform, backend, custom labels, ID"`
Platform string `query:"platform" doc:"filter by platform"`
Backend string `query:"backend" doc:"filter by backend"`
Sort string `query:"sort" default:"id" doc:"sort field: id, name, platform, backend, last_contact, capacity"`
Order string `query:"order" default:"asc" doc:"sort order: asc or desc"`
}
type GetAgentsOutput ¶ added in v5.6.0
type GetAgentsOutput struct {
Body []model.AgentWithStats
}
func GetAgents ¶
func GetAgents(ctx context.Context, input *GetAgentsInput) (*GetAgentsOutput, error)
func GetOrgAgents ¶
func GetOrgAgents(ctx context.Context, input *GetOrgAgentsInput) (*GetAgentsOutput, error)
type GetAllReposInput ¶ added in v5.6.0
type GetAllReposInput struct {
PaginationParams
Active bool `query:"active" doc:"only list active repos"`
}
type GetAllReposOutput ¶ added in v5.6.0
func GetAllRepos ¶
func GetAllRepos(ctx context.Context, input *GetAllReposInput) (*GetAllReposOutput, error)
type GetAutoscalerInput ¶ added in v5.6.0
type GetAutoscalerInput struct {
AutoscalerID int64 `path:"autoscaler_id" doc:"the autoscaler's id"`
}
type GetAutoscalerOutput ¶ added in v5.6.0
type GetAutoscalerOutput struct {
Body *model.Autoscaler
}
func GetAutoscaler ¶
func GetAutoscaler(ctx context.Context, input *GetAutoscalerInput) (*GetAutoscalerOutput, error)
type GetAutoscalerSelfInput ¶ added in v5.6.0
type GetAutoscalerSelfInput struct{}
type GetAutoscalerSelfOutput ¶ added in v5.6.0
type GetAutoscalerSelfOutput struct {
Body *model.Autoscaler
}
func GetAutoscalerSelf ¶
func GetAutoscalerSelf(ctx context.Context, _ *GetAutoscalerSelfInput) (*GetAutoscalerSelfOutput, error)
type GetAutoscalersInput ¶ added in v5.6.0
type GetAutoscalersInput struct {
PaginationParams
Search string `query:"search" doc:"search in name, provider, region, ID"`
Provider string `query:"provider" doc:"filter by provider"`
Enabled string `query:"enabled" doc:"filter by enabled status (true/false, empty=all)"`
Sort string `query:"sort" default:"id" doc:"sort field: id, name, provider, last_contact"`
Order string `query:"order" default:"asc" doc:"sort order: asc or desc"`
}
type GetAutoscalersOutput ¶ added in v5.6.0
type GetAutoscalersOutput struct {
Body []*model.Autoscaler
}
func GetAutoscalers ¶
func GetAutoscalers(ctx context.Context, input *GetAutoscalersInput) (*GetAutoscalersOutput, error)
type GetAvailableForgesInput ¶ added in v5.6.0
type GetAvailableForgesInput struct{}
type GetAvailableForgesOutput ¶ added in v5.6.0
type GetAvailableForgesOutput struct {
Body []*AvailableForgeResponse
}
func GetAvailableForges ¶
func GetAvailableForges(ctx context.Context, _ *GetAvailableForgesInput) (*GetAvailableForgesOutput, error)
type GetAvailableScopesInput ¶ added in v5.6.0
type GetAvailableScopesInput struct{}
type GetAvailableScopesOutput ¶ added in v5.6.0
type GetAvailableScopesOutput struct {
Body map[string][]model.AccessTokenScope
}
func GetAvailableScopes ¶
func GetAvailableScopes(ctx context.Context, _ *GetAvailableScopesInput) (*GetAvailableScopesOutput, error)
type GetBadgeByNameInput ¶ added in v5.6.0
type GetBadgeInput ¶ added in v5.6.0
type GetCCByNameInput ¶ added in v5.6.0
type GetCCInput ¶ added in v5.6.0
type GetCCInput struct {
RepoID string `path:"repo_id_or_owner" doc:"the repository id"`
}
type GetCronInput ¶ added in v5.6.0
type GetCronListInput ¶ added in v5.6.0
type GetCronListInput struct {
PaginationParams
RepoID int64 `path:"repo_id" doc:"the repository id"`
}
type GetCronListOutput ¶ added in v5.6.0
func GetCronList ¶
func GetCronList(ctx context.Context, input *GetCronListInput) (*GetCronListOutput, error)
type GetCronOutput ¶ added in v5.6.0
func GetCron ¶
func GetCron(ctx context.Context, input *GetCronInput) (*GetCronOutput, error)
type GetEntitiesInput ¶ added in v5.6.0
type GetEntitiesInput struct {
Page int `query:"page" default:"1" minimum:"1" doc:"for response pagination, page offset number"`
PerPage int `query:"perPage" default:"15" minimum:"1" maximum:"50" doc:"for response pagination, max items per page"`
EntityType string `query:"entity_type" doc:"filter by entity type (user, org, or comma-separated)"`
IsAdmin string `query:"is_admin" doc:"filter by admin status (true, false, or empty for all)"`
Search string `query:"search" doc:"search term for name/login/email"`
}
type GetEntitiesOutput ¶ added in v5.6.0
func GetEntities ¶
func GetEntities(ctx context.Context, input *GetEntitiesInput) (*GetEntitiesOutput, error)
type GetFeedInput ¶ added in v5.6.0
type GetFeedInput struct {
Latest bool `query:"latest" doc:"return only the latest pipeline per repo"`
}
type GetFeedOutput ¶ added in v5.6.0
type GetFeedOutput struct {
Body any
}
func GetFeed ¶
func GetFeed(ctx context.Context, input *GetFeedInput) (*GetFeedOutput, error)
type GetForgeInput ¶ added in v5.6.0
type GetForgeInput struct {
ForgeID int64 `path:"forgeId" doc:"the forge's id"`
}
type GetForgeOutput ¶ added in v5.6.0
func GetForge ¶
func GetForge(ctx context.Context, input *GetForgeInput) (*GetForgeOutput, error)
type GetForgesInput ¶ added in v5.6.0
type GetForgesInput struct {
PaginationParams
}
type GetForgesOutput ¶ added in v5.6.0
func GetForges ¶
func GetForges(ctx context.Context, input *GetForgesInput) (*GetForgesOutput, error)
type GetGlobalRegistryInput ¶ added in v5.6.0
type GetGlobalRegistryInput struct {
Registry string `path:"registry" doc:"the registry's name"`
}
type GetGlobalRegistryListInput ¶ added in v5.6.0
type GetGlobalRegistryListInput struct {
PaginationParams
}
type GetGlobalRegistryListOutput ¶ added in v5.6.0
func GetGlobalRegistryList ¶
func GetGlobalRegistryList(ctx context.Context, input *GetGlobalRegistryListInput) (*GetGlobalRegistryListOutput, error)
type GetGlobalRegistryOutput ¶ added in v5.6.0
func GetGlobalRegistry ¶
func GetGlobalRegistry(ctx context.Context, input *GetGlobalRegistryInput) (*GetGlobalRegistryOutput, error)
type GetGlobalSecretAbbreviatedInput ¶ added in v5.6.0
type GetGlobalSecretAbbreviatedInput struct {
Secret string `path:"secret" doc:"the secret's name"`
}
type GetGlobalSecretAbbreviatedOutput ¶ added in v5.6.0
func GetGlobalSecretAbbreviated ¶
func GetGlobalSecretAbbreviated(ctx context.Context, input *GetGlobalSecretAbbreviatedInput) (*GetGlobalSecretAbbreviatedOutput, error)
type GetGlobalSecretInput ¶ added in v5.6.0
type GetGlobalSecretInput struct {
Secret string `path:"secret" doc:"the secret's name"`
}
type GetGlobalSecretListInput ¶ added in v5.6.0
type GetGlobalSecretListInput struct {
PaginationParams
}
type GetGlobalSecretListOutput ¶ added in v5.6.0
func GetGlobalSecretList ¶
func GetGlobalSecretList(ctx context.Context, input *GetGlobalSecretListInput) (*GetGlobalSecretListOutput, error)
type GetGlobalSecretOutput ¶ added in v5.6.0
func GetGlobalSecret ¶
func GetGlobalSecret(ctx context.Context, input *GetGlobalSecretInput) (*GetGlobalSecretOutput, error)
type GetImportableReposInput ¶ added in v5.6.0
type GetImportableReposInput struct {
RepoID int64 `path:"repo_id" doc:"the target repository id"`
}
type GetImportableReposOutput ¶ added in v5.6.0
func GetImportableRepos ¶
func GetImportableRepos(ctx context.Context, input *GetImportableReposInput) (*GetImportableReposOutput, error)
type GetIntegrationInput ¶ added in v5.6.0
type GetIntegrationInput struct {
IntegrationID int64 `path:"integration_id" doc:"the integration's id"`
}
type GetIntegrationListInput ¶ added in v5.6.0
type GetIntegrationListInput struct {
PaginationParams
}
type GetIntegrationListOutput ¶ added in v5.6.0
type GetIntegrationListOutput struct {
Body []*model.Integration
}
func GetIntegrationList ¶
func GetIntegrationList(ctx context.Context, input *GetIntegrationListInput) (*GetIntegrationListOutput, error)
type GetIntegrationOutput ¶ added in v5.6.0
type GetIntegrationOutput struct {
Body *model.Integration
}
func GetIntegration ¶
func GetIntegration(ctx context.Context, input *GetIntegrationInput) (*GetIntegrationOutput, error)
type GetIntegrationTypesInput ¶ added in v5.6.0
type GetIntegrationTypesInput struct{}
type GetIntegrationTypesOutput ¶ added in v5.6.0
type GetIntegrationTypesOutput struct {
Body []IntegrationTypeInfo
}
func GetIntegrationTypes ¶
func GetIntegrationTypes(ctx context.Context, _ *GetIntegrationTypesInput) (*GetIntegrationTypesOutput, error)
type GetMaintenanceConfigByActionInput ¶ added in v5.6.0
type GetMaintenanceConfigByActionInput struct {
Action string `path:"action" doc:"Action type (vacuum, kubernetes_cleanup, stale_agent_cleanup, docker_cleanup)"`
}
type GetMaintenanceConfigByActionOutput ¶ added in v5.6.0
type GetMaintenanceConfigByActionOutput struct {
Body *model.MaintenanceConfig
}
func GetMaintenanceConfigByAction ¶
func GetMaintenanceConfigByAction(ctx context.Context, input *GetMaintenanceConfigByActionInput) (*GetMaintenanceConfigByActionOutput, error)
type GetMaintenanceConfigInput ¶ added in v5.6.0
type GetMaintenanceConfigInput struct{}
type GetMaintenanceConfigOutput ¶ added in v5.6.0
type GetMaintenanceConfigOutput struct {
Body *model.MaintenanceConfig
}
func GetMaintenanceConfig ¶
func GetMaintenanceConfig(ctx context.Context, _ *GetMaintenanceConfigInput) (*GetMaintenanceConfigOutput, error)
type GetMaintenanceLogsInput ¶ added in v5.6.0
type GetMaintenanceLogsInput struct {
Limit int `query:"limit" default:"50" doc:"Number of logs to return"`
}
type GetMaintenanceLogsOutput ¶ added in v5.6.0
type GetMaintenanceLogsOutput struct {
Body []*model.MaintenanceLog
}
func GetMaintenanceLogs ¶
func GetMaintenanceLogs(ctx context.Context, input *GetMaintenanceLogsInput) (*GetMaintenanceLogsOutput, error)
type GetMaintenanceStatsInput ¶ added in v5.6.0
type GetMaintenanceStatsInput struct{}
type GetMaintenanceStatsOutput ¶ added in v5.6.0
type GetMaintenanceStatsOutput struct {
Body *model.MaintenanceStats
}
func GetMaintenanceStats ¶
func GetMaintenanceStats(ctx context.Context, _ *GetMaintenanceStatsInput) (*GetMaintenanceStatsOutput, error)
type GetMetricsInput ¶ added in v5.6.0
type GetMetricsInput struct {
After int64 `query:"after" doc:"Unix timestamp - filter metrics after this time"`
Before int64 `query:"before" doc:"Unix timestamp - filter metrics before this time"`
All bool `query:"all" doc:"Show all instance metrics (admin only)"`
Repos string `query:"repos" doc:"Comma-separated list of repo IDs to filter by"`
}
type GetMetricsOutput ¶ added in v5.6.0
func GetMetrics ¶
func GetMetrics(ctx context.Context, input *GetMetricsInput) (*GetMetricsOutput, error)
type GetOrgAgentsInput ¶ added in v5.6.0
type GetOrgAgentsInput struct {
PaginationParams
OrgID int64 `path:"org_id" doc:"the organization's id"`
}
type GetOrgInput ¶ added in v5.6.0
type GetOrgInput struct {
OrgID int64 `path:"org_id" doc:"the organization's id"`
}
type GetOrgOutput ¶ added in v5.6.0
func GetOrg ¶
func GetOrg(ctx context.Context, input *GetOrgInput) (*GetOrgOutput, error)
type GetOrgPermissionsInput ¶ added in v5.6.0
type GetOrgPermissionsInput struct {
OrgID int64 `path:"org_id" doc:"the organization's id"`
}
type GetOrgPermissionsOutput ¶ added in v5.6.0
func GetOrgPermissions ¶
func GetOrgPermissions(ctx context.Context, input *GetOrgPermissionsInput) (*GetOrgPermissionsOutput, error)
type GetOrgRegistryInput ¶ added in v5.6.0
type GetOrgRegistryListInput ¶ added in v5.6.0
type GetOrgRegistryListInput struct {
PaginationParams
OrgID int64 `path:"org_id" doc:"the org's id"`
}
type GetOrgRegistryListOutput ¶ added in v5.6.0
func GetOrgRegistryList ¶
func GetOrgRegistryList(ctx context.Context, input *GetOrgRegistryListInput) (*GetOrgRegistryListOutput, error)
type GetOrgRegistryOutput ¶ added in v5.6.0
func GetOrgRegistry ¶
func GetOrgRegistry(ctx context.Context, input *GetOrgRegistryInput) (*GetOrgRegistryOutput, error)
type GetOrgSecretAbbreviatedInput ¶ added in v5.6.0
type GetOrgSecretAbbreviatedOutput ¶ added in v5.6.0
func GetOrgSecretAbbreviated ¶
func GetOrgSecretAbbreviated(ctx context.Context, input *GetOrgSecretAbbreviatedInput) (*GetOrgSecretAbbreviatedOutput, error)
type GetOrgSecretInput ¶ added in v5.6.0
type GetOrgSecretListInput ¶ added in v5.6.0
type GetOrgSecretListInput struct {
PaginationParams
OrgID int64 `path:"org_id" doc:"the org's id"`
}
type GetOrgSecretListOutput ¶ added in v5.6.0
func GetOrgSecretList ¶
func GetOrgSecretList(ctx context.Context, input *GetOrgSecretListInput) (*GetOrgSecretListOutput, error)
type GetOrgSecretOutput ¶ added in v5.6.0
func GetOrgSecret ¶
func GetOrgSecret(ctx context.Context, input *GetOrgSecretInput) (*GetOrgSecretOutput, error)
type GetOrgsInput ¶ added in v5.6.0
type GetOrgsInput struct {
PaginationParams
}
type GetOrgsOutput ¶ added in v5.6.0
func GetOrgs ¶
func GetOrgs(ctx context.Context, input *GetOrgsInput) (*GetOrgsOutput, error)
type GetPipelineConfigInput ¶ added in v5.6.0
type GetPipelineConfigOutput ¶ added in v5.6.0
func GetPipelineConfig ¶
func GetPipelineConfig(ctx context.Context, input *GetPipelineConfigInput) (*GetPipelineConfigOutput, error)
type GetPipelineInput ¶ added in v5.6.0
type GetPipelineMetadataInput ¶ added in v5.6.0
type GetPipelineMetadataOutput ¶ added in v5.6.0
func GetPipelineMetadata ¶
func GetPipelineMetadata(ctx context.Context, input *GetPipelineMetadataInput) (*GetPipelineMetadataOutput, error)
type GetPipelineOutput ¶ added in v5.6.0
func GetPipeline ¶
func GetPipeline(ctx context.Context, input *GetPipelineInput) (*GetPipelineOutput, error)
type GetPipelineQueueInput ¶ added in v5.6.0
type GetPipelineQueueInput struct{}
type GetPipelineQueueOutput ¶ added in v5.6.0
func GetPipelineQueue ¶
func GetPipelineQueue(ctx context.Context, _ *GetPipelineQueueInput) (*GetPipelineQueueOutput, error)
type GetPipelinesInput ¶ added in v5.6.0
type GetPipelinesInput struct {
PaginationParams
RepoID int64 `path:"repo_id" doc:"the repository id"`
Before string `query:"before" doc:"only return pipelines before this RFC3339 date"`
After string `query:"after" doc:"only return pipelines after this RFC3339 date"`
Branch string `query:"branch" doc:"filter pipelines by branch"`
Event string `query:"event" doc:"filter pipelines by webhook events (comma separated)"`
Ref string `query:"ref" doc:"filter pipelines by strings contained in ref"`
Status string `query:"status" doc:"filter pipelines by status"`
Search string `query:"search" doc:"search pipelines by number, message, branch, or author"`
}
type GetPipelinesOutput ¶ added in v5.6.0
func GetPipelines ¶
func GetPipelines(ctx context.Context, input *GetPipelinesInput) (*GetPipelinesOutput, error)
type GetPublicReposInput ¶ added in v5.6.0
type GetPublicReposInput struct {
PaginationParams
}
type GetPublicReposOutput ¶ added in v5.6.0
type GetPublicReposOutput struct {
Body []*model.RepoLastPipeline
}
func GetPublicRepos ¶
func GetPublicRepos(ctx context.Context, input *GetPublicReposInput) (*GetPublicReposOutput, error)
type GetRegistryInput ¶ added in v5.6.0
type GetRegistryListInput ¶ added in v5.6.0
type GetRegistryListInput struct {
PaginationParams
RepoID int64 `path:"repo_id" doc:"the repository id"`
}
type GetRegistryListOutput ¶ added in v5.6.0
func GetRegistryList ¶
func GetRegistryList(ctx context.Context, input *GetRegistryListInput) (*GetRegistryListOutput, error)
type GetRegistryOutput ¶ added in v5.6.0
func GetRegistry ¶
func GetRegistry(ctx context.Context, input *GetRegistryInput) (*GetRegistryOutput, error)
type GetRepoBranchesInput ¶ added in v5.6.0
type GetRepoBranchesInput struct {
RepoID int64 `path:"repo_id" doc:"the repository id"`
PaginationParams
}
type GetRepoBranchesOutput ¶ added in v5.6.0
type GetRepoBranchesOutput struct {
Body []string
}
func GetRepoBranches ¶
func GetRepoBranches(ctx context.Context, input *GetRepoBranchesInput) (*GetRepoBranchesOutput, error)
type GetRepoConfigsInput ¶ added in v5.6.0
type GetRepoConfigsOutput ¶ added in v5.6.0
type GetRepoConfigsOutput struct {
Body ManualWorkflowsResponse
}
func GetRepoConfigs ¶
func GetRepoConfigs(ctx context.Context, input *GetRepoConfigsInput) (*GetRepoConfigsOutput, error)
type GetRepoForImportInput ¶ added in v5.6.0
type GetRepoForImportOutput ¶ added in v5.6.0
type GetRepoForImportOutput struct {
Body ImportPreviewResponse
}
func GetRepoForImport ¶
func GetRepoForImport(ctx context.Context, input *GetRepoForImportInput) (*GetRepoForImportOutput, error)
type GetRepoInput ¶ added in v5.6.0
type GetRepoInput struct {
RepoID int64 `path:"repo_id" doc:"the repository id"`
}
type GetRepoNotificationConfigInput ¶ added in v5.6.0
type GetRepoNotificationConfigInput struct {
RepoID int64 `path:"repo_id" doc:"the repository id"`
}
type GetRepoNotificationConfigOutput ¶ added in v5.6.0
type GetRepoNotificationConfigOutput struct {
Body *model.NotificationConfig
}
func GetRepoNotificationConfig ¶ added in v5.6.0
func GetRepoNotificationConfig(ctx context.Context, input *GetRepoNotificationConfigInput) (*GetRepoNotificationConfigOutput, error)
type GetRepoOutput ¶ added in v5.6.0
func GetRepo ¶
func GetRepo(ctx context.Context, input *GetRepoInput) (*GetRepoOutput, error)
type GetRepoPermissionsInput ¶ added in v5.6.0
type GetRepoPermissionsInput struct {
RepoID int64 `path:"repo_id" doc:"the repository id"`
}
type GetRepoPermissionsOutput ¶ added in v5.6.0
func GetRepoPermissions ¶
func GetRepoPermissions(ctx context.Context, input *GetRepoPermissionsInput) (*GetRepoPermissionsOutput, error)
type GetRepoPullRequestsInput ¶ added in v5.6.0
type GetRepoPullRequestsInput struct {
RepoID int64 `path:"repo_id" doc:"the repository id"`
PaginationParams
}
type GetRepoPullRequestsOutput ¶ added in v5.6.0
type GetRepoPullRequestsOutput struct {
Body []*model.PullRequest
}
func GetRepoPullRequests ¶
func GetRepoPullRequests(ctx context.Context, input *GetRepoPullRequestsInput) (*GetRepoPullRequestsOutput, error)
type GetReposInput ¶ added in v5.6.0
type GetReposInput struct {
All bool `query:"all" doc:"query all repos, including inactive ones"`
}
type GetReposOutput ¶ added in v5.6.0
type GetReposOutput struct {
Body any
}
func GetRepos ¶
func GetRepos(ctx context.Context, input *GetReposInput) (*GetReposOutput, error)
type GetSecretAbbreviatedInput ¶ added in v5.6.0
type GetSecretAbbreviatedOutput ¶ added in v5.6.0
type GetSecretAbbreviatedOutput struct {
CacheControl string `header:"Cache-Control"`
Body *model.Secret
}
func GetSecretAbbreviated ¶
func GetSecretAbbreviated(ctx context.Context, input *GetSecretAbbreviatedInput) (*GetSecretAbbreviatedOutput, error)
type GetSecretInput ¶ added in v5.6.0
type GetSecretListInput ¶ added in v5.6.0
type GetSecretListInput struct {
PaginationParams
RepoID int64 `path:"repo_id" doc:"the repository id"`
}
type GetSecretListOutput ¶ added in v5.6.0
func GetSecretList ¶
func GetSecretList(ctx context.Context, input *GetSecretListInput) (*GetSecretListOutput, error)
type GetSecretOutput ¶ added in v5.6.0
func GetSecret ¶
func GetSecret(ctx context.Context, input *GetSecretInput) (*GetSecretOutput, error)
type GetSelfInput ¶ added in v5.6.0
type GetSelfInput struct{}
type GetSelfOutput ¶ added in v5.6.0
func GetSelf ¶
func GetSelf(ctx context.Context, _ *GetSelfInput) (*GetSelfOutput, error)
type GetSignaturePublicKeyInput ¶ added in v5.6.0
type GetSignaturePublicKeyInput struct{}
type GetStepLogsInput ¶ added in v5.6.0
type GetStepLogsOutput ¶ added in v5.6.0
func GetStepLogs ¶
func GetStepLogs(ctx context.Context, input *GetStepLogsInput) (*GetStepLogsOutput, error)
type GetTimezonesInput ¶ added in v5.6.0
type GetTimezonesInput struct{}
type GetTimezonesOutput ¶ added in v5.6.0
type GetTimezonesOutput struct {
Body []string
}
func GetTimezones ¶
func GetTimezones(_ context.Context, _ *GetTimezonesInput) (*GetTimezonesOutput, error)
type GetUnsubscribeInput ¶ added in v5.8.2
type GetUnsubscribeInput struct {
Token string `query:"token" required:"true" doc:"signed unsubscribe token"`
}
type GetUserCronListInput ¶ added in v5.6.0
type GetUserCronListInput struct {
PaginationParams
Search string `query:"search" doc:"Search term for cron name"`
}
type GetUserCronListOutput ¶ added in v5.6.0
type GetUserCronListOutput struct {
Body []*model.CronWithRepo
}
func GetUserCronList ¶
func GetUserCronList(ctx context.Context, input *GetUserCronListInput) (*GetUserCronListOutput, error)
type GetUserForgeAffectedReposInput ¶ added in v5.6.0
type GetUserForgeAffectedReposInput struct {
ForgeID int64 `path:"forge_id" doc:"the forge's id"`
}
type GetUserForgeAffectedReposOutput ¶ added in v5.6.0
func GetUserForgeAffectedRepos ¶
func GetUserForgeAffectedRepos(ctx context.Context, input *GetUserForgeAffectedReposInput) (*GetUserForgeAffectedReposOutput, error)
type GetUserForgeInput ¶ added in v5.6.0
type GetUserForgeInput struct {
ForgeID int64 `path:"forge_id" doc:"the forge's id"`
}
type GetUserForgeOutput ¶ added in v5.6.0
type GetUserForgeOutput struct {
Body *UserForgeResponse
}
func GetUserForge ¶
func GetUserForge(ctx context.Context, input *GetUserForgeInput) (*GetUserForgeOutput, error)
type GetUserForgesInput ¶ added in v5.6.0
type GetUserForgesInput struct{}
type GetUserForgesOutput ¶ added in v5.6.0
type GetUserForgesOutput struct {
Body []*UserForgeResponse
}
func GetUserForges ¶
func GetUserForges(ctx context.Context, _ *GetUserForgesInput) (*GetUserForgesOutput, error)
type GetUserInput ¶ added in v5.6.0
type GetUserInput struct {
Login string `path:"login" doc:"the user's login name"`
}
type GetUserOrgListInput ¶ added in v5.6.0
type GetUserOrgListInput struct{}
type GetUserOrgListOutput ¶ added in v5.6.0
func GetUserOrgList ¶
func GetUserOrgList(ctx context.Context, _ *GetUserOrgListInput) (*GetUserOrgListOutput, error)
type GetUserOutput ¶ added in v5.6.0
func GetUser ¶
func GetUser(ctx context.Context, input *GetUserInput) (*GetUserOutput, error)
type GetUserRegistryListInput ¶ added in v5.6.0
type GetUserRegistryListInput struct {
PaginationParams
Scope string `query:"scope" default:"user,org,global" doc:"Comma-separated scopes: user,org,global"`
Search string `query:"search" doc:"Search term for registry address"`
}
type GetUserRegistryListOutput ¶ added in v5.6.0
type GetUserRegistryListOutput struct {
Body []*model.RegistryWithOrg
}
func GetUserRegistryList ¶
func GetUserRegistryList(ctx context.Context, input *GetUserRegistryListInput) (*GetUserRegistryListOutput, error)
type GetUserSecretListInput ¶ added in v5.6.0
type GetUserSecretListInput struct {
PaginationParams
Scope string `query:"scope" default:"user,org,global" doc:"Comma-separated scopes: user,org,global"`
Search string `query:"search" doc:"Search term for secret name"`
}
type GetUserSecretListOutput ¶ added in v5.6.0
type GetUserSecretListOutput struct {
Body []*model.SecretWithOrg
}
func GetUserSecretList ¶
func GetUserSecretList(ctx context.Context, input *GetUserSecretListInput) (*GetUserSecretListOutput, error)
type GetUsersInput ¶ added in v5.6.0
type GetUsersInput struct {
PaginationParams
}
type GetUsersOutput ¶ added in v5.6.0
func GetUsers ¶
func GetUsers(ctx context.Context, input *GetUsersInput) (*GetUsersOutput, error)
type HealthStatus ¶
type HealthStatus struct {
Status string `json:"status"`
InstanceID string `json:"instance_id"`
Timestamp int64 `json:"timestamp"`
Checks map[string]string `json:"checks"`
Version string `json:"version"`
Uptime float64 `json:"uptime_seconds"`
} // @name HealthStatus
HealthStatus represents the health status of the server.
type HeartbeatBody ¶ added in v5.6.0
type HeartbeatBody struct {
ActiveAgents int32 `json:"active_agents"`
PendingAgents int32 `json:"pending_agents"`
Version string `json:"version"`
MinAgents int32 `json:"min_agents"`
MaxAgents int32 `json:"max_agents"`
WorkflowsPerAgent int32 `json:"workflows_per_agent"`
Provider string `json:"provider"`
InstanceType string `json:"instance_type"`
Region string `json:"region"`
AgentLabels map[string]string `json:"agent_labels"`
LimitCPUQuota string `json:"limit_cpu_quota"`
LimitMem string `json:"limit_mem"`
}
type HeartbeatResponse ¶ added in v5.6.0
type ImportPreviewResponse ¶
type ImportPreviewResponse struct {
Repo *model.Repo `json:"repo"`
SecretCount int `json:"secret_count"`
RegistryCount int `json:"registry_count"`
CronCount int `json:"cron_count"`
PipelineCount int `json:"pipeline_count"`
// Org-level assets that would be migrated from same-named orgs on other forges
OrgSecretCount int `json:"org_secret_count"`
OrgRegistryCount int `json:"org_registry_count"`
OrgName string `json:"org_name,omitempty"`
OrgSourceForge string `json:"org_source_forge,omitempty"`
}
ImportPreviewResponse contains repo info and counts for import preview.
type ImportSettingsInput ¶ added in v5.6.0
type ImportSettingsInput struct {
RepoID int64 `path:"repo_id" doc:"the target repository id"`
Body ImportSettingsRequest
}
type ImportSettingsOutput ¶ added in v5.6.0
type ImportSettingsOutput struct {
Body ImportSettingsResponse
}
func ImportSettings ¶
func ImportSettings(ctx context.Context, input *ImportSettingsInput) (*ImportSettingsOutput, error)
type ImportSettingsRequest ¶
type ImportSettingsRequest struct {
SourceRepoID int64 `json:"source_repo_id"`
Settings bool `json:"settings"`
Secrets bool `json:"secrets"`
Registries bool `json:"registries"`
Crons bool `json:"crons"`
Pipelines bool `json:"pipelines"`
DeleteSource bool `json:"delete_source"`
}
ImportSettingsRequest represents the request body for importing settings.
type ImportSettingsResponse ¶
type ImportSettingsResponse struct {
Message string `json:"message"`
SettingsImported bool `json:"settings_imported"`
SecretsImported int `json:"secrets_imported"`
RegistriesImported int `json:"registries_imported"`
CronsImported int `json:"crons_imported"`
PipelinesImported int `json:"pipelines_imported"`
SourceDeleted bool `json:"source_deleted"`
}
ImportSettingsResponse represents the response after importing settings.
type IntegrationTypeInfo ¶ added in v5.6.0
type LookupOrgInput ¶ added in v5.6.0
type LookupOrgInput struct {
OrgFullName string `path:"org_full_name" doc:"the organization's full name / slug"`
}
type LookupOrgOutput ¶ added in v5.6.0
func LookupOrg ¶
func LookupOrg(ctx context.Context, input *LookupOrgInput) (*LookupOrgOutput, error)
type LookupRepoInput ¶ added in v5.6.0
type LookupRepoInput struct {
RepoFullName string `path:"repo_full_name" doc:"the repository full name / slug"`
}
type LookupRepoOutput ¶ added in v5.6.0
func LookupRepo ¶
func LookupRepo(ctx context.Context, input *LookupRepoInput) (*LookupRepoOutput, error)
type ManualWorkflow ¶
type ManualWorkflow struct {
Name string `json:"name"`
PipelineName string `json:"pipeline_name"`
DependsOn []string `json:"depends_on,omitempty"`
HasManual bool `json:"has_manual"`
}
ManualWorkflow represents a workflow that can be manually triggered.
type ManualWorkflowsResponse ¶
type ManualWorkflowsResponse struct {
Workflows []ManualWorkflow `json:"workflows"`
Warnings []string `json:"warnings,omitempty"`
}
ManualWorkflowsResponse is the response for the GetManualWorkflows endpoint.
type MoveRepoInput ¶ added in v5.6.0
type PaginationParams ¶ added in v5.6.0
type PaginationParams struct {
Page int `query:"page" default:"1" minimum:"1" doc:"for response pagination, page offset number"`
PerPage int `query:"perPage" default:"50" minimum:"1" maximum:"50" doc:"for response pagination, max items per page"`
}
PaginationParams are reusable query parameters for paginated endpoints.
type PatchAccessTokenInput ¶ added in v5.6.0
type PatchAccessTokenInput struct {
TokenID int64 `path:"token_id" doc:"the token's id"`
Body UpdateAccessTokenRequest
}
type PatchAccessTokenOutput ¶ added in v5.6.0
type PatchAccessTokenOutput struct {
Body *model.AccessToken
}
func PatchAccessToken ¶
func PatchAccessToken(ctx context.Context, input *PatchAccessTokenInput) (*PatchAccessTokenOutput, error)
type PatchAgentBody ¶ added in v5.6.0
type PatchAgentInput ¶ added in v5.6.0
type PatchAgentInput struct {
AgentID int64 `path:"agent_id" doc:"the agent's id"`
Body PatchAgentBody
}
type PatchAgentOutput ¶ added in v5.6.0
func PatchAgent ¶
func PatchAgent(ctx context.Context, input *PatchAgentInput) (*PatchAgentOutput, error)
func PatchOrgAgent ¶
func PatchOrgAgent(ctx context.Context, input *PatchOrgAgentInput) (*PatchAgentOutput, error)
type PatchAutoscalerBody ¶ added in v5.6.0
type PatchAutoscalerBody struct {
Enabled bool `json:"enabled" doc:"whether the autoscaler is enabled"`
}
type PatchAutoscalerInput ¶ added in v5.6.0
type PatchAutoscalerInput struct {
AutoscalerID int64 `path:"autoscaler_id" doc:"the autoscaler's id"`
Body PatchAutoscalerBody
}
type PatchAutoscalerOutput ¶ added in v5.6.0
type PatchAutoscalerOutput struct {
Body *model.Autoscaler
}
func PatchAutoscaler ¶
func PatchAutoscaler(ctx context.Context, input *PatchAutoscalerInput) (*PatchAutoscalerOutput, error)
type PatchCronBody ¶ added in v5.6.0
type PatchCronInput ¶ added in v5.6.0
type PatchCronInput struct {
RepoID int64 `path:"repo_id" doc:"the repository id"`
Cron int64 `path:"cron" doc:"the cron job id"`
Body PatchCronBody
}
type PatchCronOutput ¶ added in v5.6.0
func PatchCron ¶
func PatchCron(ctx context.Context, input *PatchCronInput) (*PatchCronOutput, error)
type PatchForgeInput ¶ added in v5.6.0
type PatchForgeOutput ¶ added in v5.6.0
func PatchForge ¶
func PatchForge(ctx context.Context, input *PatchForgeInput) (*PatchForgeOutput, error)
type PatchGlobalRegistryInput ¶ added in v5.6.0
type PatchGlobalRegistryInput struct {
Registry string `path:"registry" doc:"the registry's name"`
Body PatchRegistryBody
}
type PatchGlobalRegistryOutput ¶ added in v5.6.0
func PatchGlobalRegistry ¶
func PatchGlobalRegistry(ctx context.Context, input *PatchGlobalRegistryInput) (*PatchGlobalRegistryOutput, error)
type PatchGlobalSecretInput ¶ added in v5.6.0
type PatchGlobalSecretInput struct {
Secret string `path:"secret" doc:"the secret's name"`
Body PatchSecretBody
}
type PatchGlobalSecretOutput ¶ added in v5.6.0
func PatchGlobalSecret ¶
func PatchGlobalSecret(ctx context.Context, input *PatchGlobalSecretInput) (*PatchGlobalSecretOutput, error)
type PatchIntegrationBody ¶ added in v5.6.0
type PatchIntegrationBody struct {
Name string `json:"name,omitempty" doc:"integration name"`
Description string `json:"description,omitempty" doc:"integration description"`
Config string `json:"config,omitempty" doc:"integration configuration"`
IsActive bool `json:"is_active" doc:"whether integration is active"`
AllowedUserIDs []int64 `json:"allowed_user_ids,omitempty" doc:"allowed user IDs"`
AllowedOrgIDs []int64 `json:"allowed_org_ids,omitempty" doc:"allowed org IDs"`
AllowedRepoIDs []int64 `json:"allowed_repo_ids,omitempty" doc:"allowed repo IDs"`
}
type PatchIntegrationInput ¶ added in v5.6.0
type PatchIntegrationInput struct {
IntegrationID int64 `path:"integration_id" doc:"the integration's id"`
Body PatchIntegrationBody
}
type PatchIntegrationOutput ¶ added in v5.6.0
type PatchIntegrationOutput struct {
Body *model.Integration
}
func PatchIntegration ¶
func PatchIntegration(ctx context.Context, input *PatchIntegrationInput) (*PatchIntegrationOutput, error)
type PatchOrgAgentInput ¶ added in v5.6.0
type PatchOrgAgentInput struct {
OrgID int64 `path:"org_id" doc:"the organization's id"`
AgentID int64 `path:"agent_id" doc:"the agent's id"`
Body PatchAgentBody
}
type PatchOrgRegistryInput ¶ added in v5.6.0
type PatchOrgRegistryInput struct {
OrgID int64 `path:"org_id" doc:"the org's id"`
Registry string `path:"registry" doc:"the registry's name"`
Body PatchRegistryBody
}
type PatchOrgRegistryOutput ¶ added in v5.6.0
func PatchOrgRegistry ¶
func PatchOrgRegistry(ctx context.Context, input *PatchOrgRegistryInput) (*PatchOrgRegistryOutput, error)
type PatchOrgSecretInput ¶ added in v5.6.0
type PatchOrgSecretInput struct {
OrgID int64 `path:"org_id" doc:"the org's id"`
Secret string `path:"secret" doc:"the secret's name"`
Body PatchSecretBody
}
type PatchOrgSecretOutput ¶ added in v5.6.0
func PatchOrgSecret ¶
func PatchOrgSecret(ctx context.Context, input *PatchOrgSecretInput) (*PatchOrgSecretOutput, error)
type PatchRegistryBody ¶ added in v5.6.0
type PatchRegistryInput ¶ added in v5.6.0
type PatchRegistryInput struct {
RepoID int64 `path:"repo_id" doc:"the repository id"`
Registry string `path:"registry" doc:"the registry name"`
Body PatchRegistryBody
}
type PatchRegistryOutput ¶ added in v5.6.0
func PatchRegistry ¶
func PatchRegistry(ctx context.Context, input *PatchRegistryInput) (*PatchRegistryOutput, error)
type PatchRepoInput ¶ added in v5.6.0
type PatchRepoOutput ¶ added in v5.6.0
func PatchRepo ¶
func PatchRepo(ctx context.Context, input *PatchRepoInput) (*PatchRepoOutput, error)
type PatchSecretBody ¶ added in v5.6.0
type PatchSecretBody struct {
Value string `json:"value,omitempty" doc:"secret value"`
Events []model.WebhookEvent `json:"events,omitempty" doc:"events that trigger the secret"`
Images []string `json:"images,omitempty" doc:"container images allowed to use the secret"`
}
type PatchSecretInput ¶ added in v5.6.0
type PatchSecretInput struct {
RepoID int64 `path:"repo_id" doc:"the repository id"`
Secret string `path:"secret" doc:"the secret name"`
Body PatchSecretBody
}
type PatchSecretOutput ¶ added in v5.6.0
func PatchSecret ¶
func PatchSecret(ctx context.Context, input *PatchSecretInput) (*PatchSecretOutput, error)
type PatchUserBody ¶ added in v5.6.0
type PatchUserBody struct {
Email string `json:"email,omitempty" doc:"user email"`
Avatar string `json:"avatar_url,omitempty" doc:"user avatar URL"`
Admin bool `json:"admin,omitempty" doc:"whether user is admin"`
Description string `json:"description,omitempty" doc:"user description"`
Timezone string `json:"timezone,omitempty" doc:"user timezone"`
}
type PatchUserInput ¶ added in v5.6.0
type PatchUserInput struct {
Login string `path:"login" doc:"the user's login name"`
Body PatchUserBody
}
type PatchUserOutput ¶ added in v5.6.0
func PatchUser ¶
func PatchUser(ctx context.Context, input *PatchUserInput) (*PatchUserOutput, error)
type PostAccessTokenInput ¶ added in v5.6.0
type PostAccessTokenInput struct {
Body CreateAccessTokenRequest
}
type PostAccessTokenOutput ¶ added in v5.6.0
type PostAccessTokenOutput struct {
Body AccessTokenResponse
}
func PostAccessToken ¶
func PostAccessToken(ctx context.Context, input *PostAccessTokenInput) (*PostAccessTokenOutput, error)
type PostAdminTestSMTPInput ¶ added in v5.6.0
type PostAdminTestSMTPInput struct{}
type PostAdminTestSMTPOutput ¶ added in v5.6.0
type PostAdminTestSMTPOutput struct {
Body struct {
Success bool `json:"success"`
Message string `json:"message"`
}
}
func PostAdminTestSMTP ¶ added in v5.6.0
func PostAdminTestSMTP(ctx context.Context, _ *PostAdminTestSMTPInput) (*PostAdminTestSMTPOutput, error)
type PostAgentBody ¶ added in v5.6.0
type PostAgentBody struct {
Name string `json:"name" minLength:"1" doc:"name of the agent"`
NoSchedule bool `json:"no_schedule,omitempty" doc:"disable scheduling for this agent"`
Priority int32 `json:"priority,omitempty" doc:"agent priority"`
CustomLabels map[string]string `json:"custom_labels,omitempty" doc:"custom labels for the agent"`
}
type PostAgentInput ¶ added in v5.6.0
type PostAgentInput struct {
Body PostAgentBody
}
type PostAgentOutput ¶ added in v5.6.0
func PostAgent ¶
func PostAgent(ctx context.Context, input *PostAgentInput) (*PostAgentOutput, error)
func PostOrgAgent ¶
func PostOrgAgent(ctx context.Context, input *PostOrgAgentInput) (*PostAgentOutput, error)
type PostApprovalAlwaysInput ¶ added in v5.6.0
type PostApprovalAlwaysOutput ¶ added in v5.6.0
func PostApprovalAlways ¶ added in v5.5.0
func PostApprovalAlways(ctx context.Context, input *PostApprovalAlwaysInput) (*PostApprovalAlwaysOutput, error)
type PostApprovalInput ¶ added in v5.6.0
type PostApprovalOutput ¶ added in v5.6.0
func PostApproval ¶
func PostApproval(ctx context.Context, input *PostApprovalInput) (*PostApprovalOutput, error)
type PostAutoscalerBody ¶ added in v5.6.0
type PostAutoscalerBody struct {
Name string `json:"name" minLength:"1" doc:"name of the autoscaler"`
}
type PostAutoscalerHeartbeatInput ¶ added in v5.6.0
type PostAutoscalerHeartbeatInput struct {
AutoscalerID int64 `path:"autoscaler_id" doc:"the autoscaler's id"`
Body HeartbeatBody
}
type PostAutoscalerHeartbeatOutput ¶ added in v5.6.0
type PostAutoscalerHeartbeatOutput struct {
Body HeartbeatResponse
}
func PostAutoscalerHeartbeat ¶
func PostAutoscalerHeartbeat(ctx context.Context, input *PostAutoscalerHeartbeatInput) (*PostAutoscalerHeartbeatOutput, error)
type PostAutoscalerInput ¶ added in v5.6.0
type PostAutoscalerInput struct {
Body PostAutoscalerBody
}
type PostAutoscalerOutput ¶ added in v5.6.0
type PostAutoscalerOutput struct {
Body *model.AutoscalerWithToken
}
func PostAutoscaler ¶
func PostAutoscaler(ctx context.Context, input *PostAutoscalerInput) (*PostAutoscalerOutput, error)
type PostAutoscalerTokenInput ¶ added in v5.6.0
type PostAutoscalerTokenInput struct {
AutoscalerID int64 `path:"autoscaler_id" doc:"the autoscaler's id"`
}
type PostAutoscalerTokenOutput ¶ added in v5.6.0
type PostAutoscalerTokenOutput struct {
Body TokenResponse
}
func PostAutoscalerToken ¶
func PostAutoscalerToken(ctx context.Context, input *PostAutoscalerTokenInput) (*PostAutoscalerTokenOutput, error)
type PostCronBody ¶ added in v5.6.0
type PostCronInput ¶ added in v5.6.0
type PostCronInput struct {
RepoID int64 `path:"repo_id" doc:"the repository id"`
Body PostCronBody
}
type PostCronOutput ¶ added in v5.6.0
func PostCron ¶
func PostCron(ctx context.Context, input *PostCronInput) (*PostCronOutput, error)
type PostDeclineInput ¶ added in v5.6.0
type PostDeclineOutput ¶ added in v5.6.0
func PostDecline ¶
func PostDecline(ctx context.Context, input *PostDeclineInput) (*PostDeclineOutput, error)
type PostForgeInput ¶ added in v5.6.0
type PostForgeInput struct {
Body ForgeBody
}
type PostForgeOutput ¶ added in v5.6.0
func PostForge ¶
func PostForge(ctx context.Context, input *PostForgeInput) (*PostForgeOutput, error)
type PostGlobalRegistryInput ¶ added in v5.6.0
type PostGlobalRegistryInput struct {
Body PostRegistryBody
}
type PostGlobalRegistryOutput ¶ added in v5.6.0
func PostGlobalRegistry ¶
func PostGlobalRegistry(ctx context.Context, input *PostGlobalRegistryInput) (*PostGlobalRegistryOutput, error)
type PostGlobalSecretInput ¶ added in v5.6.0
type PostGlobalSecretInput struct {
Body PostSecretBody
}
type PostGlobalSecretOutput ¶ added in v5.6.0
func PostGlobalSecret ¶
func PostGlobalSecret(ctx context.Context, input *PostGlobalSecretInput) (*PostGlobalSecretOutput, error)
type PostIntegrationBody ¶ added in v5.6.0
type PostIntegrationBody struct {
Name string `json:"name" minLength:"1" doc:"integration name"`
Type model.IntegrationType `json:"type" doc:"integration type"`
Description string `json:"description,omitempty" doc:"integration description"`
Config string `json:"config,omitempty" doc:"integration configuration"`
AllowedUserIDs []int64 `json:"allowed_user_ids,omitempty" doc:"allowed user IDs"`
AllowedOrgIDs []int64 `json:"allowed_org_ids,omitempty" doc:"allowed org IDs"`
AllowedRepoIDs []int64 `json:"allowed_repo_ids,omitempty" doc:"allowed repo IDs"`
}
type PostIntegrationInput ¶ added in v5.6.0
type PostIntegrationInput struct {
Body PostIntegrationBody
}
type PostIntegrationOutput ¶ added in v5.6.0
type PostIntegrationOutput struct {
Body *model.Integration
}
func PostIntegration ¶
func PostIntegration(ctx context.Context, input *PostIntegrationInput) (*PostIntegrationOutput, error)
type PostOrgAgentInput ¶ added in v5.6.0
type PostOrgAgentInput struct {
OrgID int64 `path:"org_id" doc:"the organization's id"`
Body PostAgentBody
}
type PostOrgRegistryInput ¶ added in v5.6.0
type PostOrgRegistryInput struct {
OrgID int64 `path:"org_id" doc:"the org's id"`
Body PostRegistryBody
}
type PostOrgRegistryOutput ¶ added in v5.6.0
func PostOrgRegistry ¶
func PostOrgRegistry(ctx context.Context, input *PostOrgRegistryInput) (*PostOrgRegistryOutput, error)
type PostOrgSecretInput ¶ added in v5.6.0
type PostOrgSecretInput struct {
OrgID int64 `path:"org_id" doc:"the org's id"`
Body PostSecretBody
}
type PostOrgSecretOutput ¶ added in v5.6.0
func PostOrgSecret ¶
func PostOrgSecret(ctx context.Context, input *PostOrgSecretInput) (*PostOrgSecretOutput, error)
type PostPipelineInput ¶ added in v5.6.0
type PostPipelineInput struct {
RepoID int64 `path:"repo_id" doc:"the repository id"`
Number int64 `path:"number" doc:"the number of the pipeline"`
Event string `query:"event" doc:"override the event type"`
DeployTo string `query:"deploy_to" doc:"override the target deploy value"`
DeployTask string `query:"deploy_task" doc:"override the deploy task"`
}
type PostPipelineOutput ¶ added in v5.6.0
func PostPipeline ¶
func PostPipeline(ctx context.Context, input *PostPipelineInput) (*PostPipelineOutput, error)
type PostRegistryBody ¶ added in v5.6.0
type PostRegistryInput ¶ added in v5.6.0
type PostRegistryInput struct {
RepoID int64 `path:"repo_id" doc:"the repository id"`
Body PostRegistryBody
}
type PostRegistryOutput ¶ added in v5.6.0
func PostRegistry ¶
func PostRegistry(ctx context.Context, input *PostRegistryInput) (*PostRegistryOutput, error)
type PostRepoInput ¶ added in v5.6.0
type PostRepoOutput ¶ added in v5.6.0
type PostRepoOutput struct {
Body *RepoResponse
}
func PostRepo ¶
func PostRepo(ctx context.Context, input *PostRepoInput) (*PostRepoOutput, error)
type PostSecretBody ¶ added in v5.6.0
type PostSecretBody struct {
Name string `json:"name" minLength:"1" doc:"secret name"`
Value string `json:"value" minLength:"1" doc:"secret value"`
Events []model.WebhookEvent `json:"events" doc:"events that trigger the secret"`
Images []string `json:"images,omitempty" doc:"container images allowed to use the secret"`
}
type PostSecretInput ¶ added in v5.6.0
type PostSecretInput struct {
RepoID int64 `path:"repo_id" doc:"the repository id"`
Body PostSecretBody
}
type PostSecretOutput ¶ added in v5.6.0
func PostSecret ¶
func PostSecret(ctx context.Context, input *PostSecretInput) (*PostSecretOutput, error)
type PostTokenInput ¶ added in v5.6.0
type PostTokenInput struct{}
type PostTokenOutput ¶ added in v5.6.0
type PostTokenOutput struct {
Body string
}
func PostToken ¶
func PostToken(ctx context.Context, _ *PostTokenInput) (*PostTokenOutput, error)
type PostUserBody ¶ added in v5.6.0
type PostUserInput ¶ added in v5.6.0
type PostUserInput struct {
Body PostUserBody
}
type PostUserOutput ¶ added in v5.6.0
func PostUser ¶
func PostUser(ctx context.Context, input *PostUserInput) (*PostUserOutput, error)
type PutNotificationConfigBody ¶ added in v5.6.0
type PutNotificationConfigBody struct {
IsEnabled bool `json:"is_enabled" doc:"whether notifications are enabled"`
Events []model.NotificationEvent `json:"events,omitempty" doc:"events to notify on"`
}
type PutRepoNotificationConfigInput ¶ added in v5.6.0
type PutRepoNotificationConfigInput struct {
RepoID int64 `path:"repo_id" doc:"the repository id"`
Body PutNotificationConfigBody
}
type PutRepoNotificationConfigOutput ¶ added in v5.6.0
type PutRepoNotificationConfigOutput struct {
Body *model.NotificationConfig
}
func PutRepoNotificationConfig ¶ added in v5.6.0
func PutRepoNotificationConfig(ctx context.Context, input *PutRepoNotificationConfigInput) (*PutRepoNotificationConfigOutput, error)
type RepairAllReposInput ¶ added in v5.6.0
type RepairAllReposInput struct{}
type RepairRepoInput ¶ added in v5.6.0
type RepairRepoInput struct {
RepoID int64 `path:"repo_id" doc:"the repository id"`
}
type RepoFields ¶ added in v5.6.0
RepoFields is a method-free copy of model.Repo for clean huma schema generation.
type RepoResponse ¶
type RepoResponse struct {
RepoFields
Messages []string `json:"messages,omitempty"`
}
RepoResponse wraps a Repo with optional messages for the frontend.
type RerunWorkflowInput ¶ added in v5.6.0
type RerunWorkflowOutput ¶ added in v5.6.0
func RerunWorkflow ¶ added in v5.5.0
func RerunWorkflow(ctx context.Context, input *RerunWorkflowInput) (*RerunWorkflowOutput, error)
type RunCronInput ¶ added in v5.6.0
type RunCronOutput ¶ added in v5.6.0
func RunCron ¶
func RunCron(ctx context.Context, input *RunCronInput) (*RunCronOutput, error)
type RunMaintenanceNowInput ¶ added in v5.6.0
type RunMaintenanceNowInput struct {
Body RunMaintenanceRequest
}
type RunMaintenanceNowOutput ¶ added in v5.6.0
type RunMaintenanceNowOutput struct {
Body RunMaintenanceResponse
}
func RunMaintenanceNow ¶
func RunMaintenanceNow(ctx context.Context, input *RunMaintenanceNowInput) (*RunMaintenanceNowOutput, error)
type RunMaintenanceRequest ¶
type RunMaintenanceRequest struct {
Job string `json:"job" doc:"The maintenance job to run"`
DryRun bool `json:"dry_run,omitempty" doc:"Run in dry-run mode (only for kubernetesCleanup)"`
}
RunMaintenanceRequest represents the request payload for running maintenance.
type RunMaintenanceResponse ¶ added in v5.6.0
type SecretViewAuthorizer ¶
type SecretViewAuthorizer struct {
// contains filtered or unexported fields
}
SecretViewAuthorizer handles authorization for viewing abbreviated secret values. This is separate from the standard middleware permission checks because viewing secret values requires explicit permissions, not auto-granted admin permissions.
func NewSecretViewAuthorizer ¶
func NewSecretViewAuthorizer(store store.Store, membership cache.MembershipService) *SecretViewAuthorizer
NewSecretViewAuthorizer creates a new SecretViewAuthorizer instance.
func NewSecretViewAuthorizerFromContext ¶
func NewSecretViewAuthorizerFromContext(c *gin.Context, membership cache.MembershipService) *SecretViewAuthorizer
NewSecretViewAuthorizerFromContext creates a SecretViewAuthorizer from gin context.
func (*SecretViewAuthorizer) CanViewGlobalSecret ¶
func (a *SecretViewAuthorizer) CanViewGlobalSecret(user *model.User) bool
CanViewGlobalSecret checks if user is an instance admin. Only instance admins can view global secret values.
func (*SecretViewAuthorizer) CanViewOrgSecret ¶
func (a *SecretViewAuthorizer) CanViewOrgSecret(c context.Context, user *model.User, org *model.Org, _forge forge.Forge) bool
CanViewOrgSecret checks if user is an org admin via forge membership. Org admin membership (as determined by the forge) is sufficient to view org secrets.
func (*SecretViewAuthorizer) CanViewRepoSecret ¶
CanViewRepoSecret checks if user has EXPLICIT write access to view repo secrets. Instance admins without explicit forge-granted push access cannot view secret values. This ensures that instance admins can only view secrets for repos they have explicit access to via the forge (GitHub/GitLab/etc.), not just by virtue of being admins.
type TestIntegrationInput ¶ added in v5.6.0
type TestIntegrationInput struct {
IntegrationID int64 `path:"integration_id" doc:"the integration's id"`
}
type TestIntegrationOutput ¶ added in v5.6.0
type TestIntegrationOutput struct {
Body TestIntegrationResponse
}
func TestIntegration ¶
func TestIntegration(ctx context.Context, input *TestIntegrationInput) (*TestIntegrationOutput, error)
type TestIntegrationResponse ¶ added in v5.6.0
type TestIntegrationResponse struct {
Status string `json:"status"`
}
type TokenResponse ¶ added in v5.6.0
type TokenResponse struct {
Token string `json:"token"`
}
type UnlinkForgeResponse ¶
type UnlinkForgeResponse struct {
Message string `json:"message"`
DisabledRepos int `json:"disabled_repos"`
}
UnlinkForgeResponse represents the response when unlinking a forge.
type UpdateAccessTokenRequest ¶
type UpdateAccessTokenRequest struct {
Name string `json:"name,omitempty" doc:"token name"`
Scopes []string `json:"scopes,omitempty" doc:"token scopes"`
}
UpdateAccessTokenRequest is the request body for updating an access token.
type UpdateMaintenanceConfigBody ¶ added in v5.6.0
type UpdateMaintenanceConfigBody struct {
Enabled bool `json:"enabled" doc:"whether maintenance is enabled"`
Schedule string `json:"schedule,omitempty" doc:"cron schedule"`
DryRun bool `json:"dry_run,omitempty" doc:"dry run mode"`
StaleThreshold int64 `json:"stale_threshold,omitempty" doc:"stale threshold in seconds"`
}
type UpdateMaintenanceConfigByActionInput ¶ added in v5.6.0
type UpdateMaintenanceConfigByActionInput struct {
Action string `path:"action" doc:"Action type (vacuum, kubernetes_cleanup, docker_cleanup)"`
Body UpdateMaintenanceConfigBody
}
type UpdateMaintenanceConfigByActionOutput ¶ added in v5.6.0
type UpdateMaintenanceConfigByActionOutput struct {
Body *model.MaintenanceConfig
}
func UpdateMaintenanceConfigByAction ¶
func UpdateMaintenanceConfigByAction(ctx context.Context, input *UpdateMaintenanceConfigByActionInput) (*UpdateMaintenanceConfigByActionOutput, error)
type UpdateMaintenanceConfigInput ¶ added in v5.6.0
type UpdateMaintenanceConfigInput struct {
Body UpdateMaintenanceConfigBody
}
type UpdateMaintenanceConfigOutput ¶ added in v5.6.0
type UpdateMaintenanceConfigOutput struct {
Body *model.MaintenanceConfig
}
func UpdateMaintenanceConfig ¶
func UpdateMaintenanceConfig(ctx context.Context, input *UpdateMaintenanceConfigInput) (*UpdateMaintenanceConfigOutput, error)
type UserForgeResponse ¶
type UserForgeResponse struct {
ID int64 `json:"id"`
ForgeID int64 `json:"forge_id"`
ForgeName string `json:"forge_name,omitempty"`
ForgeType string `json:"forge_type,omitempty"`
ForgeIcon string `json:"forge_icon,omitempty"`
IsPrimary bool `json:"is_primary"`
ForgeLogin string `json:"forge_login"`
ForgeEmail string `json:"forge_email,omitempty"`
ForgeAvatar string `json:"forge_avatar,omitempty"`
LinkedAt int64 `json:"linked_at"`
LastUsed int64 `json:"last_used,omitempty"`
Status UserForgeStatus `json:"status"`
Expiry int64 `json:"expiry,omitempty"`
}
UserForgeResponse represents a user's forge connection in API responses.
type UserForgeStatus ¶
type UserForgeStatus string
UserForgeStatus represents the connection status of a linked forge.
const ( // UserForgeStatusActive means the token is valid and not expired. UserForgeStatusActive UserForgeStatus = "active" // UserForgeStatusExpired means the token has expired and needs re-authentication. UserForgeStatusExpired UserForgeStatus = "expired" )
Source Files
¶
- access_token.go
- agent.go
- autoscaler.go
- badge.go
- cron.go
- entities.go
- forge.go
- global_registry.go
- global_secret.go
- health.go
- helper.go
- hook.go
- huma.go
- integration.go
- login.go
- maintenance.go
- metrics.go
- notification.go
- org.go
- org_registry.go
- org_secret.go
- pipeline.go
- registry.go
- repo.go
- repo_import.go
- repo_secret.go
- secret_authorization.go
- signature_public_key.go
- stream.go
- timezones.go
- unsubscribe.go
- user.go
- user_crons.go
- user_forges.go
- user_orgs.go
- user_registries.go
- user_secrets.go
- users.go
- z.go