mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Update Go AWS SDK to the latest version
This commit is contained in:
committed by
Andrey Smirnov
parent
d08be990ef
commit
94a72b23ff
+2941
-88
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+54
@@ -84,6 +84,14 @@ type CodePipelineAPI interface {
|
||||
DeletePipelineWithContext(aws.Context, *codepipeline.DeletePipelineInput, ...request.Option) (*codepipeline.DeletePipelineOutput, error)
|
||||
DeletePipelineRequest(*codepipeline.DeletePipelineInput) (*request.Request, *codepipeline.DeletePipelineOutput)
|
||||
|
||||
DeleteWebhook(*codepipeline.DeleteWebhookInput) (*codepipeline.DeleteWebhookOutput, error)
|
||||
DeleteWebhookWithContext(aws.Context, *codepipeline.DeleteWebhookInput, ...request.Option) (*codepipeline.DeleteWebhookOutput, error)
|
||||
DeleteWebhookRequest(*codepipeline.DeleteWebhookInput) (*request.Request, *codepipeline.DeleteWebhookOutput)
|
||||
|
||||
DeregisterWebhookWithThirdParty(*codepipeline.DeregisterWebhookWithThirdPartyInput) (*codepipeline.DeregisterWebhookWithThirdPartyOutput, error)
|
||||
DeregisterWebhookWithThirdPartyWithContext(aws.Context, *codepipeline.DeregisterWebhookWithThirdPartyInput, ...request.Option) (*codepipeline.DeregisterWebhookWithThirdPartyOutput, error)
|
||||
DeregisterWebhookWithThirdPartyRequest(*codepipeline.DeregisterWebhookWithThirdPartyInput) (*request.Request, *codepipeline.DeregisterWebhookWithThirdPartyOutput)
|
||||
|
||||
DisableStageTransition(*codepipeline.DisableStageTransitionInput) (*codepipeline.DisableStageTransitionOutput, error)
|
||||
DisableStageTransitionWithContext(aws.Context, *codepipeline.DisableStageTransitionInput, ...request.Option) (*codepipeline.DisableStageTransitionOutput, error)
|
||||
DisableStageTransitionRequest(*codepipeline.DisableStageTransitionInput) (*request.Request, *codepipeline.DisableStageTransitionOutput)
|
||||
@@ -112,18 +120,48 @@ type CodePipelineAPI interface {
|
||||
GetThirdPartyJobDetailsWithContext(aws.Context, *codepipeline.GetThirdPartyJobDetailsInput, ...request.Option) (*codepipeline.GetThirdPartyJobDetailsOutput, error)
|
||||
GetThirdPartyJobDetailsRequest(*codepipeline.GetThirdPartyJobDetailsInput) (*request.Request, *codepipeline.GetThirdPartyJobDetailsOutput)
|
||||
|
||||
ListActionExecutions(*codepipeline.ListActionExecutionsInput) (*codepipeline.ListActionExecutionsOutput, error)
|
||||
ListActionExecutionsWithContext(aws.Context, *codepipeline.ListActionExecutionsInput, ...request.Option) (*codepipeline.ListActionExecutionsOutput, error)
|
||||
ListActionExecutionsRequest(*codepipeline.ListActionExecutionsInput) (*request.Request, *codepipeline.ListActionExecutionsOutput)
|
||||
|
||||
ListActionExecutionsPages(*codepipeline.ListActionExecutionsInput, func(*codepipeline.ListActionExecutionsOutput, bool) bool) error
|
||||
ListActionExecutionsPagesWithContext(aws.Context, *codepipeline.ListActionExecutionsInput, func(*codepipeline.ListActionExecutionsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListActionTypes(*codepipeline.ListActionTypesInput) (*codepipeline.ListActionTypesOutput, error)
|
||||
ListActionTypesWithContext(aws.Context, *codepipeline.ListActionTypesInput, ...request.Option) (*codepipeline.ListActionTypesOutput, error)
|
||||
ListActionTypesRequest(*codepipeline.ListActionTypesInput) (*request.Request, *codepipeline.ListActionTypesOutput)
|
||||
|
||||
ListActionTypesPages(*codepipeline.ListActionTypesInput, func(*codepipeline.ListActionTypesOutput, bool) bool) error
|
||||
ListActionTypesPagesWithContext(aws.Context, *codepipeline.ListActionTypesInput, func(*codepipeline.ListActionTypesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListPipelineExecutions(*codepipeline.ListPipelineExecutionsInput) (*codepipeline.ListPipelineExecutionsOutput, error)
|
||||
ListPipelineExecutionsWithContext(aws.Context, *codepipeline.ListPipelineExecutionsInput, ...request.Option) (*codepipeline.ListPipelineExecutionsOutput, error)
|
||||
ListPipelineExecutionsRequest(*codepipeline.ListPipelineExecutionsInput) (*request.Request, *codepipeline.ListPipelineExecutionsOutput)
|
||||
|
||||
ListPipelineExecutionsPages(*codepipeline.ListPipelineExecutionsInput, func(*codepipeline.ListPipelineExecutionsOutput, bool) bool) error
|
||||
ListPipelineExecutionsPagesWithContext(aws.Context, *codepipeline.ListPipelineExecutionsInput, func(*codepipeline.ListPipelineExecutionsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListPipelines(*codepipeline.ListPipelinesInput) (*codepipeline.ListPipelinesOutput, error)
|
||||
ListPipelinesWithContext(aws.Context, *codepipeline.ListPipelinesInput, ...request.Option) (*codepipeline.ListPipelinesOutput, error)
|
||||
ListPipelinesRequest(*codepipeline.ListPipelinesInput) (*request.Request, *codepipeline.ListPipelinesOutput)
|
||||
|
||||
ListPipelinesPages(*codepipeline.ListPipelinesInput, func(*codepipeline.ListPipelinesOutput, bool) bool) error
|
||||
ListPipelinesPagesWithContext(aws.Context, *codepipeline.ListPipelinesInput, func(*codepipeline.ListPipelinesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListTagsForResource(*codepipeline.ListTagsForResourceInput) (*codepipeline.ListTagsForResourceOutput, error)
|
||||
ListTagsForResourceWithContext(aws.Context, *codepipeline.ListTagsForResourceInput, ...request.Option) (*codepipeline.ListTagsForResourceOutput, error)
|
||||
ListTagsForResourceRequest(*codepipeline.ListTagsForResourceInput) (*request.Request, *codepipeline.ListTagsForResourceOutput)
|
||||
|
||||
ListTagsForResourcePages(*codepipeline.ListTagsForResourceInput, func(*codepipeline.ListTagsForResourceOutput, bool) bool) error
|
||||
ListTagsForResourcePagesWithContext(aws.Context, *codepipeline.ListTagsForResourceInput, func(*codepipeline.ListTagsForResourceOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListWebhooks(*codepipeline.ListWebhooksInput) (*codepipeline.ListWebhooksOutput, error)
|
||||
ListWebhooksWithContext(aws.Context, *codepipeline.ListWebhooksInput, ...request.Option) (*codepipeline.ListWebhooksOutput, error)
|
||||
ListWebhooksRequest(*codepipeline.ListWebhooksInput) (*request.Request, *codepipeline.ListWebhooksOutput)
|
||||
|
||||
ListWebhooksPages(*codepipeline.ListWebhooksInput, func(*codepipeline.ListWebhooksOutput, bool) bool) error
|
||||
ListWebhooksPagesWithContext(aws.Context, *codepipeline.ListWebhooksInput, func(*codepipeline.ListWebhooksOutput, bool) bool, ...request.Option) error
|
||||
|
||||
PollForJobs(*codepipeline.PollForJobsInput) (*codepipeline.PollForJobsOutput, error)
|
||||
PollForJobsWithContext(aws.Context, *codepipeline.PollForJobsInput, ...request.Option) (*codepipeline.PollForJobsOutput, error)
|
||||
PollForJobsRequest(*codepipeline.PollForJobsInput) (*request.Request, *codepipeline.PollForJobsOutput)
|
||||
@@ -156,6 +194,14 @@ type CodePipelineAPI interface {
|
||||
PutThirdPartyJobSuccessResultWithContext(aws.Context, *codepipeline.PutThirdPartyJobSuccessResultInput, ...request.Option) (*codepipeline.PutThirdPartyJobSuccessResultOutput, error)
|
||||
PutThirdPartyJobSuccessResultRequest(*codepipeline.PutThirdPartyJobSuccessResultInput) (*request.Request, *codepipeline.PutThirdPartyJobSuccessResultOutput)
|
||||
|
||||
PutWebhook(*codepipeline.PutWebhookInput) (*codepipeline.PutWebhookOutput, error)
|
||||
PutWebhookWithContext(aws.Context, *codepipeline.PutWebhookInput, ...request.Option) (*codepipeline.PutWebhookOutput, error)
|
||||
PutWebhookRequest(*codepipeline.PutWebhookInput) (*request.Request, *codepipeline.PutWebhookOutput)
|
||||
|
||||
RegisterWebhookWithThirdParty(*codepipeline.RegisterWebhookWithThirdPartyInput) (*codepipeline.RegisterWebhookWithThirdPartyOutput, error)
|
||||
RegisterWebhookWithThirdPartyWithContext(aws.Context, *codepipeline.RegisterWebhookWithThirdPartyInput, ...request.Option) (*codepipeline.RegisterWebhookWithThirdPartyOutput, error)
|
||||
RegisterWebhookWithThirdPartyRequest(*codepipeline.RegisterWebhookWithThirdPartyInput) (*request.Request, *codepipeline.RegisterWebhookWithThirdPartyOutput)
|
||||
|
||||
RetryStageExecution(*codepipeline.RetryStageExecutionInput) (*codepipeline.RetryStageExecutionOutput, error)
|
||||
RetryStageExecutionWithContext(aws.Context, *codepipeline.RetryStageExecutionInput, ...request.Option) (*codepipeline.RetryStageExecutionOutput, error)
|
||||
RetryStageExecutionRequest(*codepipeline.RetryStageExecutionInput) (*request.Request, *codepipeline.RetryStageExecutionOutput)
|
||||
@@ -164,6 +210,14 @@ type CodePipelineAPI interface {
|
||||
StartPipelineExecutionWithContext(aws.Context, *codepipeline.StartPipelineExecutionInput, ...request.Option) (*codepipeline.StartPipelineExecutionOutput, error)
|
||||
StartPipelineExecutionRequest(*codepipeline.StartPipelineExecutionInput) (*request.Request, *codepipeline.StartPipelineExecutionOutput)
|
||||
|
||||
TagResource(*codepipeline.TagResourceInput) (*codepipeline.TagResourceOutput, error)
|
||||
TagResourceWithContext(aws.Context, *codepipeline.TagResourceInput, ...request.Option) (*codepipeline.TagResourceOutput, error)
|
||||
TagResourceRequest(*codepipeline.TagResourceInput) (*request.Request, *codepipeline.TagResourceOutput)
|
||||
|
||||
UntagResource(*codepipeline.UntagResourceInput) (*codepipeline.UntagResourceOutput, error)
|
||||
UntagResourceWithContext(aws.Context, *codepipeline.UntagResourceInput, ...request.Option) (*codepipeline.UntagResourceOutput, error)
|
||||
UntagResourceRequest(*codepipeline.UntagResourceInput) (*request.Request, *codepipeline.UntagResourceOutput)
|
||||
|
||||
UpdatePipeline(*codepipeline.UpdatePipelineInput) (*codepipeline.UpdatePipelineOutput, error)
|
||||
UpdatePipelineWithContext(aws.Context, *codepipeline.UpdatePipelineInput, ...request.Option) (*codepipeline.UpdatePipelineOutput, error)
|
||||
UpdatePipelineRequest(*codepipeline.UpdatePipelineInput) (*request.Request, *codepipeline.UpdatePipelineOutput)
|
||||
|
||||
+33
-16
@@ -8,13 +8,13 @@
|
||||
// This is the AWS CodePipeline API Reference. This guide provides descriptions
|
||||
// of the actions and data types for AWS CodePipeline. Some functionality for
|
||||
// your pipeline is only configurable through the API. For additional information,
|
||||
// see the AWS CodePipeline User Guide (http://docs.aws.amazon.com/codepipeline/latest/userguide/welcome.html).
|
||||
// see the AWS CodePipeline User Guide (https://docs.aws.amazon.com/codepipeline/latest/userguide/welcome.html).
|
||||
//
|
||||
// You can use the AWS CodePipeline API to work with pipelines, stages, actions,
|
||||
// gates, and transitions, as described below.
|
||||
// and transitions, as described below.
|
||||
//
|
||||
// Pipelines are models of automated release processes. Each pipeline is uniquely
|
||||
// named, and consists of actions, gates, and stages.
|
||||
// named, and consists of stages, actions, and transitions.
|
||||
//
|
||||
// You can work with pipelines by calling:
|
||||
//
|
||||
@@ -31,6 +31,11 @@
|
||||
// * GetPipelineState, which returns information about the current state
|
||||
// of the stages and actions of a pipeline.
|
||||
//
|
||||
// * ListActionExecutions, which returns action-level details for past executions.
|
||||
// The details include full stage and action-level details, including individual
|
||||
// action duration, status, any errors which occurred during the execution,
|
||||
// and input and output artifact location details.
|
||||
//
|
||||
// * ListPipelines, which gets a summary of all of the pipelines associated
|
||||
// with your account.
|
||||
//
|
||||
@@ -43,24 +48,37 @@
|
||||
// * UpdatePipeline, which updates a pipeline with edits or changes to the
|
||||
// structure of the pipeline.
|
||||
//
|
||||
// Pipelines include stages, which are logical groupings of gates and actions.
|
||||
// Each stage contains one or more actions that must complete before the next
|
||||
// stage begins. A stage will result in success or failure. If a stage fails,
|
||||
// then the pipeline stops at that stage and will remain stopped until either
|
||||
// a new version of an artifact appears in the source location, or a user takes
|
||||
// action to re-run the most recent artifact through the pipeline. You can call
|
||||
// GetPipelineState, which displays the status of a pipeline, including the
|
||||
// status of stages in the pipeline, or GetPipeline, which returns the entire
|
||||
// structure of the pipeline, including the stages of that pipeline. For more
|
||||
// information about the structure of stages and actions, also refer to the
|
||||
// AWS CodePipeline Pipeline Structure Reference (http://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-structure.html).
|
||||
// Pipelines include stages. Each stage contains one or more actions that must
|
||||
// complete before the next stage begins. A stage will result in success or
|
||||
// failure. If a stage fails, then the pipeline stops at that stage and will
|
||||
// remain stopped until either a new version of an artifact appears in the source
|
||||
// location, or a user takes action to re-run the most recent artifact through
|
||||
// the pipeline. You can call GetPipelineState, which displays the status of
|
||||
// a pipeline, including the status of stages in the pipeline, or GetPipeline,
|
||||
// which returns the entire structure of the pipeline, including the stages
|
||||
// of that pipeline. For more information about the structure of stages and
|
||||
// actions, also refer to the AWS CodePipeline Pipeline Structure Reference
|
||||
// (https://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-structure.html).
|
||||
//
|
||||
// Pipeline stages include actions, which are categorized into categories such
|
||||
// as source or build actions performed within a stage of a pipeline. For example,
|
||||
// you can use a source action to import artifacts into a pipeline from a source
|
||||
// such as Amazon S3. Like stages, you do not work with actions directly in
|
||||
// most cases, but you do define and interact with actions when working with
|
||||
// pipeline operations such as CreatePipeline and GetPipelineState.
|
||||
// pipeline operations such as CreatePipeline and GetPipelineState. Valid action
|
||||
// categories are:
|
||||
//
|
||||
// * Source
|
||||
//
|
||||
// * Build
|
||||
//
|
||||
// * Test
|
||||
//
|
||||
// * Deploy
|
||||
//
|
||||
// * Approval
|
||||
//
|
||||
// * Invoke
|
||||
//
|
||||
// Pipelines also include transitions, which allow the transition of artifacts
|
||||
// from one stage to the next in a pipeline after the actions in one stage complete.
|
||||
@@ -92,7 +110,6 @@
|
||||
//
|
||||
// * PollForJobs, which determines whether there are any jobs to act upon,
|
||||
//
|
||||
//
|
||||
// * PutJobFailureResult, which provides details of a job failure, and
|
||||
//
|
||||
// * PutJobSuccessResult, which provides details of a job success.
|
||||
|
||||
+48
@@ -22,6 +22,12 @@ const (
|
||||
// The approval action has already been approved or rejected.
|
||||
ErrCodeApprovalAlreadyCompletedException = "ApprovalAlreadyCompletedException"
|
||||
|
||||
// ErrCodeConcurrentModificationException for service response error code
|
||||
// "ConcurrentModificationException".
|
||||
//
|
||||
// Unable to modify the tag due to a simultaneous update request.
|
||||
ErrCodeConcurrentModificationException = "ConcurrentModificationException"
|
||||
|
||||
// ErrCodeInvalidActionDeclarationException for service response error code
|
||||
// "InvalidActionDeclarationException".
|
||||
//
|
||||
@@ -34,6 +40,12 @@ const (
|
||||
// The approval request already received a response or has expired.
|
||||
ErrCodeInvalidApprovalTokenException = "InvalidApprovalTokenException"
|
||||
|
||||
// ErrCodeInvalidArnException for service response error code
|
||||
// "InvalidArnException".
|
||||
//
|
||||
// The specified resource ARN is invalid.
|
||||
ErrCodeInvalidArnException = "InvalidArnException"
|
||||
|
||||
// ErrCodeInvalidBlockerDeclarationException for service response error code
|
||||
// "InvalidBlockerDeclarationException".
|
||||
//
|
||||
@@ -83,6 +95,24 @@ const (
|
||||
// The specified structure was specified in an invalid format.
|
||||
ErrCodeInvalidStructureException = "InvalidStructureException"
|
||||
|
||||
// ErrCodeInvalidTagsException for service response error code
|
||||
// "InvalidTagsException".
|
||||
//
|
||||
// The specified resource tags are invalid.
|
||||
ErrCodeInvalidTagsException = "InvalidTagsException"
|
||||
|
||||
// ErrCodeInvalidWebhookAuthenticationParametersException for service response error code
|
||||
// "InvalidWebhookAuthenticationParametersException".
|
||||
//
|
||||
// The specified authentication type is in an invalid format.
|
||||
ErrCodeInvalidWebhookAuthenticationParametersException = "InvalidWebhookAuthenticationParametersException"
|
||||
|
||||
// ErrCodeInvalidWebhookFilterPatternException for service response error code
|
||||
// "InvalidWebhookFilterPatternException".
|
||||
//
|
||||
// The specified event filter rule is in an invalid format.
|
||||
ErrCodeInvalidWebhookFilterPatternException = "InvalidWebhookFilterPatternException"
|
||||
|
||||
// ErrCodeJobNotFoundException for service response error code
|
||||
// "JobNotFoundException".
|
||||
//
|
||||
@@ -129,6 +159,12 @@ const (
|
||||
// be found.
|
||||
ErrCodePipelineVersionNotFoundException = "PipelineVersionNotFoundException"
|
||||
|
||||
// ErrCodeResourceNotFoundException for service response error code
|
||||
// "ResourceNotFoundException".
|
||||
//
|
||||
// The specified resource was specified in an invalid format.
|
||||
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
|
||||
|
||||
// ErrCodeStageNotFoundException for service response error code
|
||||
// "StageNotFoundException".
|
||||
//
|
||||
@@ -144,9 +180,21 @@ const (
|
||||
// is already in progress.
|
||||
ErrCodeStageNotRetryableException = "StageNotRetryableException"
|
||||
|
||||
// ErrCodeTooManyTagsException for service response error code
|
||||
// "TooManyTagsException".
|
||||
//
|
||||
// The tags limit for a resource has been exceeded.
|
||||
ErrCodeTooManyTagsException = "TooManyTagsException"
|
||||
|
||||
// ErrCodeValidationException for service response error code
|
||||
// "ValidationException".
|
||||
//
|
||||
// The validation was specified in an invalid format.
|
||||
ErrCodeValidationException = "ValidationException"
|
||||
|
||||
// ErrCodeWebhookNotFoundException for service response error code
|
||||
// "WebhookNotFoundException".
|
||||
//
|
||||
// The specified webhook was entered in an invalid format or cannot be found.
|
||||
ErrCodeWebhookNotFoundException = "WebhookNotFoundException"
|
||||
)
|
||||
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// +build go1.10,integration
|
||||
|
||||
package codepipeline_test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/awserr"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/awstesting/integration"
|
||||
"github.com/aws/aws-sdk-go/service/codepipeline"
|
||||
)
|
||||
|
||||
var _ aws.Config
|
||||
var _ awserr.Error
|
||||
var _ request.Request
|
||||
|
||||
func TestInteg_00_ListPipelines(t *testing.T) {
|
||||
ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
defer cancelFn()
|
||||
|
||||
sess := integration.SessionWithDefaultRegion("us-west-2")
|
||||
svc := codepipeline.New(sess)
|
||||
params := &codepipeline.ListPipelinesInput{}
|
||||
_, err := svc.ListPipelinesWithContext(ctx, params)
|
||||
if err != nil {
|
||||
t.Errorf("expect no error, got %v", err)
|
||||
}
|
||||
}
|
||||
func TestInteg_01_GetPipeline(t *testing.T) {
|
||||
ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
defer cancelFn()
|
||||
|
||||
sess := integration.SessionWithDefaultRegion("us-west-2")
|
||||
svc := codepipeline.New(sess)
|
||||
params := &codepipeline.GetPipelineInput{
|
||||
Name: aws.String("fake-pipeline"),
|
||||
}
|
||||
_, err := svc.GetPipelineWithContext(ctx, params)
|
||||
if err == nil {
|
||||
t.Fatalf("expect request to fail")
|
||||
}
|
||||
aerr, ok := err.(awserr.RequestFailure)
|
||||
if !ok {
|
||||
t.Fatalf("expect awserr, was %T", err)
|
||||
}
|
||||
if len(aerr.Code()) == 0 {
|
||||
t.Errorf("expect non-empty error code")
|
||||
}
|
||||
if v := aerr.Code(); v == request.ErrCodeSerialization {
|
||||
t.Errorf("expect API error code got serialization failure")
|
||||
}
|
||||
}
|
||||
+4
-2
@@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
||||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "codepipeline" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "codepipeline" // Name of service.
|
||||
EndpointsID = ServiceName // ID to lookup a service endpoint with.
|
||||
ServiceID = "CodePipeline" // ServiceID is a unique identifer of a specific service.
|
||||
)
|
||||
|
||||
// New creates a new instance of the CodePipeline client with a session.
|
||||
@@ -55,6 +56,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
|
||||
Reference in New Issue
Block a user