Fix: Add TTL and custom Timeout in DigitalOcean DNS provider
This commit is contained in:
parent
66485e81b4
commit
0ef1b7b683
120 changed files with 23764 additions and 9782 deletions
15975
vendor/github.com/aws/aws-sdk-go/service/lightsail/api.go
generated
vendored
Normal file
15975
vendor/github.com/aws/aws-sdk-go/service/lightsail/api.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
40
vendor/github.com/aws/aws-sdk-go/service/lightsail/doc.go
generated
vendored
Normal file
40
vendor/github.com/aws/aws-sdk-go/service/lightsail/doc.go
generated
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package lightsail provides the client and types for making API
|
||||
// requests to Amazon Lightsail.
|
||||
//
|
||||
// Amazon Lightsail is the easiest way to get started with AWS for developers
|
||||
// who just need virtual private servers. Lightsail includes everything you
|
||||
// need to launch your project quickly - a virtual machine, SSD-based storage,
|
||||
// data transfer, DNS management, and a static IP - for a low, predictable price.
|
||||
// You manage those Lightsail servers through the Lightsail console or by using
|
||||
// the API or command-line interface (CLI).
|
||||
//
|
||||
// For more information about Lightsail concepts and tasks, see the Lightsail
|
||||
// Dev Guide (https://lightsail.aws.amazon.com/ls/docs/all).
|
||||
//
|
||||
// To use the Lightsail API or the CLI, you will need to use AWS Identity and
|
||||
// Access Management (IAM) to generate access keys. For details about how to
|
||||
// set this up, see the Lightsail Dev Guide (http://lightsail.aws.amazon.com/ls/docs/how-to/article/lightsail-how-to-set-up-access-keys-to-use-sdk-api-cli).
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28 for more information on this service.
|
||||
//
|
||||
// See lightsail package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/lightsail/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To contact Amazon Lightsail 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 Lightsail client Lightsail for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/lightsail/#New
|
||||
package lightsail
|
55
vendor/github.com/aws/aws-sdk-go/service/lightsail/errors.go
generated
vendored
Normal file
55
vendor/github.com/aws/aws-sdk-go/service/lightsail/errors.go
generated
vendored
Normal file
|
@ -0,0 +1,55 @@
|
|||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package lightsail
|
||||
|
||||
const (
|
||||
|
||||
// ErrCodeAccessDeniedException for service response error code
|
||||
// "AccessDeniedException".
|
||||
//
|
||||
// Lightsail throws this exception when the user cannot be authenticated or
|
||||
// uses invalid credentials to access a resource.
|
||||
ErrCodeAccessDeniedException = "AccessDeniedException"
|
||||
|
||||
// ErrCodeAccountSetupInProgressException for service response error code
|
||||
// "AccountSetupInProgressException".
|
||||
//
|
||||
// Lightsail throws this exception when an account is still in the setup in
|
||||
// progress state.
|
||||
ErrCodeAccountSetupInProgressException = "AccountSetupInProgressException"
|
||||
|
||||
// ErrCodeInvalidInputException for service response error code
|
||||
// "InvalidInputException".
|
||||
//
|
||||
// Lightsail throws this exception when user input does not conform to the validation
|
||||
// rules of an input field.
|
||||
//
|
||||
// Domain-related APIs are only available in the N. Virginia (us-east-1) Region.
|
||||
// Please set your Region configuration to us-east-1 to create, view, or edit
|
||||
// these resources.
|
||||
ErrCodeInvalidInputException = "InvalidInputException"
|
||||
|
||||
// ErrCodeNotFoundException for service response error code
|
||||
// "NotFoundException".
|
||||
//
|
||||
// Lightsail throws this exception when it cannot find a resource.
|
||||
ErrCodeNotFoundException = "NotFoundException"
|
||||
|
||||
// ErrCodeOperationFailureException for service response error code
|
||||
// "OperationFailureException".
|
||||
//
|
||||
// Lightsail throws this exception when an operation fails to execute.
|
||||
ErrCodeOperationFailureException = "OperationFailureException"
|
||||
|
||||
// ErrCodeServiceException for service response error code
|
||||
// "ServiceException".
|
||||
//
|
||||
// A general service exception.
|
||||
ErrCodeServiceException = "ServiceException"
|
||||
|
||||
// ErrCodeUnauthenticatedException for service response error code
|
||||
// "UnauthenticatedException".
|
||||
//
|
||||
// Lightsail throws this exception when the user has not been authenticated.
|
||||
ErrCodeUnauthenticatedException = "UnauthenticatedException"
|
||||
)
|
95
vendor/github.com/aws/aws-sdk-go/service/lightsail/service.go
generated
vendored
Normal file
95
vendor/github.com/aws/aws-sdk-go/service/lightsail/service.go
generated
vendored
Normal file
|
@ -0,0 +1,95 @@
|
|||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package lightsail
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// Lightsail provides the API operation methods for making requests to
|
||||
// Amazon Lightsail. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// Lightsail methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type Lightsail 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 = "lightsail" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
)
|
||||
|
||||
// New creates a new instance of the Lightsail 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 Lightsail client from just a session.
|
||||
// svc := lightsail.New(mySession)
|
||||
//
|
||||
// // Create a Lightsail client with additional configuration
|
||||
// svc := lightsail.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *Lightsail {
|
||||
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) *Lightsail {
|
||||
svc := &Lightsail{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2016-11-28",
|
||||
JSONVersion: "1.1",
|
||||
TargetPrefix: "Lightsail_20161128",
|
||||
},
|
||||
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 Lightsail operation and runs any
|
||||
// custom request initialization.
|
||||
func (c *Lightsail) 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