vsourcepipeline

package
v1.6.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2024 License: MIT, MIT Imports: 24 Imported by: 0

README

Go API client for vsourcepipeline

<br/>https://vpcsourcepipeline.apigw.ntruss.com/api/v1

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

  • API version: 2022-05-25T13:56:57Z
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.NcpGoForNcloudClientCodegen

Installation

Put the package under your project folder and add the following in import:

"./vsourcepipeline"

Documentation for API Endpoints

All URIs are relative to https://vpcsourcepipeline.apigw.ntruss.com/api/v1

Class Method HTTP request Description
V1Api GetProjects Get /project
V1Api CreateProject Post /project
V1Api DeleteProject Delete /project/{projectId}
V1Api StartProject Post /project/{projectId}/do
V1Api GetProject Get /project/{projectId}
V1Api GetProjectHistories Get /project/{projectId}/history
V1Api CancelProject Post /project/{projectId}/history/{historyId}/cancel
V1Api GetProjectHistory Get /project/{projectId}/history/{historyId}
V1Api ChangeProject Patch /project/{projectId}
V1Api GetSourcebuildProjects Get /sourcebuild/project
V1Api GetSourcecommitRepositories Get /sourcecommit/repository
V1Api GetSourcecommitRepositoryBranches Get /sourcecommit/repository/{repositoryName}/branch
V1Api GetSourcedeployProjects Get /sourcedeploy/project
V1Api GetSourcedeployProjectStages Get /sourcedeploy/project/{projectId}/stage
V1Api GetSourcedeployProjectScenarios Get /sourcedeploy/project/{projectId}/stage/{stageId}/scenario
V1Api GetTimeZone Get /timeZone

Documentation For Models

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

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

func (c *APIClient) ChangeBasePath(path string)

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 GetPipelineTrigger struct {
	Id *int32 `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`
}

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 GetProjectDetailResponseConfigTargetInfoWorkspace

type GetProjectDetailResponseConfigTargetInfoWorkspace struct {
	Id *string `json:"id,omitempty"`

	Name *string `json:"name,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 GetProjectListInfo struct {
	Id *int32 `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`
}

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 GetRepositoryTrigger struct {
	Type_ *string `json:"type,omitempty"`

	Name *string `json:"name,omitempty"`

	Branch *string `json:"branch,omitempty"`
}

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 GetSbProjectResponseSource

type GetSbProjectResponseSource struct {
	Type_ *string `json:"type,omitempty"`

	Repository *string `json:"repository,omitempty"`

	Branch *string `json:"branch,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 GetScTargetInfo struct {
	Repository *string `json:"repository,omitempty"`

	Branch *string `json:"branch,omitempty"`
}

type GetScheduleTrigger added in v1.5.4

type GetScheduleTrigger struct {
	Day []*string `json:"day,omitempty"`

	Time *string `json:"time,omitempty"`

	TimeZone *string `json:"timeZone,omitempty"`

	ScheduleOnlyWithChange *bool `json:"scheduleOnlyWithChange,omitempty"`
}

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 GetSdScenarioResponseResultSourceTarget

type GetSdScenarioResponseResultSourceTarget struct {
	ProjectName *string `json:"projectName,omitempty"`

	Manifest []*string `json:"manifest,omitempty"`

	File *string `json:"file,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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL