Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildDeployRequestGit ¶
type ConfigDiff ¶
type Controller ¶
type Controller interface { GetPipelinerunLog(ctx context.Context, pipelinerunID uint) (*collector.Log, error) GetClusterLatestLog(ctx context.Context, clusterID uint) (*collector.Log, error) GetDiff(ctx context.Context, pipelinerunID uint) (*GetDiffResponse, error) GetPipelinerun(ctx context.Context, pipelinerunID uint) (*prmodels.PipelineBasic, error) ListPipelineruns(ctx context.Context, clusterID uint, canRollback bool, query q.Query) (int, []*prmodels.PipelineBasic, error) StopPipelinerun(ctx context.Context, pipelinerunID uint) error StopPipelinerunForCluster(ctx context.Context, clusterID uint) error CreateCheck(ctx context.Context, check *prmodels.Check) (*prmodels.Check, error) GetCheckRunByID(ctx context.Context, checkRunID uint) (*prmodels.CheckRun, error) UpdateCheckRunByID(ctx context.Context, checkRunID uint, request *CreateOrUpdateCheckRunRequest) error // Execute runs a pipelineRun only if its state is ready. Execute(ctx context.Context, pipelinerunID uint) error // Ready marks a pipelineRun as ready if its state is pending. Ready(ctx context.Context, pipelinerunID uint) error // Cancel withdraws a pipelineRun only if its state is pending. Cancel(ctx context.Context, pipelinerunID uint) error ListCheckRuns(ctx context.Context, pipelinerunID uint) ([]*prmodels.CheckRun, error) CreateCheckRun(ctx context.Context, pipelineRunID uint, request *CreateOrUpdateCheckRunRequest) (*prmodels.CheckRun, error) ListPRMessages(ctx context.Context, pipelineRunID uint, q *q.Query) (int, []*PRMessage, error) CreatePRMessage(ctx context.Context, pipelineRunID uint, request *CreatePRMessageRequest) (*PRMessage, error) }
func NewController ¶
func NewController(config *config.Config, param *param.Param) Controller
type CreatePRMessageRequest ¶
type CreatePRMessageRequest struct {
Content string `json:"content"`
}
type GetDiffResponse ¶
type GetDiffResponse struct { CodeInfo *CodeInfo `json:"codeInfo"` ConfigDiff *ConfigDiff `json:"configDiff"` }
Click to show internal directories.
Click to hide internal directories.