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

4978
vendor/github.com/aws/aws-sdk-go/service/sfn/api.go generated vendored Normal file

File diff suppressed because it is too large Load Diff

45
vendor/github.com/aws/aws-sdk-go/service/sfn/doc.go generated vendored Normal file
View File

@@ -0,0 +1,45 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package sfn provides the client and types for making API
// requests to AWS Step Functions.
//
// AWS Step Functions is a service that lets you coordinate the components of
// distributed applications and microservices using visual workflows.
//
// You can use Step Functions to build applications from individual components,
// each of which performs a discrete function, or task, allowing you to scale
// and change applications quickly. Step Functions provides a console that helps
// visualize the components of your application as a series of steps. Step Functions
// automatically triggers and tracks each step, and retries steps when there
// are errors, so your application executes predictably and in the right order
// every time. Step Functions logs the state of each step, so you can quickly
// diagnose and debug any issues.
//
// Step Functions manages operations and underlying infrastructure to ensure
// your application is available at any scale. You can run tasks on AWS, your
// own servers, or any system that has access to AWS. You can access and use
// Step Functions using the console, the AWS SDKs, or an HTTP API. For more
// information about Step Functions, see the AWS Step Functions Developer Guide
// (http://docs.aws.amazon.com/step-functions/latest/dg/welcome.html).
//
// See https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23 for more information on this service.
//
// See sfn package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/sfn/
//
// Using the Client
//
// To contact AWS Step Functions 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 Step Functions client SFN for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/sfn/#New
package sfn

124
vendor/github.com/aws/aws-sdk-go/service/sfn/errors.go generated vendored Normal file
View File

@@ -0,0 +1,124 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package sfn
const (
// ErrCodeActivityDoesNotExist for service response error code
// "ActivityDoesNotExist".
//
// The specified activity does not exist.
ErrCodeActivityDoesNotExist = "ActivityDoesNotExist"
// ErrCodeActivityLimitExceeded for service response error code
// "ActivityLimitExceeded".
//
// The maximum number of activities has been reached. Existing activities must
// be deleted before a new activity can be created.
ErrCodeActivityLimitExceeded = "ActivityLimitExceeded"
// ErrCodeActivityWorkerLimitExceeded for service response error code
// "ActivityWorkerLimitExceeded".
//
// The maximum number of workers concurrently polling for activity tasks has
// been reached.
ErrCodeActivityWorkerLimitExceeded = "ActivityWorkerLimitExceeded"
// ErrCodeExecutionAlreadyExists for service response error code
// "ExecutionAlreadyExists".
//
// The execution has the same name as another execution (but a different input).
//
// Executions with the same name and input are considered idempotent.
ErrCodeExecutionAlreadyExists = "ExecutionAlreadyExists"
// ErrCodeExecutionDoesNotExist for service response error code
// "ExecutionDoesNotExist".
//
// The specified execution does not exist.
ErrCodeExecutionDoesNotExist = "ExecutionDoesNotExist"
// ErrCodeExecutionLimitExceeded for service response error code
// "ExecutionLimitExceeded".
//
// The maximum number of running executions has been reached. Running executions
// must end or be stopped before a new execution can be started.
ErrCodeExecutionLimitExceeded = "ExecutionLimitExceeded"
// ErrCodeInvalidArn for service response error code
// "InvalidArn".
//
// The provided Amazon Resource Name (ARN) is invalid.
ErrCodeInvalidArn = "InvalidArn"
// ErrCodeInvalidDefinition for service response error code
// "InvalidDefinition".
//
// The provided Amazon States Language definition is invalid.
ErrCodeInvalidDefinition = "InvalidDefinition"
// ErrCodeInvalidExecutionInput for service response error code
// "InvalidExecutionInput".
//
// The provided JSON input data is invalid.
ErrCodeInvalidExecutionInput = "InvalidExecutionInput"
// ErrCodeInvalidName for service response error code
// "InvalidName".
//
// The provided name is invalid.
ErrCodeInvalidName = "InvalidName"
// ErrCodeInvalidOutput for service response error code
// "InvalidOutput".
//
// The provided JSON output data is invalid.
ErrCodeInvalidOutput = "InvalidOutput"
// ErrCodeInvalidToken for service response error code
// "InvalidToken".
//
// The provided token is invalid.
ErrCodeInvalidToken = "InvalidToken"
// ErrCodeMissingRequiredParameter for service response error code
// "MissingRequiredParameter".
//
// Request is missing a required parameter. This error occurs if both definition
// and roleArn are not specified.
ErrCodeMissingRequiredParameter = "MissingRequiredParameter"
// ErrCodeStateMachineAlreadyExists for service response error code
// "StateMachineAlreadyExists".
//
// A state machine with the same name but a different definition or role ARN
// already exists.
ErrCodeStateMachineAlreadyExists = "StateMachineAlreadyExists"
// ErrCodeStateMachineDeleting for service response error code
// "StateMachineDeleting".
//
// The specified state machine is being deleted.
ErrCodeStateMachineDeleting = "StateMachineDeleting"
// ErrCodeStateMachineDoesNotExist for service response error code
// "StateMachineDoesNotExist".
//
// The specified state machine does not exist.
ErrCodeStateMachineDoesNotExist = "StateMachineDoesNotExist"
// ErrCodeStateMachineLimitExceeded for service response error code
// "StateMachineLimitExceeded".
//
// The maximum number of state machines has been reached. Existing state machines
// must be deleted before a new state machine can be created.
ErrCodeStateMachineLimitExceeded = "StateMachineLimitExceeded"
// ErrCodeTaskDoesNotExist for service response error code
// "TaskDoesNotExist".
ErrCodeTaskDoesNotExist = "TaskDoesNotExist"
// ErrCodeTaskTimedOut for service response error code
// "TaskTimedOut".
ErrCodeTaskTimedOut = "TaskTimedOut"
)

View File

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

View File

@@ -0,0 +1,152 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package sfniface provides an interface to enable mocking the AWS Step Functions 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 sfniface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/sfn"
)
// SFNAPI provides an interface to enable mocking the
// sfn.SFN 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 Step Functions.
// func myFunc(svc sfniface.SFNAPI) bool {
// // Make svc.CreateActivity request
// }
//
// func main() {
// sess := session.New()
// svc := sfn.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockSFNClient struct {
// sfniface.SFNAPI
// }
// func (m *mockSFNClient) CreateActivity(input *sfn.CreateActivityInput) (*sfn.CreateActivityOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockSFNClient{}
//
// 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 SFNAPI interface {
CreateActivity(*sfn.CreateActivityInput) (*sfn.CreateActivityOutput, error)
CreateActivityWithContext(aws.Context, *sfn.CreateActivityInput, ...request.Option) (*sfn.CreateActivityOutput, error)
CreateActivityRequest(*sfn.CreateActivityInput) (*request.Request, *sfn.CreateActivityOutput)
CreateStateMachine(*sfn.CreateStateMachineInput) (*sfn.CreateStateMachineOutput, error)
CreateStateMachineWithContext(aws.Context, *sfn.CreateStateMachineInput, ...request.Option) (*sfn.CreateStateMachineOutput, error)
CreateStateMachineRequest(*sfn.CreateStateMachineInput) (*request.Request, *sfn.CreateStateMachineOutput)
DeleteActivity(*sfn.DeleteActivityInput) (*sfn.DeleteActivityOutput, error)
DeleteActivityWithContext(aws.Context, *sfn.DeleteActivityInput, ...request.Option) (*sfn.DeleteActivityOutput, error)
DeleteActivityRequest(*sfn.DeleteActivityInput) (*request.Request, *sfn.DeleteActivityOutput)
DeleteStateMachine(*sfn.DeleteStateMachineInput) (*sfn.DeleteStateMachineOutput, error)
DeleteStateMachineWithContext(aws.Context, *sfn.DeleteStateMachineInput, ...request.Option) (*sfn.DeleteStateMachineOutput, error)
DeleteStateMachineRequest(*sfn.DeleteStateMachineInput) (*request.Request, *sfn.DeleteStateMachineOutput)
DescribeActivity(*sfn.DescribeActivityInput) (*sfn.DescribeActivityOutput, error)
DescribeActivityWithContext(aws.Context, *sfn.DescribeActivityInput, ...request.Option) (*sfn.DescribeActivityOutput, error)
DescribeActivityRequest(*sfn.DescribeActivityInput) (*request.Request, *sfn.DescribeActivityOutput)
DescribeExecution(*sfn.DescribeExecutionInput) (*sfn.DescribeExecutionOutput, error)
DescribeExecutionWithContext(aws.Context, *sfn.DescribeExecutionInput, ...request.Option) (*sfn.DescribeExecutionOutput, error)
DescribeExecutionRequest(*sfn.DescribeExecutionInput) (*request.Request, *sfn.DescribeExecutionOutput)
DescribeStateMachine(*sfn.DescribeStateMachineInput) (*sfn.DescribeStateMachineOutput, error)
DescribeStateMachineWithContext(aws.Context, *sfn.DescribeStateMachineInput, ...request.Option) (*sfn.DescribeStateMachineOutput, error)
DescribeStateMachineRequest(*sfn.DescribeStateMachineInput) (*request.Request, *sfn.DescribeStateMachineOutput)
DescribeStateMachineForExecution(*sfn.DescribeStateMachineForExecutionInput) (*sfn.DescribeStateMachineForExecutionOutput, error)
DescribeStateMachineForExecutionWithContext(aws.Context, *sfn.DescribeStateMachineForExecutionInput, ...request.Option) (*sfn.DescribeStateMachineForExecutionOutput, error)
DescribeStateMachineForExecutionRequest(*sfn.DescribeStateMachineForExecutionInput) (*request.Request, *sfn.DescribeStateMachineForExecutionOutput)
GetActivityTask(*sfn.GetActivityTaskInput) (*sfn.GetActivityTaskOutput, error)
GetActivityTaskWithContext(aws.Context, *sfn.GetActivityTaskInput, ...request.Option) (*sfn.GetActivityTaskOutput, error)
GetActivityTaskRequest(*sfn.GetActivityTaskInput) (*request.Request, *sfn.GetActivityTaskOutput)
GetExecutionHistory(*sfn.GetExecutionHistoryInput) (*sfn.GetExecutionHistoryOutput, error)
GetExecutionHistoryWithContext(aws.Context, *sfn.GetExecutionHistoryInput, ...request.Option) (*sfn.GetExecutionHistoryOutput, error)
GetExecutionHistoryRequest(*sfn.GetExecutionHistoryInput) (*request.Request, *sfn.GetExecutionHistoryOutput)
GetExecutionHistoryPages(*sfn.GetExecutionHistoryInput, func(*sfn.GetExecutionHistoryOutput, bool) bool) error
GetExecutionHistoryPagesWithContext(aws.Context, *sfn.GetExecutionHistoryInput, func(*sfn.GetExecutionHistoryOutput, bool) bool, ...request.Option) error
ListActivities(*sfn.ListActivitiesInput) (*sfn.ListActivitiesOutput, error)
ListActivitiesWithContext(aws.Context, *sfn.ListActivitiesInput, ...request.Option) (*sfn.ListActivitiesOutput, error)
ListActivitiesRequest(*sfn.ListActivitiesInput) (*request.Request, *sfn.ListActivitiesOutput)
ListActivitiesPages(*sfn.ListActivitiesInput, func(*sfn.ListActivitiesOutput, bool) bool) error
ListActivitiesPagesWithContext(aws.Context, *sfn.ListActivitiesInput, func(*sfn.ListActivitiesOutput, bool) bool, ...request.Option) error
ListExecutions(*sfn.ListExecutionsInput) (*sfn.ListExecutionsOutput, error)
ListExecutionsWithContext(aws.Context, *sfn.ListExecutionsInput, ...request.Option) (*sfn.ListExecutionsOutput, error)
ListExecutionsRequest(*sfn.ListExecutionsInput) (*request.Request, *sfn.ListExecutionsOutput)
ListExecutionsPages(*sfn.ListExecutionsInput, func(*sfn.ListExecutionsOutput, bool) bool) error
ListExecutionsPagesWithContext(aws.Context, *sfn.ListExecutionsInput, func(*sfn.ListExecutionsOutput, bool) bool, ...request.Option) error
ListStateMachines(*sfn.ListStateMachinesInput) (*sfn.ListStateMachinesOutput, error)
ListStateMachinesWithContext(aws.Context, *sfn.ListStateMachinesInput, ...request.Option) (*sfn.ListStateMachinesOutput, error)
ListStateMachinesRequest(*sfn.ListStateMachinesInput) (*request.Request, *sfn.ListStateMachinesOutput)
ListStateMachinesPages(*sfn.ListStateMachinesInput, func(*sfn.ListStateMachinesOutput, bool) bool) error
ListStateMachinesPagesWithContext(aws.Context, *sfn.ListStateMachinesInput, func(*sfn.ListStateMachinesOutput, bool) bool, ...request.Option) error
SendTaskFailure(*sfn.SendTaskFailureInput) (*sfn.SendTaskFailureOutput, error)
SendTaskFailureWithContext(aws.Context, *sfn.SendTaskFailureInput, ...request.Option) (*sfn.SendTaskFailureOutput, error)
SendTaskFailureRequest(*sfn.SendTaskFailureInput) (*request.Request, *sfn.SendTaskFailureOutput)
SendTaskHeartbeat(*sfn.SendTaskHeartbeatInput) (*sfn.SendTaskHeartbeatOutput, error)
SendTaskHeartbeatWithContext(aws.Context, *sfn.SendTaskHeartbeatInput, ...request.Option) (*sfn.SendTaskHeartbeatOutput, error)
SendTaskHeartbeatRequest(*sfn.SendTaskHeartbeatInput) (*request.Request, *sfn.SendTaskHeartbeatOutput)
SendTaskSuccess(*sfn.SendTaskSuccessInput) (*sfn.SendTaskSuccessOutput, error)
SendTaskSuccessWithContext(aws.Context, *sfn.SendTaskSuccessInput, ...request.Option) (*sfn.SendTaskSuccessOutput, error)
SendTaskSuccessRequest(*sfn.SendTaskSuccessInput) (*request.Request, *sfn.SendTaskSuccessOutput)
StartExecution(*sfn.StartExecutionInput) (*sfn.StartExecutionOutput, error)
StartExecutionWithContext(aws.Context, *sfn.StartExecutionInput, ...request.Option) (*sfn.StartExecutionOutput, error)
StartExecutionRequest(*sfn.StartExecutionInput) (*request.Request, *sfn.StartExecutionOutput)
StopExecution(*sfn.StopExecutionInput) (*sfn.StopExecutionOutput, error)
StopExecutionWithContext(aws.Context, *sfn.StopExecutionInput, ...request.Option) (*sfn.StopExecutionOutput, error)
StopExecutionRequest(*sfn.StopExecutionInput) (*request.Request, *sfn.StopExecutionOutput)
UpdateStateMachine(*sfn.UpdateStateMachineInput) (*sfn.UpdateStateMachineOutput, error)
UpdateStateMachineWithContext(aws.Context, *sfn.UpdateStateMachineInput, ...request.Option) (*sfn.UpdateStateMachineOutput, error)
UpdateStateMachineRequest(*sfn.UpdateStateMachineInput) (*request.Request, *sfn.UpdateStateMachineOutput)
}
var _ SFNAPI = (*sfn.SFN)(nil)