mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-10-15 03:40:56 +08:00
refactor: update go mod library (#210)
refactor: update go mod library and refactor dev logic Co-authored-by: wencaiwulue <895703375@qq.com>
This commit is contained in:
5
vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/token_provider.go
generated
vendored
5
vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/token_provider.go
generated
vendored
@@ -2,6 +2,7 @@ package ec2metadata
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"net/http"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
@@ -65,7 +66,9 @@ func (t *tokenProvider) fetchTokenHandler(r *request.Request) {
|
||||
switch requestFailureError.StatusCode() {
|
||||
case http.StatusForbidden, http.StatusNotFound, http.StatusMethodNotAllowed:
|
||||
atomic.StoreUint32(&t.disabled, 1)
|
||||
t.client.Config.Logger.Log(fmt.Sprintf("WARN: failed to get session token, falling back to IMDSv1: %v", requestFailureError))
|
||||
if t.client.Config.LogLevel.Matches(aws.LogDebugWithDeprecated) {
|
||||
t.client.Config.Logger.Log(fmt.Sprintf("WARN: failed to get session token, falling back to IMDSv1: %v", requestFailureError))
|
||||
}
|
||||
case http.StatusBadRequest:
|
||||
r.Error = requestFailureError
|
||||
}
|
||||
|
1217
vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go
generated
vendored
1217
vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go
generated
vendored
File diff suppressed because it is too large
Load Diff
2
vendor/github.com/aws/aws-sdk-go/aws/version.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/aws/version.go
generated
vendored
@@ -5,4 +5,4 @@ package aws
|
||||
const SDKName = "aws-sdk-go"
|
||||
|
||||
// SDKVersion is the version of this SDK
|
||||
const SDKVersion = "1.49.13"
|
||||
const SDKVersion = "1.51.12"
|
||||
|
217
vendor/github.com/aws/aws-sdk-go/service/route53/api.go
generated
vendored
217
vendor/github.com/aws/aws-sdk-go/service/route53/api.go
generated
vendored
@@ -8086,7 +8086,7 @@ type AliasTarget struct {
|
||||
// in. The environment must have a regionalized subdomain. For a list of regions
|
||||
// and the corresponding hosted zone IDs, see Elastic Beanstalk endpoints and
|
||||
// quotas (https://docs.aws.amazon.com/general/latest/gr/elasticbeanstalk.html)
|
||||
// in the the Amazon Web Services General Reference.
|
||||
// in the Amazon Web Services General Reference.
|
||||
//
|
||||
// ELB load balancer
|
||||
//
|
||||
@@ -9332,6 +9332,75 @@ func (s *CollectionSummary) SetVersion(v int64) *CollectionSummary {
|
||||
return s
|
||||
}
|
||||
|
||||
// A complex type that lists the coordinates for a geoproximity resource record.
|
||||
type Coordinates struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Specifies a coordinate of the north–south position of a geographic point
|
||||
// on the surface of the Earth (-90 - 90).
|
||||
//
|
||||
// Latitude is a required field
|
||||
Latitude *string `min:"1" type:"string" required:"true"`
|
||||
|
||||
// Specifies a coordinate of the east–west position of a geographic point
|
||||
// on the surface of the Earth (-180 - 180).
|
||||
//
|
||||
// Longitude is a required field
|
||||
Longitude *string `min:"1" type:"string" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation.
|
||||
//
|
||||
// API parameter values that are decorated as "sensitive" in the API will not
|
||||
// be included in the string output. The member name will be present, but the
|
||||
// value will be replaced with "sensitive".
|
||||
func (s Coordinates) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation.
|
||||
//
|
||||
// API parameter values that are decorated as "sensitive" in the API will not
|
||||
// be included in the string output. The member name will be present, but the
|
||||
// value will be replaced with "sensitive".
|
||||
func (s Coordinates) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *Coordinates) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "Coordinates"}
|
||||
if s.Latitude == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("Latitude"))
|
||||
}
|
||||
if s.Latitude != nil && len(*s.Latitude) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Latitude", 1))
|
||||
}
|
||||
if s.Longitude == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("Longitude"))
|
||||
}
|
||||
if s.Longitude != nil && len(*s.Longitude) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Longitude", 1))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetLatitude sets the Latitude field's value.
|
||||
func (s *Coordinates) SetLatitude(v string) *Coordinates {
|
||||
s.Latitude = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetLongitude sets the Longitude field's value.
|
||||
func (s *Coordinates) SetLongitude(v string) *Coordinates {
|
||||
s.Longitude = &v
|
||||
return s
|
||||
}
|
||||
|
||||
type CreateCidrCollectionInput struct {
|
||||
_ struct{} `locationName:"CreateCidrCollectionRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
|
||||
|
||||
@@ -10738,7 +10807,7 @@ func (s *CreateVPCAssociationAuthorizationOutput) SetVPC(v *VPC) *CreateVPCAssoc
|
||||
return s
|
||||
}
|
||||
|
||||
// A string repesenting the status of DNSSEC signing.
|
||||
// A string representing the status of DNSSEC signing.
|
||||
type DNSSECStatus struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -12063,7 +12132,7 @@ type GeoLocation struct {
|
||||
// Amazon Route 53 uses the two-letter country codes that are specified in ISO
|
||||
// standard 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
|
||||
//
|
||||
// Route 53 also supports the contry code UA forr Ukraine.
|
||||
// Route 53 also supports the country code UA for Ukraine.
|
||||
CountryCode *string `min:"1" type:"string"`
|
||||
|
||||
// For geolocation resource record sets, the two-letter code for a state of
|
||||
@@ -12215,6 +12284,119 @@ func (s *GeoLocationDetails) SetSubdivisionName(v string) *GeoLocationDetails {
|
||||
return s
|
||||
}
|
||||
|
||||
// (Resource record sets only): A complex type that lets you specify where your
|
||||
// resources are located. Only one of LocalZoneGroup, Coordinates, or Amazon
|
||||
// Web ServicesRegion is allowed per request at a time.
|
||||
//
|
||||
// For more information about geoproximity routing, see Geoproximity routing
|
||||
// (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy-geoproximity.html)
|
||||
// in the Amazon Route 53 Developer Guide.
|
||||
type GeoProximityLocation struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The Amazon Web Services Region the resource you are directing DNS traffic
|
||||
// to, is in.
|
||||
AWSRegion *string `min:"1" type:"string"`
|
||||
|
||||
// The bias increases or decreases the size of the geographic region from which
|
||||
// Route 53 routes traffic to a resource.
|
||||
//
|
||||
// To use Bias to change the size of the geographic region, specify the applicable
|
||||
// value for the bias:
|
||||
//
|
||||
// * To expand the size of the geographic region from which Route 53 routes
|
||||
// traffic to a resource, specify a positive integer from 1 to 99 for the
|
||||
// bias. Route 53 shrinks the size of adjacent regions.
|
||||
//
|
||||
// * To shrink the size of the geographic region from which Route 53 routes
|
||||
// traffic to a resource, specify a negative bias of -1 to -99. Route 53
|
||||
// expands the size of adjacent regions.
|
||||
Bias *int64 `type:"integer"`
|
||||
|
||||
// Contains the longitude and latitude for a geographic region.
|
||||
Coordinates *Coordinates `type:"structure"`
|
||||
|
||||
// Specifies an Amazon Web Services Local Zone Group.
|
||||
//
|
||||
// A local Zone Group is usually the Local Zone code without the ending character.
|
||||
// For example, if the Local Zone is us-east-1-bue-1a the Local Zone Group is
|
||||
// us-east-1-bue-1.
|
||||
//
|
||||
// You can identify the Local Zones Group for a specific Local Zone by using
|
||||
// the describe-availability-zones (https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-availability-zones.html)
|
||||
// CLI command:
|
||||
//
|
||||
// This command returns: "GroupName": "us-west-2-den-1", specifying that the
|
||||
// Local Zone us-west-2-den-1a belongs to the Local Zone Group us-west-2-den-1.
|
||||
LocalZoneGroup *string `min:"1" type:"string"`
|
||||
}
|
||||
|
||||
// String returns the string representation.
|
||||
//
|
||||
// API parameter values that are decorated as "sensitive" in the API will not
|
||||
// be included in the string output. The member name will be present, but the
|
||||
// value will be replaced with "sensitive".
|
||||
func (s GeoProximityLocation) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation.
|
||||
//
|
||||
// API parameter values that are decorated as "sensitive" in the API will not
|
||||
// be included in the string output. The member name will be present, but the
|
||||
// value will be replaced with "sensitive".
|
||||
func (s GeoProximityLocation) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *GeoProximityLocation) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "GeoProximityLocation"}
|
||||
if s.AWSRegion != nil && len(*s.AWSRegion) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("AWSRegion", 1))
|
||||
}
|
||||
if s.Bias != nil && *s.Bias < -99 {
|
||||
invalidParams.Add(request.NewErrParamMinValue("Bias", -99))
|
||||
}
|
||||
if s.LocalZoneGroup != nil && len(*s.LocalZoneGroup) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("LocalZoneGroup", 1))
|
||||
}
|
||||
if s.Coordinates != nil {
|
||||
if err := s.Coordinates.Validate(); err != nil {
|
||||
invalidParams.AddNested("Coordinates", err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetAWSRegion sets the AWSRegion field's value.
|
||||
func (s *GeoProximityLocation) SetAWSRegion(v string) *GeoProximityLocation {
|
||||
s.AWSRegion = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetBias sets the Bias field's value.
|
||||
func (s *GeoProximityLocation) SetBias(v int64) *GeoProximityLocation {
|
||||
s.Bias = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetCoordinates sets the Coordinates field's value.
|
||||
func (s *GeoProximityLocation) SetCoordinates(v *Coordinates) *GeoProximityLocation {
|
||||
s.Coordinates = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetLocalZoneGroup sets the LocalZoneGroup field's value.
|
||||
func (s *GeoProximityLocation) SetLocalZoneGroup(v string) *GeoProximityLocation {
|
||||
s.LocalZoneGroup = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// A complex type that contains information about the request to create a hosted
|
||||
// zone.
|
||||
type GetAccountLimitInput struct {
|
||||
@@ -12535,7 +12717,7 @@ type GetDNSSECOutput struct {
|
||||
// KeySigningKeys is a required field
|
||||
KeySigningKeys []*KeySigningKey `type:"list" required:"true"`
|
||||
|
||||
// A string repesenting the status of DNSSEC.
|
||||
// A string representing the status of DNSSEC.
|
||||
//
|
||||
// Status is a required field
|
||||
Status *DNSSECStatus `type:"structure" required:"true"`
|
||||
@@ -12597,7 +12779,7 @@ type GetGeoLocationInput struct {
|
||||
// Amazon Route 53 uses the two-letter country codes that are specified in ISO
|
||||
// standard 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
|
||||
//
|
||||
// Route 53 also supports the contry code UA forr Ukraine.
|
||||
// Route 53 also supports the country code UA for Ukraine.
|
||||
CountryCode *string `location:"querystring" locationName:"countrycode" min:"1" type:"string"`
|
||||
|
||||
// The code for the subdivision, such as a particular state within the United
|
||||
@@ -14242,7 +14424,7 @@ type HealthCheckConfig struct {
|
||||
// checkers consider to be healthy and compares that number with the value
|
||||
// of HealthThreshold.
|
||||
//
|
||||
// * RECOVERY_CONTROL: The health check is assocated with a Route53 Application
|
||||
// * RECOVERY_CONTROL: The health check is associated with a Route53 Application
|
||||
// Recovery Controller routing control. If the routing control state is ON,
|
||||
// the health check is considered healthy. If the state is OFF, the health
|
||||
// check is considered unhealthy.
|
||||
@@ -18153,9 +18335,6 @@ type ResourceRecordSet struct {
|
||||
// to a web server with an IP address of 192.0.2.111, create a resource record
|
||||
// set with a Type of A and a ContinentCode of AF.
|
||||
//
|
||||
// Although creating geolocation and geolocation alias resource record sets
|
||||
// in a private hosted zone is allowed, it's not supported.
|
||||
//
|
||||
// If you create separate resource record sets for overlapping geographic regions
|
||||
// (for example, one resource record set for a continent and one for a country
|
||||
// on the same continent), priority goes to the smallest geographic region.
|
||||
@@ -18184,6 +18363,11 @@ type ResourceRecordSet struct {
|
||||
// values for the Name and Type elements as geolocation resource record sets.
|
||||
GeoLocation *GeoLocation `type:"structure"`
|
||||
|
||||
// GeoproximityLocation resource record sets only: A complex type that lets
|
||||
// you control how Route 53 responds to DNS queries based on the geographic
|
||||
// origin of the query and your resources.
|
||||
GeoProximityLocation *GeoProximityLocation `type:"structure"`
|
||||
|
||||
// If you want Amazon Route 53 to return this resource record set in response
|
||||
// to a DNS query only when the status of a health check is healthy, include
|
||||
// the HealthCheckId element and specify the ID of the applicable health check.
|
||||
@@ -18561,6 +18745,11 @@ func (s *ResourceRecordSet) Validate() error {
|
||||
invalidParams.AddNested("GeoLocation", err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
if s.GeoProximityLocation != nil {
|
||||
if err := s.GeoProximityLocation.Validate(); err != nil {
|
||||
invalidParams.AddNested("GeoProximityLocation", err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
if s.ResourceRecords != nil {
|
||||
for i, v := range s.ResourceRecords {
|
||||
if v == nil {
|
||||
@@ -18602,6 +18791,12 @@ func (s *ResourceRecordSet) SetGeoLocation(v *GeoLocation) *ResourceRecordSet {
|
||||
return s
|
||||
}
|
||||
|
||||
// SetGeoProximityLocation sets the GeoProximityLocation field's value.
|
||||
func (s *ResourceRecordSet) SetGeoProximityLocation(v *GeoProximityLocation) *ResourceRecordSet {
|
||||
s.GeoProximityLocation = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetHealthCheckId sets the HealthCheckId field's value.
|
||||
func (s *ResourceRecordSet) SetHealthCheckId(v string) *ResourceRecordSet {
|
||||
s.HealthCheckId = &v
|
||||
@@ -19512,6 +19707,10 @@ type UpdateHealthCheckInput struct {
|
||||
// you specify in RequestInterval. Using an IPv4 address that is returned by
|
||||
// DNS, Route 53 then checks the health of the endpoint.
|
||||
//
|
||||
// If you don't specify a value for IPAddress, you can’t update the health
|
||||
// check to remove the FullyQualifiedDomainName; if you don’t specify a value
|
||||
// for IPAddress on creation, a FullyQualifiedDomainName is required.
|
||||
//
|
||||
// If you don't specify a value for IPAddress, Route 53 uses only IPv4 to send
|
||||
// health checks to the endpoint. If there's no resource record set with a type
|
||||
// of A for the name that you specify for FullyQualifiedDomainName, the health
|
||||
|
Reference in New Issue
Block a user