Vendor aws-sdk-go (dep ensure) (#178)
This commit is contained in:
4713
vendor/github.com/aws/aws-sdk-go/service/codebuild/api.go
generated
vendored
Normal file
4713
vendor/github.com/aws/aws-sdk-go/service/codebuild/api.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
128
vendor/github.com/aws/aws-sdk-go/service/codebuild/codebuildiface/interface.go
generated
vendored
Normal file
128
vendor/github.com/aws/aws-sdk-go/service/codebuild/codebuildiface/interface.go
generated
vendored
Normal file
@@ -0,0 +1,128 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package codebuildiface provides an interface to enable mocking the AWS CodeBuild service client
|
||||
// for testing your code.
|
||||
//
|
||||
// It is important to note that this interface will have breaking changes
|
||||
// when the service model is updated and adds new API operations, paginators,
|
||||
// and waiters.
|
||||
package codebuildiface
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/service/codebuild"
|
||||
)
|
||||
|
||||
// CodeBuildAPI provides an interface to enable mocking the
|
||||
// codebuild.CodeBuild service client's API operation,
|
||||
// paginators, and waiters. This make unit testing your code that calls out
|
||||
// to the SDK's service client's calls easier.
|
||||
//
|
||||
// The best way to use this interface is so the SDK's service client's calls
|
||||
// can be stubbed out for unit testing your code with the SDK without needing
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // AWS CodeBuild.
|
||||
// func myFunc(svc codebuildiface.CodeBuildAPI) bool {
|
||||
// // Make svc.BatchDeleteBuilds request
|
||||
// }
|
||||
//
|
||||
// func main() {
|
||||
// sess := session.New()
|
||||
// svc := codebuild.New(sess)
|
||||
//
|
||||
// myFunc(svc)
|
||||
// }
|
||||
//
|
||||
// In your _test.go file:
|
||||
//
|
||||
// // Define a mock struct to be used in your unit tests of myFunc.
|
||||
// type mockCodeBuildClient struct {
|
||||
// codebuildiface.CodeBuildAPI
|
||||
// }
|
||||
// func (m *mockCodeBuildClient) BatchDeleteBuilds(input *codebuild.BatchDeleteBuildsInput) (*codebuild.BatchDeleteBuildsOutput, error) {
|
||||
// // mock response/functionality
|
||||
// }
|
||||
//
|
||||
// func TestMyFunc(t *testing.T) {
|
||||
// // Setup Test
|
||||
// mockSvc := &mockCodeBuildClient{}
|
||||
//
|
||||
// myfunc(mockSvc)
|
||||
//
|
||||
// // Verify myFunc's functionality
|
||||
// }
|
||||
//
|
||||
// It is important to note that this interface will have breaking changes
|
||||
// when the service model is updated and adds new API operations, paginators,
|
||||
// and waiters. Its suggested to use the pattern above for testing, or using
|
||||
// tooling to generate mocks to satisfy the interfaces.
|
||||
type CodeBuildAPI interface {
|
||||
BatchDeleteBuilds(*codebuild.BatchDeleteBuildsInput) (*codebuild.BatchDeleteBuildsOutput, error)
|
||||
BatchDeleteBuildsWithContext(aws.Context, *codebuild.BatchDeleteBuildsInput, ...request.Option) (*codebuild.BatchDeleteBuildsOutput, error)
|
||||
BatchDeleteBuildsRequest(*codebuild.BatchDeleteBuildsInput) (*request.Request, *codebuild.BatchDeleteBuildsOutput)
|
||||
|
||||
BatchGetBuilds(*codebuild.BatchGetBuildsInput) (*codebuild.BatchGetBuildsOutput, error)
|
||||
BatchGetBuildsWithContext(aws.Context, *codebuild.BatchGetBuildsInput, ...request.Option) (*codebuild.BatchGetBuildsOutput, error)
|
||||
BatchGetBuildsRequest(*codebuild.BatchGetBuildsInput) (*request.Request, *codebuild.BatchGetBuildsOutput)
|
||||
|
||||
BatchGetProjects(*codebuild.BatchGetProjectsInput) (*codebuild.BatchGetProjectsOutput, error)
|
||||
BatchGetProjectsWithContext(aws.Context, *codebuild.BatchGetProjectsInput, ...request.Option) (*codebuild.BatchGetProjectsOutput, error)
|
||||
BatchGetProjectsRequest(*codebuild.BatchGetProjectsInput) (*request.Request, *codebuild.BatchGetProjectsOutput)
|
||||
|
||||
CreateProject(*codebuild.CreateProjectInput) (*codebuild.CreateProjectOutput, error)
|
||||
CreateProjectWithContext(aws.Context, *codebuild.CreateProjectInput, ...request.Option) (*codebuild.CreateProjectOutput, error)
|
||||
CreateProjectRequest(*codebuild.CreateProjectInput) (*request.Request, *codebuild.CreateProjectOutput)
|
||||
|
||||
CreateWebhook(*codebuild.CreateWebhookInput) (*codebuild.CreateWebhookOutput, error)
|
||||
CreateWebhookWithContext(aws.Context, *codebuild.CreateWebhookInput, ...request.Option) (*codebuild.CreateWebhookOutput, error)
|
||||
CreateWebhookRequest(*codebuild.CreateWebhookInput) (*request.Request, *codebuild.CreateWebhookOutput)
|
||||
|
||||
DeleteProject(*codebuild.DeleteProjectInput) (*codebuild.DeleteProjectOutput, error)
|
||||
DeleteProjectWithContext(aws.Context, *codebuild.DeleteProjectInput, ...request.Option) (*codebuild.DeleteProjectOutput, error)
|
||||
DeleteProjectRequest(*codebuild.DeleteProjectInput) (*request.Request, *codebuild.DeleteProjectOutput)
|
||||
|
||||
DeleteWebhook(*codebuild.DeleteWebhookInput) (*codebuild.DeleteWebhookOutput, error)
|
||||
DeleteWebhookWithContext(aws.Context, *codebuild.DeleteWebhookInput, ...request.Option) (*codebuild.DeleteWebhookOutput, error)
|
||||
DeleteWebhookRequest(*codebuild.DeleteWebhookInput) (*request.Request, *codebuild.DeleteWebhookOutput)
|
||||
|
||||
InvalidateProjectCache(*codebuild.InvalidateProjectCacheInput) (*codebuild.InvalidateProjectCacheOutput, error)
|
||||
InvalidateProjectCacheWithContext(aws.Context, *codebuild.InvalidateProjectCacheInput, ...request.Option) (*codebuild.InvalidateProjectCacheOutput, error)
|
||||
InvalidateProjectCacheRequest(*codebuild.InvalidateProjectCacheInput) (*request.Request, *codebuild.InvalidateProjectCacheOutput)
|
||||
|
||||
ListBuilds(*codebuild.ListBuildsInput) (*codebuild.ListBuildsOutput, error)
|
||||
ListBuildsWithContext(aws.Context, *codebuild.ListBuildsInput, ...request.Option) (*codebuild.ListBuildsOutput, error)
|
||||
ListBuildsRequest(*codebuild.ListBuildsInput) (*request.Request, *codebuild.ListBuildsOutput)
|
||||
|
||||
ListBuildsForProject(*codebuild.ListBuildsForProjectInput) (*codebuild.ListBuildsForProjectOutput, error)
|
||||
ListBuildsForProjectWithContext(aws.Context, *codebuild.ListBuildsForProjectInput, ...request.Option) (*codebuild.ListBuildsForProjectOutput, error)
|
||||
ListBuildsForProjectRequest(*codebuild.ListBuildsForProjectInput) (*request.Request, *codebuild.ListBuildsForProjectOutput)
|
||||
|
||||
ListCuratedEnvironmentImages(*codebuild.ListCuratedEnvironmentImagesInput) (*codebuild.ListCuratedEnvironmentImagesOutput, error)
|
||||
ListCuratedEnvironmentImagesWithContext(aws.Context, *codebuild.ListCuratedEnvironmentImagesInput, ...request.Option) (*codebuild.ListCuratedEnvironmentImagesOutput, error)
|
||||
ListCuratedEnvironmentImagesRequest(*codebuild.ListCuratedEnvironmentImagesInput) (*request.Request, *codebuild.ListCuratedEnvironmentImagesOutput)
|
||||
|
||||
ListProjects(*codebuild.ListProjectsInput) (*codebuild.ListProjectsOutput, error)
|
||||
ListProjectsWithContext(aws.Context, *codebuild.ListProjectsInput, ...request.Option) (*codebuild.ListProjectsOutput, error)
|
||||
ListProjectsRequest(*codebuild.ListProjectsInput) (*request.Request, *codebuild.ListProjectsOutput)
|
||||
|
||||
StartBuild(*codebuild.StartBuildInput) (*codebuild.StartBuildOutput, error)
|
||||
StartBuildWithContext(aws.Context, *codebuild.StartBuildInput, ...request.Option) (*codebuild.StartBuildOutput, error)
|
||||
StartBuildRequest(*codebuild.StartBuildInput) (*request.Request, *codebuild.StartBuildOutput)
|
||||
|
||||
StopBuild(*codebuild.StopBuildInput) (*codebuild.StopBuildOutput, error)
|
||||
StopBuildWithContext(aws.Context, *codebuild.StopBuildInput, ...request.Option) (*codebuild.StopBuildOutput, error)
|
||||
StopBuildRequest(*codebuild.StopBuildInput) (*request.Request, *codebuild.StopBuildOutput)
|
||||
|
||||
UpdateProject(*codebuild.UpdateProjectInput) (*codebuild.UpdateProjectOutput, error)
|
||||
UpdateProjectWithContext(aws.Context, *codebuild.UpdateProjectInput, ...request.Option) (*codebuild.UpdateProjectOutput, error)
|
||||
UpdateProjectRequest(*codebuild.UpdateProjectInput) (*request.Request, *codebuild.UpdateProjectOutput)
|
||||
|
||||
UpdateWebhook(*codebuild.UpdateWebhookInput) (*codebuild.UpdateWebhookOutput, error)
|
||||
UpdateWebhookWithContext(aws.Context, *codebuild.UpdateWebhookInput, ...request.Option) (*codebuild.UpdateWebhookOutput, error)
|
||||
UpdateWebhookRequest(*codebuild.UpdateWebhookInput) (*request.Request, *codebuild.UpdateWebhookOutput)
|
||||
}
|
||||
|
||||
var _ CodeBuildAPI = (*codebuild.CodeBuild)(nil)
|
||||
85
vendor/github.com/aws/aws-sdk-go/service/codebuild/doc.go
generated
vendored
Normal file
85
vendor/github.com/aws/aws-sdk-go/service/codebuild/doc.go
generated
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package codebuild provides the client and types for making API
|
||||
// requests to AWS CodeBuild.
|
||||
//
|
||||
// AWS CodeBuild is a fully managed build service in the cloud. AWS CodeBuild
|
||||
// compiles your source code, runs unit tests, and produces artifacts that are
|
||||
// ready to deploy. AWS CodeBuild eliminates the need to provision, manage,
|
||||
// and scale your own build servers. It provides prepackaged build environments
|
||||
// for the most popular programming languages and build tools, such as Apache
|
||||
// Maven, Gradle, and more. You can also fully customize build environments
|
||||
// in AWS CodeBuild to use your own build tools. AWS CodeBuild scales automatically
|
||||
// to meet peak build requests, and you pay only for the build time you consume.
|
||||
// For more information about AWS CodeBuild, see the AWS CodeBuild User Guide.
|
||||
//
|
||||
// AWS CodeBuild supports these operations:
|
||||
//
|
||||
// * BatchDeleteBuilds: Deletes one or more builds.
|
||||
//
|
||||
// * BatchGetProjects: Gets information about one or more build projects.
|
||||
// A build project defines how AWS CodeBuild will run a build. This includes
|
||||
// information such as where to get the source code to build, the build environment
|
||||
// to use, the build commands to run, and where to store the build output.
|
||||
// A build environment represents a combination of operating system, programming
|
||||
// language runtime, and tools that AWS CodeBuild will use to run a build.
|
||||
// Also, you can add tags to build projects to help manage your resources
|
||||
// and costs.
|
||||
//
|
||||
// * CreateProject: Creates a build project.
|
||||
//
|
||||
// * CreateWebhook: For an existing AWS CodeBuild build project that has
|
||||
// its source code stored in a GitHub repository, enables AWS CodeBuild to
|
||||
// begin automatically rebuilding the source code every time a code change
|
||||
// is pushed to the repository.
|
||||
//
|
||||
// * UpdateWebhook: Changes the settings of an existing webhook.
|
||||
//
|
||||
// * DeleteProject: Deletes a build project.
|
||||
//
|
||||
// * DeleteWebhook: For an existing AWS CodeBuild build project that has
|
||||
// its source code stored in a GitHub repository, stops AWS CodeBuild from
|
||||
// automatically rebuilding the source code every time a code change is pushed
|
||||
// to the repository.
|
||||
//
|
||||
// * ListProjects: Gets a list of build project names, with each build project
|
||||
// name representing a single build project.
|
||||
//
|
||||
// * UpdateProject: Changes the settings of an existing build project.
|
||||
//
|
||||
// * BatchGetBuilds: Gets information about one or more builds.
|
||||
//
|
||||
// * ListBuilds: Gets a list of build IDs, with each build ID representing
|
||||
// a single build.
|
||||
//
|
||||
// * ListBuildsForProject: Gets a list of build IDs for the specified build
|
||||
// project, with each build ID representing a single build.
|
||||
//
|
||||
// * StartBuild: Starts running a build.
|
||||
//
|
||||
// * StopBuild: Attempts to stop running a build.
|
||||
//
|
||||
// * ListCuratedEnvironmentImages: Gets information about Docker images that
|
||||
// are managed by AWS CodeBuild.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06 for more information on this service.
|
||||
//
|
||||
// See codebuild package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/codebuild/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To contact AWS CodeBuild with the SDK use the New function to create
|
||||
// a new service client. With that client you can make API requests to the service.
|
||||
// These clients are safe to use concurrently.
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/
|
||||
//
|
||||
// See aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the AWS CodeBuild client CodeBuild for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/codebuild/#New
|
||||
package codebuild
|
||||
37
vendor/github.com/aws/aws-sdk-go/service/codebuild/errors.go
generated
vendored
Normal file
37
vendor/github.com/aws/aws-sdk-go/service/codebuild/errors.go
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package codebuild
|
||||
|
||||
const (
|
||||
|
||||
// ErrCodeAccountLimitExceededException for service response error code
|
||||
// "AccountLimitExceededException".
|
||||
//
|
||||
// An AWS service limit was exceeded for the calling AWS account.
|
||||
ErrCodeAccountLimitExceededException = "AccountLimitExceededException"
|
||||
|
||||
// ErrCodeInvalidInputException for service response error code
|
||||
// "InvalidInputException".
|
||||
//
|
||||
// The input value that was provided is not valid.
|
||||
ErrCodeInvalidInputException = "InvalidInputException"
|
||||
|
||||
// ErrCodeOAuthProviderException for service response error code
|
||||
// "OAuthProviderException".
|
||||
//
|
||||
// There was a problem with the underlying OAuth provider.
|
||||
ErrCodeOAuthProviderException = "OAuthProviderException"
|
||||
|
||||
// ErrCodeResourceAlreadyExistsException for service response error code
|
||||
// "ResourceAlreadyExistsException".
|
||||
//
|
||||
// The specified AWS resource cannot be created, because an AWS resource with
|
||||
// the same settings already exists.
|
||||
ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException"
|
||||
|
||||
// ErrCodeResourceNotFoundException for service response error code
|
||||
// "ResourceNotFoundException".
|
||||
//
|
||||
// The specified AWS resource cannot be found.
|
||||
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
|
||||
)
|
||||
58
vendor/github.com/aws/aws-sdk-go/service/codebuild/examples_test.go
generated
vendored
Normal file
58
vendor/github.com/aws/aws-sdk-go/service/codebuild/examples_test.go
generated
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package codebuild_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/awserr"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/codebuild"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ strings.Reader
|
||||
var _ aws.Config
|
||||
|
||||
func parseTime(layout, value string) *time.Time {
|
||||
t, err := time.Parse(layout, value)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return &t
|
||||
}
|
||||
|
||||
// To get information about builds
|
||||
//
|
||||
// The following example gets information about builds with the specified build IDs.
|
||||
func ExampleCodeBuild_BatchGetBuilds_shared00() {
|
||||
svc := codebuild.New(session.New())
|
||||
input := &codebuild.BatchGetBuildsInput{
|
||||
Ids: []*string{
|
||||
aws.String("codebuild-demo-project:9b0ac37f-d19e-4254-9079-f47e9a389eEX"),
|
||||
aws.String("codebuild-demo-project:b79a46f7-1473-4636-a23f-da9c45c208EX"),
|
||||
},
|
||||
}
|
||||
|
||||
result, err := svc.BatchGetBuilds(input)
|
||||
if err != nil {
|
||||
if aerr, ok := err.(awserr.Error); ok {
|
||||
switch aerr.Code() {
|
||||
case codebuild.ErrCodeInvalidInputException:
|
||||
fmt.Println(codebuild.ErrCodeInvalidInputException, aerr.Error())
|
||||
default:
|
||||
fmt.Println(aerr.Error())
|
||||
}
|
||||
} else {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println(result)
|
||||
}
|
||||
95
vendor/github.com/aws/aws-sdk-go/service/codebuild/service.go
generated
vendored
Normal file
95
vendor/github.com/aws/aws-sdk-go/service/codebuild/service.go
generated
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package codebuild
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/client"
|
||||
"github.com/aws/aws-sdk-go/aws/client/metadata"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/aws/signer/v4"
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// CodeBuild provides the API operation methods for making requests to
|
||||
// AWS CodeBuild. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// CodeBuild methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type CodeBuild struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
// Used for custom client initialization logic
|
||||
var initClient func(*client.Client)
|
||||
|
||||
// Used for custom request initialization logic
|
||||
var initRequest func(*request.Request)
|
||||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "codebuild" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
)
|
||||
|
||||
// New creates a new instance of the CodeBuild client with a session.
|
||||
// If additional configuration is needed for the client instance use the optional
|
||||
// aws.Config parameter to add your extra config.
|
||||
//
|
||||
// Example:
|
||||
// // Create a CodeBuild client from just a session.
|
||||
// svc := codebuild.New(mySession)
|
||||
//
|
||||
// // Create a CodeBuild client with additional configuration
|
||||
// svc := codebuild.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodeBuild {
|
||||
c := p.ClientConfig(EndpointsID, cfgs...)
|
||||
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
|
||||
}
|
||||
|
||||
// newClient creates, initializes and returns a new service client instance.
|
||||
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CodeBuild {
|
||||
svc := &CodeBuild{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2016-10-06",
|
||||
JSONVersion: "1.1",
|
||||
TargetPrefix: "CodeBuild_20161006",
|
||||
},
|
||||
handlers,
|
||||
),
|
||||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
|
||||
|
||||
// Run custom client initialization if present
|
||||
if initClient != nil {
|
||||
initClient(svc.Client)
|
||||
}
|
||||
|
||||
return svc
|
||||
}
|
||||
|
||||
// newRequest creates a new request for a CodeBuild operation and runs any
|
||||
// custom request initialization.
|
||||
func (c *CodeBuild) newRequest(op *request.Operation, params, data interface{}) *request.Request {
|
||||
req := c.NewRequest(op, params, data)
|
||||
|
||||
// Run custom request initialization if present
|
||||
if initRequest != nil {
|
||||
initRequest(req)
|
||||
}
|
||||
|
||||
return req
|
||||
}
|
||||
Reference in New Issue
Block a user