Vendor aws-sdk-go (dep ensure) (#178)

This commit is contained in:
Onur Filiz
2018-04-27 18:18:36 -07:00
committed by Robbie Zhang
parent 228a1f7a5f
commit 8d67098d06
2785 changed files with 1973570 additions and 25 deletions

3641
vendor/github.com/aws/aws-sdk-go/service/codestar/api.go generated vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,136 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package codestariface provides an interface to enable mocking the AWS CodeStar 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 codestariface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/codestar"
)
// CodeStarAPI provides an interface to enable mocking the
// codestar.CodeStar 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 CodeStar.
// func myFunc(svc codestariface.CodeStarAPI) bool {
// // Make svc.AssociateTeamMember request
// }
//
// func main() {
// sess := session.New()
// svc := codestar.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockCodeStarClient struct {
// codestariface.CodeStarAPI
// }
// func (m *mockCodeStarClient) AssociateTeamMember(input *codestar.AssociateTeamMemberInput) (*codestar.AssociateTeamMemberOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockCodeStarClient{}
//
// 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 CodeStarAPI interface {
AssociateTeamMember(*codestar.AssociateTeamMemberInput) (*codestar.AssociateTeamMemberOutput, error)
AssociateTeamMemberWithContext(aws.Context, *codestar.AssociateTeamMemberInput, ...request.Option) (*codestar.AssociateTeamMemberOutput, error)
AssociateTeamMemberRequest(*codestar.AssociateTeamMemberInput) (*request.Request, *codestar.AssociateTeamMemberOutput)
CreateProject(*codestar.CreateProjectInput) (*codestar.CreateProjectOutput, error)
CreateProjectWithContext(aws.Context, *codestar.CreateProjectInput, ...request.Option) (*codestar.CreateProjectOutput, error)
CreateProjectRequest(*codestar.CreateProjectInput) (*request.Request, *codestar.CreateProjectOutput)
CreateUserProfile(*codestar.CreateUserProfileInput) (*codestar.CreateUserProfileOutput, error)
CreateUserProfileWithContext(aws.Context, *codestar.CreateUserProfileInput, ...request.Option) (*codestar.CreateUserProfileOutput, error)
CreateUserProfileRequest(*codestar.CreateUserProfileInput) (*request.Request, *codestar.CreateUserProfileOutput)
DeleteProject(*codestar.DeleteProjectInput) (*codestar.DeleteProjectOutput, error)
DeleteProjectWithContext(aws.Context, *codestar.DeleteProjectInput, ...request.Option) (*codestar.DeleteProjectOutput, error)
DeleteProjectRequest(*codestar.DeleteProjectInput) (*request.Request, *codestar.DeleteProjectOutput)
DeleteUserProfile(*codestar.DeleteUserProfileInput) (*codestar.DeleteUserProfileOutput, error)
DeleteUserProfileWithContext(aws.Context, *codestar.DeleteUserProfileInput, ...request.Option) (*codestar.DeleteUserProfileOutput, error)
DeleteUserProfileRequest(*codestar.DeleteUserProfileInput) (*request.Request, *codestar.DeleteUserProfileOutput)
DescribeProject(*codestar.DescribeProjectInput) (*codestar.DescribeProjectOutput, error)
DescribeProjectWithContext(aws.Context, *codestar.DescribeProjectInput, ...request.Option) (*codestar.DescribeProjectOutput, error)
DescribeProjectRequest(*codestar.DescribeProjectInput) (*request.Request, *codestar.DescribeProjectOutput)
DescribeUserProfile(*codestar.DescribeUserProfileInput) (*codestar.DescribeUserProfileOutput, error)
DescribeUserProfileWithContext(aws.Context, *codestar.DescribeUserProfileInput, ...request.Option) (*codestar.DescribeUserProfileOutput, error)
DescribeUserProfileRequest(*codestar.DescribeUserProfileInput) (*request.Request, *codestar.DescribeUserProfileOutput)
DisassociateTeamMember(*codestar.DisassociateTeamMemberInput) (*codestar.DisassociateTeamMemberOutput, error)
DisassociateTeamMemberWithContext(aws.Context, *codestar.DisassociateTeamMemberInput, ...request.Option) (*codestar.DisassociateTeamMemberOutput, error)
DisassociateTeamMemberRequest(*codestar.DisassociateTeamMemberInput) (*request.Request, *codestar.DisassociateTeamMemberOutput)
ListProjects(*codestar.ListProjectsInput) (*codestar.ListProjectsOutput, error)
ListProjectsWithContext(aws.Context, *codestar.ListProjectsInput, ...request.Option) (*codestar.ListProjectsOutput, error)
ListProjectsRequest(*codestar.ListProjectsInput) (*request.Request, *codestar.ListProjectsOutput)
ListResources(*codestar.ListResourcesInput) (*codestar.ListResourcesOutput, error)
ListResourcesWithContext(aws.Context, *codestar.ListResourcesInput, ...request.Option) (*codestar.ListResourcesOutput, error)
ListResourcesRequest(*codestar.ListResourcesInput) (*request.Request, *codestar.ListResourcesOutput)
ListTagsForProject(*codestar.ListTagsForProjectInput) (*codestar.ListTagsForProjectOutput, error)
ListTagsForProjectWithContext(aws.Context, *codestar.ListTagsForProjectInput, ...request.Option) (*codestar.ListTagsForProjectOutput, error)
ListTagsForProjectRequest(*codestar.ListTagsForProjectInput) (*request.Request, *codestar.ListTagsForProjectOutput)
ListTeamMembers(*codestar.ListTeamMembersInput) (*codestar.ListTeamMembersOutput, error)
ListTeamMembersWithContext(aws.Context, *codestar.ListTeamMembersInput, ...request.Option) (*codestar.ListTeamMembersOutput, error)
ListTeamMembersRequest(*codestar.ListTeamMembersInput) (*request.Request, *codestar.ListTeamMembersOutput)
ListUserProfiles(*codestar.ListUserProfilesInput) (*codestar.ListUserProfilesOutput, error)
ListUserProfilesWithContext(aws.Context, *codestar.ListUserProfilesInput, ...request.Option) (*codestar.ListUserProfilesOutput, error)
ListUserProfilesRequest(*codestar.ListUserProfilesInput) (*request.Request, *codestar.ListUserProfilesOutput)
TagProject(*codestar.TagProjectInput) (*codestar.TagProjectOutput, error)
TagProjectWithContext(aws.Context, *codestar.TagProjectInput, ...request.Option) (*codestar.TagProjectOutput, error)
TagProjectRequest(*codestar.TagProjectInput) (*request.Request, *codestar.TagProjectOutput)
UntagProject(*codestar.UntagProjectInput) (*codestar.UntagProjectOutput, error)
UntagProjectWithContext(aws.Context, *codestar.UntagProjectInput, ...request.Option) (*codestar.UntagProjectOutput, error)
UntagProjectRequest(*codestar.UntagProjectInput) (*request.Request, *codestar.UntagProjectOutput)
UpdateProject(*codestar.UpdateProjectInput) (*codestar.UpdateProjectOutput, error)
UpdateProjectWithContext(aws.Context, *codestar.UpdateProjectInput, ...request.Option) (*codestar.UpdateProjectOutput, error)
UpdateProjectRequest(*codestar.UpdateProjectInput) (*request.Request, *codestar.UpdateProjectOutput)
UpdateTeamMember(*codestar.UpdateTeamMemberInput) (*codestar.UpdateTeamMemberOutput, error)
UpdateTeamMemberWithContext(aws.Context, *codestar.UpdateTeamMemberInput, ...request.Option) (*codestar.UpdateTeamMemberOutput, error)
UpdateTeamMemberRequest(*codestar.UpdateTeamMemberInput) (*request.Request, *codestar.UpdateTeamMemberOutput)
UpdateUserProfile(*codestar.UpdateUserProfileInput) (*codestar.UpdateUserProfileOutput, error)
UpdateUserProfileWithContext(aws.Context, *codestar.UpdateUserProfileInput, ...request.Option) (*codestar.UpdateUserProfileOutput, error)
UpdateUserProfileRequest(*codestar.UpdateUserProfileInput) (*request.Request, *codestar.UpdateUserProfileOutput)
}
var _ CodeStarAPI = (*codestar.CodeStar)(nil)

View File

@@ -0,0 +1,76 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package codestar provides the client and types for making API
// requests to AWS CodeStar.
//
// This is the API reference for AWS CodeStar. This reference provides descriptions
// of the operations and data types for the AWS CodeStar API along with usage
// examples.
//
// You can use the AWS CodeStar API to work with:
//
// Projects and their resources, by calling the following:
//
// * DeleteProject, which deletes a project.
//
// * DescribeProject, which lists the attributes of a project.
//
// * ListProjects, which lists all projects associated with your AWS account.
//
// * ListResources, which lists the resources associated with a project.
//
// * ListTagsForProject, which lists the tags associated with a project.
//
// * TagProject, which adds tags to a project.
//
// * UntagProject, which removes tags from a project.
//
// * UpdateProject, which updates the attributes of a project.
//
// Teams and team members, by calling the following:
//
// * AssociateTeamMember, which adds an IAM user to the team for a project.
//
// * DisassociateTeamMember, which removes an IAM user from the team for
// a project.
//
// * ListTeamMembers, which lists all the IAM users in the team for a project,
// including their roles and attributes.
//
// * UpdateTeamMember, which updates a team member's attributes in a project.
//
// Users, by calling the following:
//
// * CreateUserProfile, which creates a user profile that contains data associated
// with the user across all projects.
//
// * DeleteUserProfile, which deletes all user profile information across
// all projects.
//
// * DescribeUserProfile, which describes the profile of a user.
//
// * ListUserProfiles, which lists all user profiles.
//
// * UpdateUserProfile, which updates the profile for a user.
//
// See https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19 for more information on this service.
//
// See codestar package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/codestar/
//
// Using the Client
//
// To contact AWS CodeStar 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 CodeStar client CodeStar for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/codestar/#New
package codestar

View File

@@ -0,0 +1,91 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package codestar
const (
// ErrCodeConcurrentModificationException for service response error code
// "ConcurrentModificationException".
//
// Another modification is being made. That modification must complete before
// you can make your change.
ErrCodeConcurrentModificationException = "ConcurrentModificationException"
// ErrCodeInvalidNextTokenException for service response error code
// "InvalidNextTokenException".
//
// The next token is not valid.
ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
// ErrCodeInvalidServiceRoleException for service response error code
// "InvalidServiceRoleException".
//
// The service role is not valid.
ErrCodeInvalidServiceRoleException = "InvalidServiceRoleException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// A resource limit has been exceeded.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeProjectAlreadyExistsException for service response error code
// "ProjectAlreadyExistsException".
//
// An AWS CodeStar project with the same ID already exists in this region for
// the AWS account. AWS CodeStar project IDs must be unique within a region
// for the AWS account.
ErrCodeProjectAlreadyExistsException = "ProjectAlreadyExistsException"
// ErrCodeProjectConfigurationException for service response error code
// "ProjectConfigurationException".
//
// Project configuration information is required but not specified.
ErrCodeProjectConfigurationException = "ProjectConfigurationException"
// ErrCodeProjectCreationFailedException for service response error code
// "ProjectCreationFailedException".
//
// The project creation request was valid, but a nonspecific exception or error
// occurred during project creation. The project could not be created in AWS
// CodeStar.
ErrCodeProjectCreationFailedException = "ProjectCreationFailedException"
// ErrCodeProjectNotFoundException for service response error code
// "ProjectNotFoundException".
//
// The specified AWS CodeStar project was not found.
ErrCodeProjectNotFoundException = "ProjectNotFoundException"
// ErrCodeTeamMemberAlreadyAssociatedException for service response error code
// "TeamMemberAlreadyAssociatedException".
//
// The team member is already associated with a role in this project.
ErrCodeTeamMemberAlreadyAssociatedException = "TeamMemberAlreadyAssociatedException"
// ErrCodeTeamMemberNotFoundException for service response error code
// "TeamMemberNotFoundException".
//
// The specified team member was not found.
ErrCodeTeamMemberNotFoundException = "TeamMemberNotFoundException"
// ErrCodeUserProfileAlreadyExistsException for service response error code
// "UserProfileAlreadyExistsException".
//
// A user profile with that name already exists in this region for the AWS account.
// AWS CodeStar user profile names must be unique within a region for the AWS
// account.
ErrCodeUserProfileAlreadyExistsException = "UserProfileAlreadyExistsException"
// ErrCodeUserProfileNotFoundException for service response error code
// "UserProfileNotFoundException".
//
// The user profile was not found.
ErrCodeUserProfileNotFoundException = "UserProfileNotFoundException"
// ErrCodeValidationException for service response error code
// "ValidationException".
//
// The specified input is either not valid, or it could not be validated.
ErrCodeValidationException = "ValidationException"
)

View File

@@ -0,0 +1,95 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package codestar
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"
)
// CodeStar provides the API operation methods for making requests to
// AWS CodeStar. See this package's package overview docs
// for details on the service.
//
// CodeStar methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type CodeStar 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 = "codestar" // Service endpoint prefix API calls made to.
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)
// New creates a new instance of the CodeStar 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 CodeStar client from just a session.
// svc := codestar.New(mySession)
//
// // Create a CodeStar client with additional configuration
// svc := codestar.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodeStar {
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) *CodeStar {
svc := &CodeStar{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
APIVersion: "2017-04-19",
JSONVersion: "1.1",
TargetPrefix: "CodeStar_20170419",
},
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 CodeStar operation and runs any
// custom request initialization.
func (c *CodeStar) 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
}