Vendor aws-sdk-go (dep ensure) (#178)
This commit is contained in:
4660
vendor/github.com/aws/aws-sdk-go/service/datapipeline/api.go
generated
vendored
Normal file
4660
vendor/github.com/aws/aws-sdk-go/service/datapipeline/api.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
149
vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface.go
generated
vendored
Normal file
149
vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface.go
generated
vendored
Normal file
@@ -0,0 +1,149 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package datapipelineiface provides an interface to enable mocking the AWS Data Pipeline 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 datapipelineiface
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/service/datapipeline"
|
||||
)
|
||||
|
||||
// DataPipelineAPI provides an interface to enable mocking the
|
||||
// datapipeline.DataPipeline 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 Data Pipeline.
|
||||
// func myFunc(svc datapipelineiface.DataPipelineAPI) bool {
|
||||
// // Make svc.ActivatePipeline request
|
||||
// }
|
||||
//
|
||||
// func main() {
|
||||
// sess := session.New()
|
||||
// svc := datapipeline.New(sess)
|
||||
//
|
||||
// myFunc(svc)
|
||||
// }
|
||||
//
|
||||
// In your _test.go file:
|
||||
//
|
||||
// // Define a mock struct to be used in your unit tests of myFunc.
|
||||
// type mockDataPipelineClient struct {
|
||||
// datapipelineiface.DataPipelineAPI
|
||||
// }
|
||||
// func (m *mockDataPipelineClient) ActivatePipeline(input *datapipeline.ActivatePipelineInput) (*datapipeline.ActivatePipelineOutput, error) {
|
||||
// // mock response/functionality
|
||||
// }
|
||||
//
|
||||
// func TestMyFunc(t *testing.T) {
|
||||
// // Setup Test
|
||||
// mockSvc := &mockDataPipelineClient{}
|
||||
//
|
||||
// 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 DataPipelineAPI interface {
|
||||
ActivatePipeline(*datapipeline.ActivatePipelineInput) (*datapipeline.ActivatePipelineOutput, error)
|
||||
ActivatePipelineWithContext(aws.Context, *datapipeline.ActivatePipelineInput, ...request.Option) (*datapipeline.ActivatePipelineOutput, error)
|
||||
ActivatePipelineRequest(*datapipeline.ActivatePipelineInput) (*request.Request, *datapipeline.ActivatePipelineOutput)
|
||||
|
||||
AddTags(*datapipeline.AddTagsInput) (*datapipeline.AddTagsOutput, error)
|
||||
AddTagsWithContext(aws.Context, *datapipeline.AddTagsInput, ...request.Option) (*datapipeline.AddTagsOutput, error)
|
||||
AddTagsRequest(*datapipeline.AddTagsInput) (*request.Request, *datapipeline.AddTagsOutput)
|
||||
|
||||
CreatePipeline(*datapipeline.CreatePipelineInput) (*datapipeline.CreatePipelineOutput, error)
|
||||
CreatePipelineWithContext(aws.Context, *datapipeline.CreatePipelineInput, ...request.Option) (*datapipeline.CreatePipelineOutput, error)
|
||||
CreatePipelineRequest(*datapipeline.CreatePipelineInput) (*request.Request, *datapipeline.CreatePipelineOutput)
|
||||
|
||||
DeactivatePipeline(*datapipeline.DeactivatePipelineInput) (*datapipeline.DeactivatePipelineOutput, error)
|
||||
DeactivatePipelineWithContext(aws.Context, *datapipeline.DeactivatePipelineInput, ...request.Option) (*datapipeline.DeactivatePipelineOutput, error)
|
||||
DeactivatePipelineRequest(*datapipeline.DeactivatePipelineInput) (*request.Request, *datapipeline.DeactivatePipelineOutput)
|
||||
|
||||
DeletePipeline(*datapipeline.DeletePipelineInput) (*datapipeline.DeletePipelineOutput, error)
|
||||
DeletePipelineWithContext(aws.Context, *datapipeline.DeletePipelineInput, ...request.Option) (*datapipeline.DeletePipelineOutput, error)
|
||||
DeletePipelineRequest(*datapipeline.DeletePipelineInput) (*request.Request, *datapipeline.DeletePipelineOutput)
|
||||
|
||||
DescribeObjects(*datapipeline.DescribeObjectsInput) (*datapipeline.DescribeObjectsOutput, error)
|
||||
DescribeObjectsWithContext(aws.Context, *datapipeline.DescribeObjectsInput, ...request.Option) (*datapipeline.DescribeObjectsOutput, error)
|
||||
DescribeObjectsRequest(*datapipeline.DescribeObjectsInput) (*request.Request, *datapipeline.DescribeObjectsOutput)
|
||||
|
||||
DescribeObjectsPages(*datapipeline.DescribeObjectsInput, func(*datapipeline.DescribeObjectsOutput, bool) bool) error
|
||||
DescribeObjectsPagesWithContext(aws.Context, *datapipeline.DescribeObjectsInput, func(*datapipeline.DescribeObjectsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribePipelines(*datapipeline.DescribePipelinesInput) (*datapipeline.DescribePipelinesOutput, error)
|
||||
DescribePipelinesWithContext(aws.Context, *datapipeline.DescribePipelinesInput, ...request.Option) (*datapipeline.DescribePipelinesOutput, error)
|
||||
DescribePipelinesRequest(*datapipeline.DescribePipelinesInput) (*request.Request, *datapipeline.DescribePipelinesOutput)
|
||||
|
||||
EvaluateExpression(*datapipeline.EvaluateExpressionInput) (*datapipeline.EvaluateExpressionOutput, error)
|
||||
EvaluateExpressionWithContext(aws.Context, *datapipeline.EvaluateExpressionInput, ...request.Option) (*datapipeline.EvaluateExpressionOutput, error)
|
||||
EvaluateExpressionRequest(*datapipeline.EvaluateExpressionInput) (*request.Request, *datapipeline.EvaluateExpressionOutput)
|
||||
|
||||
GetPipelineDefinition(*datapipeline.GetPipelineDefinitionInput) (*datapipeline.GetPipelineDefinitionOutput, error)
|
||||
GetPipelineDefinitionWithContext(aws.Context, *datapipeline.GetPipelineDefinitionInput, ...request.Option) (*datapipeline.GetPipelineDefinitionOutput, error)
|
||||
GetPipelineDefinitionRequest(*datapipeline.GetPipelineDefinitionInput) (*request.Request, *datapipeline.GetPipelineDefinitionOutput)
|
||||
|
||||
ListPipelines(*datapipeline.ListPipelinesInput) (*datapipeline.ListPipelinesOutput, error)
|
||||
ListPipelinesWithContext(aws.Context, *datapipeline.ListPipelinesInput, ...request.Option) (*datapipeline.ListPipelinesOutput, error)
|
||||
ListPipelinesRequest(*datapipeline.ListPipelinesInput) (*request.Request, *datapipeline.ListPipelinesOutput)
|
||||
|
||||
ListPipelinesPages(*datapipeline.ListPipelinesInput, func(*datapipeline.ListPipelinesOutput, bool) bool) error
|
||||
ListPipelinesPagesWithContext(aws.Context, *datapipeline.ListPipelinesInput, func(*datapipeline.ListPipelinesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
PollForTask(*datapipeline.PollForTaskInput) (*datapipeline.PollForTaskOutput, error)
|
||||
PollForTaskWithContext(aws.Context, *datapipeline.PollForTaskInput, ...request.Option) (*datapipeline.PollForTaskOutput, error)
|
||||
PollForTaskRequest(*datapipeline.PollForTaskInput) (*request.Request, *datapipeline.PollForTaskOutput)
|
||||
|
||||
PutPipelineDefinition(*datapipeline.PutPipelineDefinitionInput) (*datapipeline.PutPipelineDefinitionOutput, error)
|
||||
PutPipelineDefinitionWithContext(aws.Context, *datapipeline.PutPipelineDefinitionInput, ...request.Option) (*datapipeline.PutPipelineDefinitionOutput, error)
|
||||
PutPipelineDefinitionRequest(*datapipeline.PutPipelineDefinitionInput) (*request.Request, *datapipeline.PutPipelineDefinitionOutput)
|
||||
|
||||
QueryObjects(*datapipeline.QueryObjectsInput) (*datapipeline.QueryObjectsOutput, error)
|
||||
QueryObjectsWithContext(aws.Context, *datapipeline.QueryObjectsInput, ...request.Option) (*datapipeline.QueryObjectsOutput, error)
|
||||
QueryObjectsRequest(*datapipeline.QueryObjectsInput) (*request.Request, *datapipeline.QueryObjectsOutput)
|
||||
|
||||
QueryObjectsPages(*datapipeline.QueryObjectsInput, func(*datapipeline.QueryObjectsOutput, bool) bool) error
|
||||
QueryObjectsPagesWithContext(aws.Context, *datapipeline.QueryObjectsInput, func(*datapipeline.QueryObjectsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
RemoveTags(*datapipeline.RemoveTagsInput) (*datapipeline.RemoveTagsOutput, error)
|
||||
RemoveTagsWithContext(aws.Context, *datapipeline.RemoveTagsInput, ...request.Option) (*datapipeline.RemoveTagsOutput, error)
|
||||
RemoveTagsRequest(*datapipeline.RemoveTagsInput) (*request.Request, *datapipeline.RemoveTagsOutput)
|
||||
|
||||
ReportTaskProgress(*datapipeline.ReportTaskProgressInput) (*datapipeline.ReportTaskProgressOutput, error)
|
||||
ReportTaskProgressWithContext(aws.Context, *datapipeline.ReportTaskProgressInput, ...request.Option) (*datapipeline.ReportTaskProgressOutput, error)
|
||||
ReportTaskProgressRequest(*datapipeline.ReportTaskProgressInput) (*request.Request, *datapipeline.ReportTaskProgressOutput)
|
||||
|
||||
ReportTaskRunnerHeartbeat(*datapipeline.ReportTaskRunnerHeartbeatInput) (*datapipeline.ReportTaskRunnerHeartbeatOutput, error)
|
||||
ReportTaskRunnerHeartbeatWithContext(aws.Context, *datapipeline.ReportTaskRunnerHeartbeatInput, ...request.Option) (*datapipeline.ReportTaskRunnerHeartbeatOutput, error)
|
||||
ReportTaskRunnerHeartbeatRequest(*datapipeline.ReportTaskRunnerHeartbeatInput) (*request.Request, *datapipeline.ReportTaskRunnerHeartbeatOutput)
|
||||
|
||||
SetStatus(*datapipeline.SetStatusInput) (*datapipeline.SetStatusOutput, error)
|
||||
SetStatusWithContext(aws.Context, *datapipeline.SetStatusInput, ...request.Option) (*datapipeline.SetStatusOutput, error)
|
||||
SetStatusRequest(*datapipeline.SetStatusInput) (*request.Request, *datapipeline.SetStatusOutput)
|
||||
|
||||
SetTaskStatus(*datapipeline.SetTaskStatusInput) (*datapipeline.SetTaskStatusOutput, error)
|
||||
SetTaskStatusWithContext(aws.Context, *datapipeline.SetTaskStatusInput, ...request.Option) (*datapipeline.SetTaskStatusOutput, error)
|
||||
SetTaskStatusRequest(*datapipeline.SetTaskStatusInput) (*request.Request, *datapipeline.SetTaskStatusOutput)
|
||||
|
||||
ValidatePipelineDefinition(*datapipeline.ValidatePipelineDefinitionInput) (*datapipeline.ValidatePipelineDefinitionOutput, error)
|
||||
ValidatePipelineDefinitionWithContext(aws.Context, *datapipeline.ValidatePipelineDefinitionInput, ...request.Option) (*datapipeline.ValidatePipelineDefinitionOutput, error)
|
||||
ValidatePipelineDefinitionRequest(*datapipeline.ValidatePipelineDefinitionInput) (*request.Request, *datapipeline.ValidatePipelineDefinitionOutput)
|
||||
}
|
||||
|
||||
var _ DataPipelineAPI = (*datapipeline.DataPipeline)(nil)
|
||||
49
vendor/github.com/aws/aws-sdk-go/service/datapipeline/doc.go
generated
vendored
Normal file
49
vendor/github.com/aws/aws-sdk-go/service/datapipeline/doc.go
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package datapipeline provides the client and types for making API
|
||||
// requests to AWS Data Pipeline.
|
||||
//
|
||||
// AWS Data Pipeline configures and manages a data-driven workflow called a
|
||||
// pipeline. AWS Data Pipeline handles the details of scheduling and ensuring
|
||||
// that data dependencies are met so that your application can focus on processing
|
||||
// the data.
|
||||
//
|
||||
// AWS Data Pipeline provides a JAR implementation of a task runner called AWS
|
||||
// Data Pipeline Task Runner. AWS Data Pipeline Task Runner provides logic for
|
||||
// common data management scenarios, such as performing database queries and
|
||||
// running data analysis using Amazon Elastic MapReduce (Amazon EMR). You can
|
||||
// use AWS Data Pipeline Task Runner as your task runner, or you can write your
|
||||
// own task runner to provide custom data management.
|
||||
//
|
||||
// AWS Data Pipeline implements two main sets of functionality. Use the first
|
||||
// set to create a pipeline and define data sources, schedules, dependencies,
|
||||
// and the transforms to be performed on the data. Use the second set in your
|
||||
// task runner application to receive the next task ready for processing. The
|
||||
// logic for performing the task, such as querying the data, running data analysis,
|
||||
// or converting the data from one format to another, is contained within the
|
||||
// task runner. The task runner performs the task assigned to it by the web
|
||||
// service, reporting progress to the web service as it does so. When the task
|
||||
// is done, the task runner reports the final success or failure of the task
|
||||
// to the web service.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29 for more information on this service.
|
||||
//
|
||||
// See datapipeline package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/datapipeline/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To contact AWS Data Pipeline 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 Data Pipeline client DataPipeline for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/datapipeline/#New
|
||||
package datapipeline
|
||||
39
vendor/github.com/aws/aws-sdk-go/service/datapipeline/errors.go
generated
vendored
Normal file
39
vendor/github.com/aws/aws-sdk-go/service/datapipeline/errors.go
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package datapipeline
|
||||
|
||||
const (
|
||||
|
||||
// ErrCodeInternalServiceError for service response error code
|
||||
// "InternalServiceError".
|
||||
//
|
||||
// An internal service error occurred.
|
||||
ErrCodeInternalServiceError = "InternalServiceError"
|
||||
|
||||
// ErrCodeInvalidRequestException for service response error code
|
||||
// "InvalidRequestException".
|
||||
//
|
||||
// The request was not valid. Verify that your request was properly formatted,
|
||||
// that the signature was generated with the correct credentials, and that you
|
||||
// haven't exceeded any of the service limits for your account.
|
||||
ErrCodeInvalidRequestException = "InvalidRequestException"
|
||||
|
||||
// ErrCodePipelineDeletedException for service response error code
|
||||
// "PipelineDeletedException".
|
||||
//
|
||||
// The specified pipeline has been deleted.
|
||||
ErrCodePipelineDeletedException = "PipelineDeletedException"
|
||||
|
||||
// ErrCodePipelineNotFoundException for service response error code
|
||||
// "PipelineNotFoundException".
|
||||
//
|
||||
// The specified pipeline was not found. Verify that you used the correct user
|
||||
// and account identifiers.
|
||||
ErrCodePipelineNotFoundException = "PipelineNotFoundException"
|
||||
|
||||
// ErrCodeTaskNotFoundException for service response error code
|
||||
// "TaskNotFoundException".
|
||||
//
|
||||
// The specified task was not found.
|
||||
ErrCodeTaskNotFoundException = "TaskNotFoundException"
|
||||
)
|
||||
95
vendor/github.com/aws/aws-sdk-go/service/datapipeline/service.go
generated
vendored
Normal file
95
vendor/github.com/aws/aws-sdk-go/service/datapipeline/service.go
generated
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package datapipeline
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// DataPipeline provides the API operation methods for making requests to
|
||||
// AWS Data Pipeline. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// DataPipeline methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type DataPipeline 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 = "datapipeline" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
)
|
||||
|
||||
// New creates a new instance of the DataPipeline 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 DataPipeline client from just a session.
|
||||
// svc := datapipeline.New(mySession)
|
||||
//
|
||||
// // Create a DataPipeline client with additional configuration
|
||||
// svc := datapipeline.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *DataPipeline {
|
||||
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) *DataPipeline {
|
||||
svc := &DataPipeline{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2012-10-29",
|
||||
JSONVersion: "1.1",
|
||||
TargetPrefix: "DataPipeline",
|
||||
},
|
||||
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 DataPipeline operation and runs any
|
||||
// custom request initialization.
|
||||
func (c *DataPipeline) 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