mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-31 04:30:44 +00:00
Upgrade AWS SDK to the latest version
This commit is contained in:
+534
-394
File diff suppressed because it is too large
Load Diff
+39
@@ -0,0 +1,39 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package ecs provides the client and types for making API
|
||||
// requests to Amazon EC2 Container Service.
|
||||
//
|
||||
// Amazon EC2 Container Service (Amazon ECS) is a highly scalable, fast, container
|
||||
// management service that makes it easy to run, stop, and manage Docker containers
|
||||
// on a cluster of EC2 instances. Amazon ECS lets you launch and stop container-enabled
|
||||
// applications with simple API calls, allows you to get the state of your cluster
|
||||
// from a centralized service, and gives you access to many familiar Amazon
|
||||
// EC2 features like security groups, Amazon EBS volumes, and IAM roles.
|
||||
//
|
||||
// You can use Amazon ECS to schedule the placement of containers across your
|
||||
// cluster based on your resource needs, isolation policies, and availability
|
||||
// requirements. Amazon EC2 Container Service eliminates the need for you to
|
||||
// operate your own cluster management and configuration management systems
|
||||
// or worry about scaling your management infrastructure.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13 for more information on this service.
|
||||
//
|
||||
// See ecs package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/ecs/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Amazon EC2 Container Service 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 EC2 Container Service client ECS for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/ecs/#New
|
||||
package ecs
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package ecsiface provides an interface to enable mocking the Amazon EC2 Container Service service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// 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.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // Amazon EC2 Container Service.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package ecs
|
||||
|
||||
|
||||
+796
-890
File diff suppressed because it is too large
Load Diff
+6
-15
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package ecs
|
||||
|
||||
@@ -11,21 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// Amazon EC2 Container Service (Amazon ECS) is a highly scalable, fast, container
|
||||
// management service that makes it easy to run, stop, and manage Docker containers
|
||||
// on a cluster of EC2 instances. Amazon ECS lets you launch and stop container-enabled
|
||||
// applications with simple API calls, allows you to get the state of your cluster
|
||||
// from a centralized service, and gives you access to many familiar Amazon
|
||||
// EC2 features like security groups, Amazon EBS volumes, and IAM roles.
|
||||
// ECS provides the API operation methods for making requests to
|
||||
// Amazon EC2 Container Service. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// You can use Amazon ECS to schedule the placement of containers across your
|
||||
// cluster based on your resource needs, isolation policies, and availability
|
||||
// requirements. Amazon EC2 Container Service eliminates the need for you to
|
||||
// operate your own cluster management and configuration management systems
|
||||
// or worry about scaling your management infrastructure.
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13
|
||||
// ECS methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type ECS struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
+29
-9
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package ecs
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
// WaitUntilServicesInactive uses the Amazon ECS API operation
|
||||
// DescribeServices to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *ECS) WaitUntilServicesInactive(input *DescribeServicesInput) error {
|
||||
return c.WaitUntilServicesInactiveWithContext(aws.BackgroundContext(), input)
|
||||
@@ -44,7 +44,12 @@ func (c *ECS) WaitUntilServicesInactiveWithContext(ctx aws.Context, input *Descr
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeServicesRequest(input)
|
||||
var inCpy *DescribeServicesInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeServicesRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -57,7 +62,7 @@ func (c *ECS) WaitUntilServicesInactiveWithContext(ctx aws.Context, input *Descr
|
||||
|
||||
// WaitUntilServicesStable uses the Amazon ECS API operation
|
||||
// DescribeServices to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *ECS) WaitUntilServicesStable(input *DescribeServicesInput) error {
|
||||
return c.WaitUntilServicesStableWithContext(aws.BackgroundContext(), input)
|
||||
@@ -100,7 +105,12 @@ func (c *ECS) WaitUntilServicesStableWithContext(ctx aws.Context, input *Describ
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeServicesRequest(input)
|
||||
var inCpy *DescribeServicesInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeServicesRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -113,7 +123,7 @@ func (c *ECS) WaitUntilServicesStableWithContext(ctx aws.Context, input *Describ
|
||||
|
||||
// WaitUntilTasksRunning uses the Amazon ECS API operation
|
||||
// DescribeTasks to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *ECS) WaitUntilTasksRunning(input *DescribeTasksInput) error {
|
||||
return c.WaitUntilTasksRunningWithContext(aws.BackgroundContext(), input)
|
||||
@@ -151,7 +161,12 @@ func (c *ECS) WaitUntilTasksRunningWithContext(ctx aws.Context, input *DescribeT
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeTasksRequest(input)
|
||||
var inCpy *DescribeTasksInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeTasksRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -164,7 +179,7 @@ func (c *ECS) WaitUntilTasksRunningWithContext(ctx aws.Context, input *DescribeT
|
||||
|
||||
// WaitUntilTasksStopped uses the Amazon ECS API operation
|
||||
// DescribeTasks to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *ECS) WaitUntilTasksStopped(input *DescribeTasksInput) error {
|
||||
return c.WaitUntilTasksStoppedWithContext(aws.BackgroundContext(), input)
|
||||
@@ -192,7 +207,12 @@ func (c *ECS) WaitUntilTasksStoppedWithContext(ctx aws.Context, input *DescribeT
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeTasksRequest(input)
|
||||
var inCpy *DescribeTasksInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeTasksRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
|
||||
Reference in New Issue
Block a user