Switch to using the dep tool and update all the dependencies
This commit is contained in:
parent
5135ff73cb
commit
98c2d2c41b
5321 changed files with 4483201 additions and 5922 deletions
4732
vendor/github.com/aws/aws-sdk-go/service/datapipeline/api.go
generated
vendored
Normal file
4732
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 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)
|
101
vendor/github.com/aws/aws-sdk-go/service/datapipeline/doc.go
generated
vendored
Normal file
101
vendor/github.com/aws/aws-sdk-go/service/datapipeline/doc.go
generated
vendored
Normal file
|
@ -0,0 +1,101 @@
|
|||
// 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 use the client for AWS Data Pipeline you will first need
|
||||
// to create a new instance of it.
|
||||
//
|
||||
// When creating a client for an AWS service you'll first need to have a Session
|
||||
// already created. The Session provides configuration that can be shared
|
||||
// between multiple service clients. Additional configuration can be applied to
|
||||
// the Session and service's client when they are constructed. The aws package's
|
||||
// Config type contains several fields such as Region for the AWS Region the
|
||||
// client should make API requests too. The optional Config value can be provided
|
||||
// as the variadic argument for Sessions and client creation.
|
||||
//
|
||||
// Once the service's client is created you can use it to make API requests the
|
||||
// AWS service. These clients are safe to use concurrently.
|
||||
//
|
||||
// // Create a session to share configuration, and load external configuration.
|
||||
// sess := session.Must(session.NewSession())
|
||||
//
|
||||
// // Create the service's client with the session.
|
||||
// svc := datapipeline.New(sess)
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use service clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/
|
||||
//
|
||||
// See aws package's Config type for more information on configuration options.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the AWS Data Pipeline client DataPipeline for more
|
||||
// information on creating the service's client.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/datapipeline/#New
|
||||
//
|
||||
// Once the client is created you can make an API request to the service.
|
||||
// Each API method takes a input parameter, and returns the service response
|
||||
// and an error.
|
||||
//
|
||||
// The API method will document which error codes the service can be returned
|
||||
// by the operation if the service models the API operation's errors. These
|
||||
// errors will also be available as const strings prefixed with "ErrCode".
|
||||
//
|
||||
// result, err := svc.ActivatePipeline(params)
|
||||
// if err != nil {
|
||||
// // Cast err to awserr.Error to handle specific error codes.
|
||||
// aerr, ok := err.(awserr.Error)
|
||||
// if ok && aerr.Code() == <error code to check for> {
|
||||
// // Specific error code handling
|
||||
// }
|
||||
// return err
|
||||
// }
|
||||
//
|
||||
// fmt.Println("ActivatePipeline result:")
|
||||
// fmt.Println(result)
|
||||
//
|
||||
// Using the Client with Context
|
||||
//
|
||||
// The service's client also provides methods to make API requests with a Context
|
||||
// value. This allows you to control the timeout, and cancellation of pending
|
||||
// requests. These methods also take request Option as variadic parameter to apply
|
||||
// additional configuration to the API request.
|
||||
//
|
||||
// ctx := context.Background()
|
||||
//
|
||||
// result, err := svc.ActivatePipelineWithContext(ctx, params)
|
||||
//
|
||||
// See the request package documentation for more information on using Context pattern
|
||||
// with the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/request/
|
||||
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"
|
||||
)
|
568
vendor/github.com/aws/aws-sdk-go/service/datapipeline/examples_test.go
generated
vendored
Normal file
568
vendor/github.com/aws/aws-sdk-go/service/datapipeline/examples_test.go
generated
vendored
Normal file
|
@ -0,0 +1,568 @@
|
|||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package datapipeline_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/datapipeline"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleDataPipeline_ActivatePipeline() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.ActivatePipelineInput{
|
||||
PipelineId: aws.String("id"), // Required
|
||||
ParameterValues: []*datapipeline.ParameterValue{
|
||||
{ // Required
|
||||
Id: aws.String("fieldNameString"), // Required
|
||||
StringValue: aws.String("fieldStringValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
StartTimestamp: aws.Time(time.Now()),
|
||||
}
|
||||
resp, err := svc.ActivatePipeline(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_AddTags() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.AddTagsInput{
|
||||
PipelineId: aws.String("id"), // Required
|
||||
Tags: []*datapipeline.Tag{ // Required
|
||||
{ // Required
|
||||
Key: aws.String("tagKey"), // Required
|
||||
Value: aws.String("tagValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.AddTags(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_CreatePipeline() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.CreatePipelineInput{
|
||||
Name: aws.String("id"), // Required
|
||||
UniqueId: aws.String("id"), // Required
|
||||
Description: aws.String("string"),
|
||||
Tags: []*datapipeline.Tag{
|
||||
{ // Required
|
||||
Key: aws.String("tagKey"), // Required
|
||||
Value: aws.String("tagValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.CreatePipeline(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_DeactivatePipeline() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.DeactivatePipelineInput{
|
||||
PipelineId: aws.String("id"), // Required
|
||||
CancelActive: aws.Bool(true),
|
||||
}
|
||||
resp, err := svc.DeactivatePipeline(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_DeletePipeline() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.DeletePipelineInput{
|
||||
PipelineId: aws.String("id"), // Required
|
||||
}
|
||||
resp, err := svc.DeletePipeline(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_DescribeObjects() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.DescribeObjectsInput{
|
||||
ObjectIds: []*string{ // Required
|
||||
aws.String("id"), // Required
|
||||
// More values...
|
||||
},
|
||||
PipelineId: aws.String("id"), // Required
|
||||
EvaluateExpressions: aws.Bool(true),
|
||||
Marker: aws.String("string"),
|
||||
}
|
||||
resp, err := svc.DescribeObjects(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_DescribePipelines() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.DescribePipelinesInput{
|
||||
PipelineIds: []*string{ // Required
|
||||
aws.String("id"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DescribePipelines(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_EvaluateExpression() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.EvaluateExpressionInput{
|
||||
Expression: aws.String("longString"), // Required
|
||||
ObjectId: aws.String("id"), // Required
|
||||
PipelineId: aws.String("id"), // Required
|
||||
}
|
||||
resp, err := svc.EvaluateExpression(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_GetPipelineDefinition() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.GetPipelineDefinitionInput{
|
||||
PipelineId: aws.String("id"), // Required
|
||||
Version: aws.String("string"),
|
||||
}
|
||||
resp, err := svc.GetPipelineDefinition(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_ListPipelines() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.ListPipelinesInput{
|
||||
Marker: aws.String("string"),
|
||||
}
|
||||
resp, err := svc.ListPipelines(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_PollForTask() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.PollForTaskInput{
|
||||
WorkerGroup: aws.String("string"), // Required
|
||||
Hostname: aws.String("id"),
|
||||
InstanceIdentity: &datapipeline.InstanceIdentity{
|
||||
Document: aws.String("string"),
|
||||
Signature: aws.String("string"),
|
||||
},
|
||||
}
|
||||
resp, err := svc.PollForTask(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_PutPipelineDefinition() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.PutPipelineDefinitionInput{
|
||||
PipelineId: aws.String("id"), // Required
|
||||
PipelineObjects: []*datapipeline.PipelineObject{ // Required
|
||||
{ // Required
|
||||
Fields: []*datapipeline.Field{ // Required
|
||||
{ // Required
|
||||
Key: aws.String("fieldNameString"), // Required
|
||||
RefValue: aws.String("fieldNameString"),
|
||||
StringValue: aws.String("fieldStringValue"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
Id: aws.String("id"), // Required
|
||||
Name: aws.String("id"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
ParameterObjects: []*datapipeline.ParameterObject{
|
||||
{ // Required
|
||||
Attributes: []*datapipeline.ParameterAttribute{ // Required
|
||||
{ // Required
|
||||
Key: aws.String("attributeNameString"), // Required
|
||||
StringValue: aws.String("attributeValueString"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
Id: aws.String("fieldNameString"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
ParameterValues: []*datapipeline.ParameterValue{
|
||||
{ // Required
|
||||
Id: aws.String("fieldNameString"), // Required
|
||||
StringValue: aws.String("fieldStringValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.PutPipelineDefinition(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_QueryObjects() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.QueryObjectsInput{
|
||||
PipelineId: aws.String("id"), // Required
|
||||
Sphere: aws.String("string"), // Required
|
||||
Limit: aws.Int64(1),
|
||||
Marker: aws.String("string"),
|
||||
Query: &datapipeline.Query{
|
||||
Selectors: []*datapipeline.Selector{
|
||||
{ // Required
|
||||
FieldName: aws.String("string"),
|
||||
Operator: &datapipeline.Operator{
|
||||
Type: aws.String("OperatorType"),
|
||||
Values: []*string{
|
||||
aws.String("string"), // Required
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
}
|
||||
resp, err := svc.QueryObjects(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_RemoveTags() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.RemoveTagsInput{
|
||||
PipelineId: aws.String("id"), // Required
|
||||
TagKeys: []*string{ // Required
|
||||
aws.String("string"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.RemoveTags(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_ReportTaskProgress() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.ReportTaskProgressInput{
|
||||
TaskId: aws.String("taskId"), // Required
|
||||
Fields: []*datapipeline.Field{
|
||||
{ // Required
|
||||
Key: aws.String("fieldNameString"), // Required
|
||||
RefValue: aws.String("fieldNameString"),
|
||||
StringValue: aws.String("fieldStringValue"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.ReportTaskProgress(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_ReportTaskRunnerHeartbeat() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.ReportTaskRunnerHeartbeatInput{
|
||||
TaskrunnerId: aws.String("id"), // Required
|
||||
Hostname: aws.String("id"),
|
||||
WorkerGroup: aws.String("string"),
|
||||
}
|
||||
resp, err := svc.ReportTaskRunnerHeartbeat(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_SetStatus() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.SetStatusInput{
|
||||
ObjectIds: []*string{ // Required
|
||||
aws.String("id"), // Required
|
||||
// More values...
|
||||
},
|
||||
PipelineId: aws.String("id"), // Required
|
||||
Status: aws.String("string"), // Required
|
||||
}
|
||||
resp, err := svc.SetStatus(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_SetTaskStatus() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.SetTaskStatusInput{
|
||||
TaskId: aws.String("taskId"), // Required
|
||||
TaskStatus: aws.String("TaskStatus"), // Required
|
||||
ErrorId: aws.String("string"),
|
||||
ErrorMessage: aws.String("errorMessage"),
|
||||
ErrorStackTrace: aws.String("string"),
|
||||
}
|
||||
resp, err := svc.SetTaskStatus(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_ValidatePipelineDefinition() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.ValidatePipelineDefinitionInput{
|
||||
PipelineId: aws.String("id"), // Required
|
||||
PipelineObjects: []*datapipeline.PipelineObject{ // Required
|
||||
{ // Required
|
||||
Fields: []*datapipeline.Field{ // Required
|
||||
{ // Required
|
||||
Key: aws.String("fieldNameString"), // Required
|
||||
RefValue: aws.String("fieldNameString"),
|
||||
StringValue: aws.String("fieldStringValue"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
Id: aws.String("id"), // Required
|
||||
Name: aws.String("id"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
ParameterObjects: []*datapipeline.ParameterObject{
|
||||
{ // Required
|
||||
Attributes: []*datapipeline.ParameterAttribute{ // Required
|
||||
{ // Required
|
||||
Key: aws.String("attributeNameString"), // Required
|
||||
StringValue: aws.String("attributeValueString"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
Id: aws.String("fieldNameString"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
ParameterValues: []*datapipeline.ParameterValue{
|
||||
{ // Required
|
||||
Id: aws.String("fieldNameString"), // Required
|
||||
StringValue: aws.String("fieldStringValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.ValidatePipelineDefinition(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue