codePipeline

package
v1.0.183 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRegion = base.RegionCnNorth1
	ServiceName   = "cp"
)

Variables

View Source
var (
	ServiceInfo = &base.ServiceInfo{
		Timeout: 5 * time.Second,
		Host:    "open.volcengineapi.com",
		Header: http.Header{
			"Accept": []string{"application/json"},
		},
		Credentials: base.Credentials{
			Region:  base.RegionCnNorth1,
			Service: ServiceName,
		},
	}
	ApiInfoList = map[string]*base.ApiInfo{
		"ListPipelines": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListPipelines"},
				"Version": []string{"2021-03-03"},
			},
		},
		"CreatePipeline": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CreatePipeline"},
				"Version": []string{"2021-03-03"},
			},
		},
		"DeletePipeline": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DeletePipeline"},
				"Version": []string{"2021-03-03"},
			},
		},
		"UpdatePipeline": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"UpdatePipeline"},
				"Version": []string{"2021-03-03"},
			},
		},
		"GetPipeline": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetPipeline"},
				"Version": []string{"2021-03-03"},
			},
		},
		"UpdatePipelineProperties": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"UpdatePipelineProperties"},
				"Version": []string{"2021-03-03"},
			},
		},
		"RunPipeline": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"RunPipeline"},
				"Version": []string{"2021-03-03"},
			},
		},
		"ListPipelineRecords": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListPipelineRecords"},
				"Version": []string{"2021-03-03"},
			},
		},
		"GetPipelineRecord": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetPipelineRecord"},
				"Version": []string{"2021-03-03"},
			},
		},
		"StopPipelineRecord": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"StopPipelineRecord"},
				"Version": []string{"2021-03-03"},
			},
		},
		"RetryPipelineRecord": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"RetryPipelineRecord"},
				"Version": []string{"2021-03-03"},
			},
		},
		"DeletePipelineRecord": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DeletePipelineRecord"},
				"Version": []string{"2021-03-03"},
			},
		},
	}
)
View Source
var DefaultInstance = NewInstance()

Functions

This section is empty.

Types

type CodePipeline

type CodePipeline struct {
	*base.Client
	// contains filtered or unexported fields
}

func NewInstance

func NewInstance() *CodePipeline

func (*CodePipeline) CloseRetry

func (p *CodePipeline) CloseRetry()

func (*CodePipeline) CreatePipeline

func (p *CodePipeline) CreatePipeline(req *CreatePipelineRequest) (*CreatePipelineResponse, error)

func (*CodePipeline) DeletePipeline

func (p *CodePipeline) DeletePipeline(req *DeletePipelineRequest) (*DeletePipelineResponse, error)

func (*CodePipeline) DeletePipelineRecord

func (p *CodePipeline) DeletePipelineRecord(req *DeletePipelineRecordRequest) (*DeletePipelineRecordResponse, error)

func (*CodePipeline) GetPipeline

func (p *CodePipeline) GetPipeline(req *GetPipelineRequest) (*GetPipelineResponse, error)

func (*CodePipeline) GetPipelineRecord

func (p *CodePipeline) GetPipelineRecord(req *GetPipelineRecordRequest) (*GetPipelineRecordResponse, error)

func (*CodePipeline) ListPipelineRecords

func (p *CodePipeline) ListPipelineRecords(req *ListPipelineRecordsRequest) (*ListPipelineRecordsResponse, error)

func (*CodePipeline) ListPipelines

func (p *CodePipeline) ListPipelines(req *ListPipelinesRequest) (*ListPipelinesResponse, error)

func (*CodePipeline) Retry

func (p *CodePipeline) Retry() bool

func (*CodePipeline) RetryPipelineRecord

func (p *CodePipeline) RetryPipelineRecord(req *RetryPipelineRecordRequest) (*RetryPipelineRecordResponse, error)

func (*CodePipeline) RunPipeline

func (p *CodePipeline) RunPipeline(req *RunPipelineRequest) (*RunPipelineResponse, error)

func (*CodePipeline) StopPipelineRecord

func (p *CodePipeline) StopPipelineRecord(req *StopPipelineRecordRequest) (*StopPipelineRecordResponse, error)

func (*CodePipeline) UpdatePipeline

func (p *CodePipeline) UpdatePipeline(req *UpdatePipelineRequest) (*UpdatePipelineResponse, error)

func (*CodePipeline) UpdatePipelineProperties

func (p *CodePipeline) UpdatePipelineProperties(req *UpdatePipelinePropertiesRequest) (*UpdatePipelinePropertiesResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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