Documentation ¶
Index ¶
- func CacheExpires(r *http.Response) time.Time
- func NewConfiguration(region string, apiKeys ...*ncloud.APIKey) *ncloud.Configuration
- type APIClient
- type APIResponse
- type CancelPipelineResponse
- type ChangeProject
- type ChangeProjectReponse
- type CreateProject
- type CreateProjectConfig
- type CreateProjectConfigTarget
- type CreateProjectConfigTargetInfo
- type CreateProjectResponse
- type CreateProjectTasks
- type CreateProjectTrigger
- type DeleteProjectResponse
- type GetHistoryDetailResponse
- type GetHistoryDetailResponseConfig
- type GetHistoryDetailResponseConfigTarget
- type GetHistoryDetailResponseHistory
- type GetHistoryDetailResponseTasks
- type GetHistoryListResponse
- type GetHistoryListResponseHistoryList
- type GetPipelineTrigger
- type GetProjectDetailResponse
- type GetProjectDetailResponseConfig
- type GetProjectDetailResponseConfigTarget
- type GetProjectDetailResponseConfigTargetInfo
- type GetProjectDetailResponseConfigTargetInfoWorkspace
- type GetProjectDetailResponseTasks
- type GetProjectListInfo
- type GetProjectListResponse
- type GetProjectTrigger
- type GetRepositoryTrigger
- type GetSbProjectResponse
- type GetSbProjectResponseProjectList
- type GetSbProjectResponseSource
- type GetScBranchResponse
- type GetScBranchResponseBranchList
- type GetScRepositoryResposne
- type GetScTargetInfo
- type GetScheduleTrigger
- type GetSdProjectResponse
- type GetSdScenarioResponse
- type GetSdScenarioResponseResultScenarioList
- type GetSdScenarioResponseResultSource
- type GetSdScenarioResponseResultSourceTarget
- type GetSdStageResponse
- type GetTimeZone
- type StartPipelineResponse
- type V1ApiService
- func (a *V1ApiService) CancelProject(ctx context.Context, projectId *string, historyId *string) (*CancelPipelineResponse, error)
- func (a *V1ApiService) ChangeProject(ctx context.Context, changeProject *ChangeProject, projectId *string) (*ChangeProjectReponse, error)
- func (a *V1ApiService) CreateProject(ctx context.Context, createProject *CreateProject) (*CreateProjectResponse, error)
- func (a *V1ApiService) DeleteProject(ctx context.Context, projectId *string) (*DeleteProjectResponse, error)
- func (a *V1ApiService) GetProject(ctx context.Context, projectId *string) (*GetProjectDetailResponse, error)
- func (a *V1ApiService) GetProjectHistories(ctx context.Context, projectId *string) (*GetHistoryListResponse, error)
- func (a *V1ApiService) GetProjectHistory(ctx context.Context, projectId *string, historyId *string) (*GetHistoryDetailResponse, error)
- func (a *V1ApiService) GetProjects(ctx context.Context) (*GetProjectListResponse, error)
- func (a *V1ApiService) GetSourcebuildProjects(ctx context.Context) (*GetSbProjectResponse, error)
- func (a *V1ApiService) GetSourcecommitRepositories(ctx context.Context) (*GetScRepositoryResposne, error)
- func (a *V1ApiService) GetSourcecommitRepositoryBranches(ctx context.Context, repositoryName *string) (*GetScBranchResponse, error)
- func (a *V1ApiService) GetSourcedeployProjectScenarios(ctx context.Context, projectId *string, stageId *string) (*GetSdScenarioResponse, error)
- func (a *V1ApiService) GetSourcedeployProjectStages(ctx context.Context, projectId *string) (*GetSdStageResponse, error)
- func (a *V1ApiService) GetSourcedeployProjects(ctx context.Context) (*GetSdProjectResponse, error)
- func (a *V1ApiService) GetTimeZone(ctx context.Context) (*GetTimeZone, error)
- func (a *V1ApiService) StartProject(ctx context.Context, projectId *string) (*StartPipelineResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func NewConfiguration ¶
func NewConfiguration(region string, apiKeys ...*ncloud.APIKey) *ncloud.Configuration
Types ¶
type APIClient ¶
type APIClient struct { // API Services V1Api *V1ApiService // contains filtered or unexported fields }
APIClient manages communication with the sourcepipeline API v2022-04-22T07:37:23Z In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *ncloud.Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) ChangeBasePath ¶
Change base path to allow switching to mocks
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the swagger operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
type CancelPipelineResponse ¶
type CancelPipelineResponse struct {
Result *bool `json:"result,omitempty"`
}
type ChangeProject ¶
type ChangeProject struct { Description *string `json:"description,omitempty"` Tasks []*CreateProjectTasks `json:"tasks"` Trigger *CreateProjectTrigger `json:"trigger"` }
type ChangeProjectReponse ¶
type ChangeProjectReponse struct {
Result *bool `json:"result,omitempty"`
}
type CreateProject ¶
type CreateProject struct { Name *string `json:"name"` Description *string `json:"description,omitempty"` Tasks []*CreateProjectTasks `json:"tasks"` Trigger *CreateProjectTrigger `json:"trigger"` }
type CreateProjectConfig ¶
type CreateProjectConfig struct { ProjectId *int32 `json:"projectId,omitempty"` StageId *int32 `json:"stageId,omitempty"` ScenarioId *int32 `json:"scenarioId,omitempty"` Target *CreateProjectConfigTarget `json:"target,omitempty"` }
type CreateProjectConfigTarget ¶
type CreateProjectConfigTarget struct {
Info *CreateProjectConfigTargetInfo `json:"info,omitempty"`
}
type CreateProjectConfigTargetInfo ¶
type CreateProjectConfigTargetInfo struct {
Branch *string `json:"branch,omitempty"`
}
type CreateProjectResponse ¶
type CreateProjectResponse struct {
ProjectId *int32 `json:"projectId,omitempty"`
}
type CreateProjectTasks ¶
type CreateProjectTasks struct { Name *string `json:"name"` Type_ *string `json:"type"` Config *CreateProjectConfig `json:"config"` LinkedTasks []*string `json:"linkedTasks"` }
type CreateProjectTrigger ¶
type CreateProjectTrigger struct { Repository []*GetRepositoryTrigger `json:"repository,omitempty"` Schedule []*GetScheduleTrigger `json:"schedule,omitempty"` SourcePipeline []*GetPipelineTrigger `json:"sourcepipeline,omitempty"` }
type DeleteProjectResponse ¶
type DeleteProjectResponse struct {
Result *bool `json:"result,omitempty"`
}
type GetHistoryDetailResponse ¶
type GetHistoryDetailResponse struct {
History []*GetHistoryDetailResponseHistory `json:"history,omitempty"`
}
type GetHistoryDetailResponseConfig ¶
type GetHistoryDetailResponseConfig struct { ProjectId *float32 `json:"projectId,omitempty"` Target *GetHistoryDetailResponseConfigTarget `json:"target,omitempty"` }
type GetHistoryDetailResponseConfigTarget ¶
type GetHistoryDetailResponseConfigTarget struct { Type_ *string `json:"type,omitempty"` Info *GetScTargetInfo `json:"info,omitempty"` }
type GetHistoryDetailResponseHistory ¶
type GetHistoryDetailResponseHistory struct { Id *int32 `json:"id,omitempty"` ProjectId *int32 `json:"projectId,omitempty"` Begin *int32 `json:"begin,omitempty"` End *int32 `json:"end,omitempty"` Status *string `json:"status,omitempty"` Tasks []*GetHistoryDetailResponseTasks `json:"tasks,omitempty"` }
type GetHistoryDetailResponseTasks ¶
type GetHistoryDetailResponseTasks struct { Id *int32 `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type_ *string `json:"type,omitempty"` Config *GetHistoryDetailResponseConfig `json:"config,omitempty"` LinkedTasks []*string `json:"linkedTasks,omitempty"` Status *string `json:"status,omitempty"` ResultId *string `json:"resultId,omitempty"` }
type GetHistoryListResponse ¶
type GetHistoryListResponse struct {
HistoryList []*GetHistoryListResponseHistoryList `json:"historyList,omitempty"`
}
type GetHistoryListResponseHistoryList ¶
type GetHistoryListResponseHistoryList struct { ProjectId *int32 `json:"projectId,omitempty"` Id *int32 `json:"id,omitempty"` RequestType *string `json:"requestType,omitempty"` RequestId *string `json:"requestId,omitempty"` Begin *int32 `json:"begin,omitempty"` End *int32 `json:"end,omitempty"` Status *string `json:"status,omitempty"` }
type GetPipelineTrigger ¶ added in v1.5.4
type GetProjectDetailResponse ¶
type GetProjectDetailResponse struct { Id *int32 `json:"id,omitempty"` Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` Tasks []*GetProjectDetailResponseTasks `json:"tasks,omitempty"` Trigger *GetProjectTrigger `json:"trigger,omitempty"` }
type GetProjectDetailResponseConfig ¶
type GetProjectDetailResponseConfig struct { ProjectId *int32 `json:"projectId,omitempty"` StageId *int32 `json:"stageId,omitempty"` ScenarioId *int32 `json:"scenarioId,omitempty"` Target *GetProjectDetailResponseConfigTarget `json:"target,omitempty"` }
type GetProjectDetailResponseConfigTarget ¶
type GetProjectDetailResponseConfigTarget struct { Type_ *string `json:"type,omitempty"` Info *GetProjectDetailResponseConfigTargetInfo `json:"info,omitempty"` }
type GetProjectDetailResponseConfigTargetInfo ¶
type GetProjectDetailResponseConfigTargetInfo struct { Repository *string `json:"repository,omitempty"` Branch *string `json:"branch,omitempty"` Workspace *GetProjectDetailResponseConfigTargetInfoWorkspace `json:"workspace,omitempty"` ProjectName *string `json:"projectName,omitempty"` File *string `json:"file,omitempty"` Manifest *string `json:"manifest,omitempty"` FullManifest *string `json:"fullManifest,omitempty"` }
type GetProjectDetailResponseTasks ¶
type GetProjectDetailResponseTasks struct { Id *int32 `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type_ *string `json:"type,omitempty"` Config *GetProjectDetailResponseConfig `json:"config,omitempty"` LinkedTasks []*string `json:"linkedTasks,omitempty"` }
type GetProjectListInfo ¶
type GetProjectListResponse ¶
type GetProjectListResponse struct {
ProjectList []*GetProjectListInfo `json:"projectList,omitempty"`
}
type GetProjectTrigger ¶
type GetProjectTrigger struct { Repository []*GetRepositoryTrigger `json:"repository,omitempty"` Schedule []*GetScheduleTrigger `json:"schedule,omitempty"` SourcePipeline []*GetPipelineTrigger `json:"sourcepipeline,omitempty"` }
type GetRepositoryTrigger ¶ added in v1.5.4
type GetSbProjectResponse ¶
type GetSbProjectResponse struct {
ProjectList []*GetSbProjectResponseProjectList `json:"projectList,omitempty"`
}
type GetSbProjectResponseProjectList ¶
type GetSbProjectResponseProjectList struct { Id *int32 `json:"id,omitempty"` Name *string `json:"name,omitempty"` Source *GetSbProjectResponseSource `json:"source,omitempty"` }
type GetScBranchResponse ¶
type GetScBranchResponse struct {
BranchList []*GetScBranchResponseBranchList `json:"branchList,omitempty"`
}
type GetScBranchResponseBranchList ¶
type GetScBranchResponseBranchList struct {
Name *string `json:"name,omitempty"`
}
type GetScRepositoryResposne ¶
type GetScRepositoryResposne struct {
RepositoryList []*GetScBranchResponseBranchList `json:"repositoryList,omitempty"`
}
type GetScTargetInfo ¶
type GetScheduleTrigger ¶ added in v1.5.4
type GetSdProjectResponse ¶
type GetSdProjectResponse struct {
ProjectList []*GetProjectListInfo `json:"projectList,omitempty"`
}
type GetSdScenarioResponse ¶
type GetSdScenarioResponse struct {
ScenarioList []*GetSdScenarioResponseResultScenarioList `json:"scenarioList,omitempty"`
}
type GetSdScenarioResponseResultScenarioList ¶
type GetSdScenarioResponseResultScenarioList struct { Id *int32 `json:"id,omitempty"` Name *string `json:"name,omitempty"` Source *GetSdScenarioResponseResultSource `json:"source,omitempty"` }
type GetSdScenarioResponseResultSource ¶
type GetSdScenarioResponseResultSource struct { Type_ *string `json:"type,omitempty"` Target *GetSdScenarioResponseResultSourceTarget `json:"target,omitempty"` }
type GetSdStageResponse ¶
type GetSdStageResponse struct {
StageList []*GetProjectListInfo `json:"stageList,omitempty"`
}
type GetTimeZone ¶ added in v1.5.4
type GetTimeZone struct {
TimeZone []*string `json:"timeZone,omitempty"`
}
type StartPipelineResponse ¶
type StartPipelineResponse struct {
HistoryId *int32 `json:"historyId,omitempty"`
}
type V1ApiService ¶
type V1ApiService service
func (*V1ApiService) CancelProject ¶
func (a *V1ApiService) CancelProject(ctx context.Context, projectId *string, historyId *string) (*CancelPipelineResponse, error)
V1ApiService
@param projectId projectId @param historyId historyId @return *CancelPipelineResponse
func (*V1ApiService) ChangeProject ¶
func (a *V1ApiService) ChangeProject(ctx context.Context, changeProject *ChangeProject, projectId *string) (*ChangeProjectReponse, error)
V1ApiService
@param changeProject @param projectId projectId @return *ChangeProjectReponse
func (*V1ApiService) CreateProject ¶
func (a *V1ApiService) CreateProject(ctx context.Context, createProject *CreateProject) (*CreateProjectResponse, error)
V1ApiService
@param createProject @return *CreateProjectResponse
func (*V1ApiService) DeleteProject ¶
func (a *V1ApiService) DeleteProject(ctx context.Context, projectId *string) (*DeleteProjectResponse, error)
V1ApiService
@param projectId projectId @return *DeleteProjectResponse
func (*V1ApiService) GetProject ¶
func (a *V1ApiService) GetProject(ctx context.Context, projectId *string) (*GetProjectDetailResponse, error)
V1ApiService
@param projectId projectId @return *GetProjectDetailResponse
func (*V1ApiService) GetProjectHistories ¶
func (a *V1ApiService) GetProjectHistories(ctx context.Context, projectId *string) (*GetHistoryListResponse, error)
V1ApiService
@param projectId projectId @return *GetHistoryListResponse
func (*V1ApiService) GetProjectHistory ¶
func (a *V1ApiService) GetProjectHistory(ctx context.Context, projectId *string, historyId *string) (*GetHistoryDetailResponse, error)
V1ApiService
@param projectId projectId @param historyId historyId @return *GetHistoryDetailResponse
func (*V1ApiService) GetProjects ¶
func (a *V1ApiService) GetProjects(ctx context.Context) (*GetProjectListResponse, error)
V1ApiService
@return *GetProjectListResponse
func (*V1ApiService) GetSourcebuildProjects ¶
func (a *V1ApiService) GetSourcebuildProjects(ctx context.Context) (*GetSbProjectResponse, error)
V1ApiService
@return *GetSbProjectResponse
func (*V1ApiService) GetSourcecommitRepositories ¶
func (a *V1ApiService) GetSourcecommitRepositories(ctx context.Context) (*GetScRepositoryResposne, error)
V1ApiService
@return *GetScRepositoryResposne
func (*V1ApiService) GetSourcecommitRepositoryBranches ¶
func (a *V1ApiService) GetSourcecommitRepositoryBranches(ctx context.Context, repositoryName *string) (*GetScBranchResponse, error)
V1ApiService
@param repositoryName repositoryName @return *GetScBranchResponse
func (*V1ApiService) GetSourcedeployProjectScenarios ¶
func (a *V1ApiService) GetSourcedeployProjectScenarios(ctx context.Context, projectId *string, stageId *string) (*GetSdScenarioResponse, error)
V1ApiService
@param projectId projectId @param stageId stageId @return *GetSdScenarioResponse
func (*V1ApiService) GetSourcedeployProjectStages ¶
func (a *V1ApiService) GetSourcedeployProjectStages(ctx context.Context, projectId *string) (*GetSdStageResponse, error)
V1ApiService
@param projectId projectId @return *GetSdStageResponse
func (*V1ApiService) GetSourcedeployProjects ¶
func (a *V1ApiService) GetSourcedeployProjects(ctx context.Context) (*GetSdProjectResponse, error)
V1ApiService
@return *GetSdProjectResponse
func (*V1ApiService) GetTimeZone ¶ added in v1.5.4
func (a *V1ApiService) GetTimeZone(ctx context.Context) (*GetTimeZone, error)
V1ApiService
@return *GetTimeZone
func (*V1ApiService) StartProject ¶
func (a *V1ApiService) StartProject(ctx context.Context, projectId *string) (*StartPipelineResponse, error)
V1ApiService
@param projectId projectId @return *StartPipelineResponse
Source Files ¶
- api_client.go
- api_response.go
- cancel_pipeline_response.go
- change_project.go
- change_project_reponse.go
- configuration.go
- create_project.go
- create_project_config.go
- create_project_config_target.go
- create_project_config_target_info.go
- create_project_response.go
- create_project_tasks.go
- create_project_trigger.go
- delete_project_response.go
- get_history_detail_response.go
- get_history_detail_response_config.go
- get_history_detail_response_config_target.go
- get_history_detail_response_history.go
- get_history_detail_response_tasks.go
- get_history_list_response.go
- get_history_list_response_history_list.go
- get_pipeline_trigger.go
- get_project_detail_response.go
- get_project_detail_response_config.go
- get_project_detail_response_config_target.go
- get_project_detail_response_config_target_info.go
- get_project_detail_response_config_target_info_workspace.go
- get_project_detail_response_tasks.go
- get_project_list_info.go
- get_project_list_response.go
- get_project_trigger.go
- get_repository_trigger.go
- get_sb_project_response.go
- get_sb_project_response_project_list.go
- get_sb_project_response_source.go
- get_sc_branch_response.go
- get_sc_branch_response_branch_list.go
- get_sc_repository_resposne.go
- get_sc_target_info.go
- get_schedule_trigger.go
- get_sd_project_response.go
- get_sd_scenario_response.go
- get_sd_scenario_response_result_scenario_list.go
- get_sd_scenario_response_result_source.go
- get_sd_scenario_response_result_source_target.go
- get_sd_stage_response.go
- get_time_zone.go
- start_pipeline_response.go
- v1_api.go