Update vendored deps, including AWS SDK, openpgp, ftp, ...

This commit is contained in:
Andrey Smirnov
2018-04-05 17:46:45 +03:00
parent cef4fefc40
commit 0e6ee35942
1497 changed files with 450721 additions and 68034 deletions
File diff suppressed because it is too large Load Diff
+54
View File
@@ -0,0 +1,54 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package workmail provides the client and types for making API
// requests to Amazon WorkMail.
//
// Amazon WorkMail is a secure, managed business email and calendaring service
// with support for existing desktop and mobile email clients. You can access
// your email, contacts, and calendars using Microsoft Outlook, your browser,
// or their native iOS and Android email applications. You can integrate Amazon
// WorkMail with your existing corporate directory and control both the keys
// that encrypt your data and the location in which your data is stored.
//
// The Amazon WorkMail API is designed for the following scenarios:
//
// * Listing and describing organizations
//
// * Managing users
//
// * Managing groups
//
// * Managing resources
//
// All Amazon WorkMail API actions are Amazon-authenticated and certificate-signed.
// They not only require the use of the AWS SDK, but also allow for the exclusive
// use of IAM users and roles to help facilitate access, trust, and permission
// policies. By creating a role and allowing an IAM user to access the Amazon
// WorkMail site, the IAM user gains full administrative visibility into the
// entire Amazon WorkMail organization (or as set in the IAM policy). This includes,
// but is not limited to, the ability to create, update, and delete users, groups,
// and resources. This allows developers to perform the scenarios listed above,
// as well as give users the ability to grant access on a selective basis using
// the IAM model.
//
// See https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01 for more information on this service.
//
// See workmail package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/workmail/
//
// Using the Client
//
// To contact Amazon WorkMail 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 Amazon WorkMail client WorkMail for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/workmail/#New
package workmail
+113
View File
@@ -0,0 +1,113 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package workmail
const (
// ErrCodeDirectoryServiceAuthenticationFailedException for service response error code
// "DirectoryServiceAuthenticationFailedException".
//
// The Directory Service doesn't recognize the credentials supplied by the Amazon
// WorkMail service.
ErrCodeDirectoryServiceAuthenticationFailedException = "DirectoryServiceAuthenticationFailedException"
// ErrCodeDirectoryUnavailableException for service response error code
// "DirectoryUnavailableException".
//
// The directory that you are trying to perform operations on isn't available.
ErrCodeDirectoryUnavailableException = "DirectoryUnavailableException"
// ErrCodeEmailAddressInUseException for service response error code
// "EmailAddressInUseException".
//
// The email address that you're trying to assign is already created for a different
// user, group, or resource.
ErrCodeEmailAddressInUseException = "EmailAddressInUseException"
// ErrCodeEntityAlreadyRegisteredException for service response error code
// "EntityAlreadyRegisteredException".
//
// The user, group, or resource that you're trying to register is already registered.
ErrCodeEntityAlreadyRegisteredException = "EntityAlreadyRegisteredException"
// ErrCodeEntityNotFoundException for service response error code
// "EntityNotFoundException".
//
// The identifier supplied for the entity is valid, but it does not exist in
// your organization.
ErrCodeEntityNotFoundException = "EntityNotFoundException"
// ErrCodeEntityStateException for service response error code
// "EntityStateException".
//
// You are performing an operation on an entity that isn't in the expected state,
// such as trying to update a deleted user.
ErrCodeEntityStateException = "EntityStateException"
// ErrCodeInvalidConfigurationException for service response error code
// "InvalidConfigurationException".
//
// The configuration for a resource isn't valid. A resource must either be able
// to auto-respond to requests or have at least one delegate associated that
// can do it on its behalf.
ErrCodeInvalidConfigurationException = "InvalidConfigurationException"
// ErrCodeInvalidParameterException for service response error code
// "InvalidParameterException".
//
// One or more of the input parameters don't match the service's restrictions.
ErrCodeInvalidParameterException = "InvalidParameterException"
// ErrCodeInvalidPasswordException for service response error code
// "InvalidPasswordException".
//
// The supplied password doesn't match the minimum security constraints, such
// as length or use of special characters.
ErrCodeInvalidPasswordException = "InvalidPasswordException"
// ErrCodeMailDomainNotFoundException for service response error code
// "MailDomainNotFoundException".
//
// For an email or alias to be created in Amazon WorkMail, the included domain
// must be defined in the organization.
ErrCodeMailDomainNotFoundException = "MailDomainNotFoundException"
// ErrCodeMailDomainStateException for service response error code
// "MailDomainStateException".
//
// After a domain has been added to the organization, it must be verified. The
// domain is not yet verified.
ErrCodeMailDomainStateException = "MailDomainStateException"
// ErrCodeNameAvailabilityException for service response error code
// "NameAvailabilityException".
//
// The entity (user, group, or user) name isn't unique in Amazon WorkMail.
ErrCodeNameAvailabilityException = "NameAvailabilityException"
// ErrCodeOrganizationNotFoundException for service response error code
// "OrganizationNotFoundException".
//
// An operation received a valid organization identifier that either doesn't
// belong or exist in the system.
ErrCodeOrganizationNotFoundException = "OrganizationNotFoundException"
// ErrCodeOrganizationStateException for service response error code
// "OrganizationStateException".
//
// The organization must have a valid state (Active or Synchronizing) to perform
// certain operations on the organization or its entities.
ErrCodeOrganizationStateException = "OrganizationStateException"
// ErrCodeReservedNameException for service response error code
// "ReservedNameException".
//
// This entity name is not allowed in Amazon WorkMail.
ErrCodeReservedNameException = "ReservedNameException"
// ErrCodeUnsupportedOperationException for service response error code
// "UnsupportedOperationException".
//
// You can't perform a write operation against a read-only directory.
ErrCodeUnsupportedOperationException = "UnsupportedOperationException"
)
+95
View File
@@ -0,0 +1,95 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package workmail
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"
)
// WorkMail provides the API operation methods for making requests to
// Amazon WorkMail. See this package's package overview docs
// for details on the service.
//
// WorkMail methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type WorkMail 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 = "workmail" // Service endpoint prefix API calls made to.
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)
// New creates a new instance of the WorkMail 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 WorkMail client from just a session.
// svc := workmail.New(mySession)
//
// // Create a WorkMail client with additional configuration
// svc := workmail.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *WorkMail {
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) *WorkMail {
svc := &WorkMail{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
APIVersion: "2017-10-01",
JSONVersion: "1.1",
TargetPrefix: "WorkMailService",
},
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 WorkMail operation and runs any
// custom request initialization.
func (c *WorkMail) 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
}
@@ -0,0 +1,194 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package workmailiface provides an interface to enable mocking the Amazon WorkMail 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 workmailiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/workmail"
)
// WorkMailAPI provides an interface to enable mocking the
// workmail.WorkMail 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
// // Amazon WorkMail.
// func myFunc(svc workmailiface.WorkMailAPI) bool {
// // Make svc.AssociateDelegateToResource request
// }
//
// func main() {
// sess := session.New()
// svc := workmail.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockWorkMailClient struct {
// workmailiface.WorkMailAPI
// }
// func (m *mockWorkMailClient) AssociateDelegateToResource(input *workmail.AssociateDelegateToResourceInput) (*workmail.AssociateDelegateToResourceOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockWorkMailClient{}
//
// 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 WorkMailAPI interface {
AssociateDelegateToResource(*workmail.AssociateDelegateToResourceInput) (*workmail.AssociateDelegateToResourceOutput, error)
AssociateDelegateToResourceWithContext(aws.Context, *workmail.AssociateDelegateToResourceInput, ...request.Option) (*workmail.AssociateDelegateToResourceOutput, error)
AssociateDelegateToResourceRequest(*workmail.AssociateDelegateToResourceInput) (*request.Request, *workmail.AssociateDelegateToResourceOutput)
AssociateMemberToGroup(*workmail.AssociateMemberToGroupInput) (*workmail.AssociateMemberToGroupOutput, error)
AssociateMemberToGroupWithContext(aws.Context, *workmail.AssociateMemberToGroupInput, ...request.Option) (*workmail.AssociateMemberToGroupOutput, error)
AssociateMemberToGroupRequest(*workmail.AssociateMemberToGroupInput) (*request.Request, *workmail.AssociateMemberToGroupOutput)
CreateAlias(*workmail.CreateAliasInput) (*workmail.CreateAliasOutput, error)
CreateAliasWithContext(aws.Context, *workmail.CreateAliasInput, ...request.Option) (*workmail.CreateAliasOutput, error)
CreateAliasRequest(*workmail.CreateAliasInput) (*request.Request, *workmail.CreateAliasOutput)
CreateGroup(*workmail.CreateGroupInput) (*workmail.CreateGroupOutput, error)
CreateGroupWithContext(aws.Context, *workmail.CreateGroupInput, ...request.Option) (*workmail.CreateGroupOutput, error)
CreateGroupRequest(*workmail.CreateGroupInput) (*request.Request, *workmail.CreateGroupOutput)
CreateResource(*workmail.CreateResourceInput) (*workmail.CreateResourceOutput, error)
CreateResourceWithContext(aws.Context, *workmail.CreateResourceInput, ...request.Option) (*workmail.CreateResourceOutput, error)
CreateResourceRequest(*workmail.CreateResourceInput) (*request.Request, *workmail.CreateResourceOutput)
CreateUser(*workmail.CreateUserInput) (*workmail.CreateUserOutput, error)
CreateUserWithContext(aws.Context, *workmail.CreateUserInput, ...request.Option) (*workmail.CreateUserOutput, error)
CreateUserRequest(*workmail.CreateUserInput) (*request.Request, *workmail.CreateUserOutput)
DeleteAlias(*workmail.DeleteAliasInput) (*workmail.DeleteAliasOutput, error)
DeleteAliasWithContext(aws.Context, *workmail.DeleteAliasInput, ...request.Option) (*workmail.DeleteAliasOutput, error)
DeleteAliasRequest(*workmail.DeleteAliasInput) (*request.Request, *workmail.DeleteAliasOutput)
DeleteGroup(*workmail.DeleteGroupInput) (*workmail.DeleteGroupOutput, error)
DeleteGroupWithContext(aws.Context, *workmail.DeleteGroupInput, ...request.Option) (*workmail.DeleteGroupOutput, error)
DeleteGroupRequest(*workmail.DeleteGroupInput) (*request.Request, *workmail.DeleteGroupOutput)
DeleteResource(*workmail.DeleteResourceInput) (*workmail.DeleteResourceOutput, error)
DeleteResourceWithContext(aws.Context, *workmail.DeleteResourceInput, ...request.Option) (*workmail.DeleteResourceOutput, error)
DeleteResourceRequest(*workmail.DeleteResourceInput) (*request.Request, *workmail.DeleteResourceOutput)
DeleteUser(*workmail.DeleteUserInput) (*workmail.DeleteUserOutput, error)
DeleteUserWithContext(aws.Context, *workmail.DeleteUserInput, ...request.Option) (*workmail.DeleteUserOutput, error)
DeleteUserRequest(*workmail.DeleteUserInput) (*request.Request, *workmail.DeleteUserOutput)
DeregisterFromWorkMail(*workmail.DeregisterFromWorkMailInput) (*workmail.DeregisterFromWorkMailOutput, error)
DeregisterFromWorkMailWithContext(aws.Context, *workmail.DeregisterFromWorkMailInput, ...request.Option) (*workmail.DeregisterFromWorkMailOutput, error)
DeregisterFromWorkMailRequest(*workmail.DeregisterFromWorkMailInput) (*request.Request, *workmail.DeregisterFromWorkMailOutput)
DescribeGroup(*workmail.DescribeGroupInput) (*workmail.DescribeGroupOutput, error)
DescribeGroupWithContext(aws.Context, *workmail.DescribeGroupInput, ...request.Option) (*workmail.DescribeGroupOutput, error)
DescribeGroupRequest(*workmail.DescribeGroupInput) (*request.Request, *workmail.DescribeGroupOutput)
DescribeOrganization(*workmail.DescribeOrganizationInput) (*workmail.DescribeOrganizationOutput, error)
DescribeOrganizationWithContext(aws.Context, *workmail.DescribeOrganizationInput, ...request.Option) (*workmail.DescribeOrganizationOutput, error)
DescribeOrganizationRequest(*workmail.DescribeOrganizationInput) (*request.Request, *workmail.DescribeOrganizationOutput)
DescribeResource(*workmail.DescribeResourceInput) (*workmail.DescribeResourceOutput, error)
DescribeResourceWithContext(aws.Context, *workmail.DescribeResourceInput, ...request.Option) (*workmail.DescribeResourceOutput, error)
DescribeResourceRequest(*workmail.DescribeResourceInput) (*request.Request, *workmail.DescribeResourceOutput)
DescribeUser(*workmail.DescribeUserInput) (*workmail.DescribeUserOutput, error)
DescribeUserWithContext(aws.Context, *workmail.DescribeUserInput, ...request.Option) (*workmail.DescribeUserOutput, error)
DescribeUserRequest(*workmail.DescribeUserInput) (*request.Request, *workmail.DescribeUserOutput)
DisassociateDelegateFromResource(*workmail.DisassociateDelegateFromResourceInput) (*workmail.DisassociateDelegateFromResourceOutput, error)
DisassociateDelegateFromResourceWithContext(aws.Context, *workmail.DisassociateDelegateFromResourceInput, ...request.Option) (*workmail.DisassociateDelegateFromResourceOutput, error)
DisassociateDelegateFromResourceRequest(*workmail.DisassociateDelegateFromResourceInput) (*request.Request, *workmail.DisassociateDelegateFromResourceOutput)
DisassociateMemberFromGroup(*workmail.DisassociateMemberFromGroupInput) (*workmail.DisassociateMemberFromGroupOutput, error)
DisassociateMemberFromGroupWithContext(aws.Context, *workmail.DisassociateMemberFromGroupInput, ...request.Option) (*workmail.DisassociateMemberFromGroupOutput, error)
DisassociateMemberFromGroupRequest(*workmail.DisassociateMemberFromGroupInput) (*request.Request, *workmail.DisassociateMemberFromGroupOutput)
ListAliases(*workmail.ListAliasesInput) (*workmail.ListAliasesOutput, error)
ListAliasesWithContext(aws.Context, *workmail.ListAliasesInput, ...request.Option) (*workmail.ListAliasesOutput, error)
ListAliasesRequest(*workmail.ListAliasesInput) (*request.Request, *workmail.ListAliasesOutput)
ListAliasesPages(*workmail.ListAliasesInput, func(*workmail.ListAliasesOutput, bool) bool) error
ListAliasesPagesWithContext(aws.Context, *workmail.ListAliasesInput, func(*workmail.ListAliasesOutput, bool) bool, ...request.Option) error
ListGroupMembers(*workmail.ListGroupMembersInput) (*workmail.ListGroupMembersOutput, error)
ListGroupMembersWithContext(aws.Context, *workmail.ListGroupMembersInput, ...request.Option) (*workmail.ListGroupMembersOutput, error)
ListGroupMembersRequest(*workmail.ListGroupMembersInput) (*request.Request, *workmail.ListGroupMembersOutput)
ListGroupMembersPages(*workmail.ListGroupMembersInput, func(*workmail.ListGroupMembersOutput, bool) bool) error
ListGroupMembersPagesWithContext(aws.Context, *workmail.ListGroupMembersInput, func(*workmail.ListGroupMembersOutput, bool) bool, ...request.Option) error
ListGroups(*workmail.ListGroupsInput) (*workmail.ListGroupsOutput, error)
ListGroupsWithContext(aws.Context, *workmail.ListGroupsInput, ...request.Option) (*workmail.ListGroupsOutput, error)
ListGroupsRequest(*workmail.ListGroupsInput) (*request.Request, *workmail.ListGroupsOutput)
ListGroupsPages(*workmail.ListGroupsInput, func(*workmail.ListGroupsOutput, bool) bool) error
ListGroupsPagesWithContext(aws.Context, *workmail.ListGroupsInput, func(*workmail.ListGroupsOutput, bool) bool, ...request.Option) error
ListOrganizations(*workmail.ListOrganizationsInput) (*workmail.ListOrganizationsOutput, error)
ListOrganizationsWithContext(aws.Context, *workmail.ListOrganizationsInput, ...request.Option) (*workmail.ListOrganizationsOutput, error)
ListOrganizationsRequest(*workmail.ListOrganizationsInput) (*request.Request, *workmail.ListOrganizationsOutput)
ListOrganizationsPages(*workmail.ListOrganizationsInput, func(*workmail.ListOrganizationsOutput, bool) bool) error
ListOrganizationsPagesWithContext(aws.Context, *workmail.ListOrganizationsInput, func(*workmail.ListOrganizationsOutput, bool) bool, ...request.Option) error
ListResourceDelegates(*workmail.ListResourceDelegatesInput) (*workmail.ListResourceDelegatesOutput, error)
ListResourceDelegatesWithContext(aws.Context, *workmail.ListResourceDelegatesInput, ...request.Option) (*workmail.ListResourceDelegatesOutput, error)
ListResourceDelegatesRequest(*workmail.ListResourceDelegatesInput) (*request.Request, *workmail.ListResourceDelegatesOutput)
ListResources(*workmail.ListResourcesInput) (*workmail.ListResourcesOutput, error)
ListResourcesWithContext(aws.Context, *workmail.ListResourcesInput, ...request.Option) (*workmail.ListResourcesOutput, error)
ListResourcesRequest(*workmail.ListResourcesInput) (*request.Request, *workmail.ListResourcesOutput)
ListResourcesPages(*workmail.ListResourcesInput, func(*workmail.ListResourcesOutput, bool) bool) error
ListResourcesPagesWithContext(aws.Context, *workmail.ListResourcesInput, func(*workmail.ListResourcesOutput, bool) bool, ...request.Option) error
ListUsers(*workmail.ListUsersInput) (*workmail.ListUsersOutput, error)
ListUsersWithContext(aws.Context, *workmail.ListUsersInput, ...request.Option) (*workmail.ListUsersOutput, error)
ListUsersRequest(*workmail.ListUsersInput) (*request.Request, *workmail.ListUsersOutput)
ListUsersPages(*workmail.ListUsersInput, func(*workmail.ListUsersOutput, bool) bool) error
ListUsersPagesWithContext(aws.Context, *workmail.ListUsersInput, func(*workmail.ListUsersOutput, bool) bool, ...request.Option) error
RegisterToWorkMail(*workmail.RegisterToWorkMailInput) (*workmail.RegisterToWorkMailOutput, error)
RegisterToWorkMailWithContext(aws.Context, *workmail.RegisterToWorkMailInput, ...request.Option) (*workmail.RegisterToWorkMailOutput, error)
RegisterToWorkMailRequest(*workmail.RegisterToWorkMailInput) (*request.Request, *workmail.RegisterToWorkMailOutput)
ResetPassword(*workmail.ResetPasswordInput) (*workmail.ResetPasswordOutput, error)
ResetPasswordWithContext(aws.Context, *workmail.ResetPasswordInput, ...request.Option) (*workmail.ResetPasswordOutput, error)
ResetPasswordRequest(*workmail.ResetPasswordInput) (*request.Request, *workmail.ResetPasswordOutput)
UpdatePrimaryEmailAddress(*workmail.UpdatePrimaryEmailAddressInput) (*workmail.UpdatePrimaryEmailAddressOutput, error)
UpdatePrimaryEmailAddressWithContext(aws.Context, *workmail.UpdatePrimaryEmailAddressInput, ...request.Option) (*workmail.UpdatePrimaryEmailAddressOutput, error)
UpdatePrimaryEmailAddressRequest(*workmail.UpdatePrimaryEmailAddressInput) (*request.Request, *workmail.UpdatePrimaryEmailAddressOutput)
UpdateResource(*workmail.UpdateResourceInput) (*workmail.UpdateResourceOutput, error)
UpdateResourceWithContext(aws.Context, *workmail.UpdateResourceInput, ...request.Option) (*workmail.UpdateResourceOutput, error)
UpdateResourceRequest(*workmail.UpdateResourceInput) (*request.Request, *workmail.UpdateResourceOutput)
}
var _ WorkMailAPI = (*workmail.WorkMail)(nil)