-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6325 from ROunofF/update-local-sdk2
Update cloudprovider/aws/aws-sdk-go to 1.48.7
- Loading branch information
Showing
2,925 changed files
with
1,742,421 additions
and
1,862,166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...-autoscaler/cloudprovider/aws/aws-sdk-go/.changelog/6b25cc1a38cf4e229728e8e169b9152b.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"id": "6b25cc1a-38cf-4e22-9728-e8e169b9152b", | ||
"type": "feature", | ||
"description": "Add awsQueryCompatible error code translation support", | ||
"modules": [ | ||
"." | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
...-autoscaler/cloudprovider/aws/aws-sdk-go/.changelog/6eb0ebebe73b422a969ea440174c3e83.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"id": "6eb0ebeb-e73b-422a-969e-a440174c3e83", | ||
"type": "bugfix", | ||
"description": "Removes old model file for ssm sap and uses the new model file to regenerate client", | ||
"modules": [ | ||
"." | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
...-autoscaler/cloudprovider/aws/aws-sdk-go/.changelog/74c9af99629e453b97a0af6251efd414.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"id": "74c9af99-629e-453b-97a0-af6251efd414", | ||
"type": "bugfix", | ||
"description": "endpoints were incorrect for kendra-ranking. this fixes that", | ||
"modules": [ | ||
"." | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
cluster-autoscaler/cloudprovider/aws/aws-sdk-go/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
dist | ||
/doc | ||
/doc-staging | ||
.yardoc | ||
Gemfile.lock | ||
awstesting/integration/smoke/**/importmarker__.go | ||
awstesting/integration/smoke/_test/ | ||
/vendor/bin/ | ||
/vendor/pkg/ | ||
/vendor/src/ | ||
/private/model/cli/gen-api/gen-api |
14 changes: 14 additions & 0 deletions
14
cluster-autoscaler/cloudprovider/aws/aws-sdk-go/.godoc_config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"PkgHandler": { | ||
"Pattern": "/sdk-for-go/api/", | ||
"StripPrefix": "/sdk-for-go/api", | ||
"Include": ["/src/k8s.io/autoscaler/cluster-autoscaler/cloudprovider/aws/aws-sdk-go/aws", "/src/k8s.io/autoscaler/cluster-autoscaler/cloudprovider/aws/aws-sdk-go/service"], | ||
"Exclude": ["/src/cmd", "/src/k8s.io/autoscaler/cluster-autoscaler/cloudprovider/aws/aws-sdk-go/awstesting", "/src/k8s.io/autoscaler/cluster-autoscaler/cloudprovider/aws/aws-sdk-go/awsmigrate", "/src/k8s.io/autoscaler/cluster-autoscaler/cloudprovider/aws/aws-sdk-go/private"], | ||
"IgnoredSuffixes": ["iface"] | ||
}, | ||
"Github": { | ||
"Tag": "master", | ||
"Repo": "/aws/aws-sdk-go", | ||
"UseGithub": true | ||
} | ||
} |
132 changes: 0 additions & 132 deletions
132
cluster-autoscaler/cloudprovider/aws/aws-sdk-go/aws/arn/arn_test.go
This file was deleted.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
cluster-autoscaler/cloudprovider/aws/aws-sdk-go/aws/auth/bearer/token.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package bearer | ||
|
||
import ( | ||
"k8s.io/autoscaler/cluster-autoscaler/cloudprovider/aws/aws-sdk-go/aws" | ||
"time" | ||
) | ||
|
||
// Token provides a type wrapping a bearer token and expiration metadata. | ||
type Token struct { | ||
Value string | ||
|
||
CanExpire bool | ||
Expires time.Time | ||
} | ||
|
||
// Expired returns if the token's Expires time is before or equal to the time | ||
// provided. If CanExpire is false, Expired will always return false. | ||
func (t Token) Expired(now time.Time) bool { | ||
if !t.CanExpire { | ||
return false | ||
} | ||
now = now.Round(0) | ||
return now.Equal(t.Expires) || now.After(t.Expires) | ||
} | ||
|
||
// TokenProvider provides interface for retrieving bearer tokens. | ||
type TokenProvider interface { | ||
RetrieveBearerToken(aws.Context) (Token, error) | ||
} | ||
|
||
// TokenProviderFunc provides a helper utility to wrap a function as a type | ||
// that implements the TokenProvider interface. | ||
type TokenProviderFunc func(aws.Context) (Token, error) | ||
|
||
// RetrieveBearerToken calls the wrapped function, returning the Token or | ||
// error. | ||
func (fn TokenProviderFunc) RetrieveBearerToken(ctx aws.Context) (Token, error) { | ||
return fn(ctx) | ||
} | ||
|
||
// StaticTokenProvider provides a utility for wrapping a static bearer token | ||
// value within an implementation of a token provider. | ||
type StaticTokenProvider struct { | ||
Token Token | ||
} | ||
|
||
// RetrieveBearerToken returns the static token specified. | ||
func (s StaticTokenProvider) RetrieveBearerToken(aws.Context) (Token, error) { | ||
return s.Token, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.