mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: github.com/aws/aws-sdk-go-v2/config v1.26.6
vendor github.com/aws/aws-sdk-go-v2/config v1.26.6 and related dependencies. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
3
vendor/github.com/aws/smithy-go/auth/auth.go
generated
vendored
Normal file
3
vendor/github.com/aws/smithy-go/auth/auth.go
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
// Package auth defines protocol-agnostic authentication types for smithy
|
||||
// clients.
|
||||
package auth
|
47
vendor/github.com/aws/smithy-go/auth/identity.go
generated
vendored
Normal file
47
vendor/github.com/aws/smithy-go/auth/identity.go
generated
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
package auth
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/aws/smithy-go"
|
||||
)
|
||||
|
||||
// Identity contains information that identifies who the user making the
|
||||
// request is.
|
||||
type Identity interface {
|
||||
Expiration() time.Time
|
||||
}
|
||||
|
||||
// IdentityResolver defines the interface through which an Identity is
|
||||
// retrieved.
|
||||
type IdentityResolver interface {
|
||||
GetIdentity(context.Context, smithy.Properties) (Identity, error)
|
||||
}
|
||||
|
||||
// IdentityResolverOptions defines the interface through which an entity can be
|
||||
// queried to retrieve an IdentityResolver for a given auth scheme.
|
||||
type IdentityResolverOptions interface {
|
||||
GetIdentityResolver(schemeID string) IdentityResolver
|
||||
}
|
||||
|
||||
// AnonymousIdentity is a sentinel to indicate no identity.
|
||||
type AnonymousIdentity struct{}
|
||||
|
||||
var _ Identity = (*AnonymousIdentity)(nil)
|
||||
|
||||
// Expiration returns the zero value for time, as anonymous identity never
|
||||
// expires.
|
||||
func (*AnonymousIdentity) Expiration() time.Time {
|
||||
return time.Time{}
|
||||
}
|
||||
|
||||
// AnonymousIdentityResolver returns AnonymousIdentity.
|
||||
type AnonymousIdentityResolver struct{}
|
||||
|
||||
var _ IdentityResolver = (*AnonymousIdentityResolver)(nil)
|
||||
|
||||
// GetIdentity returns AnonymousIdentity.
|
||||
func (*AnonymousIdentityResolver) GetIdentity(_ context.Context, _ smithy.Properties) (Identity, error) {
|
||||
return &AnonymousIdentity{}, nil
|
||||
}
|
25
vendor/github.com/aws/smithy-go/auth/option.go
generated
vendored
Normal file
25
vendor/github.com/aws/smithy-go/auth/option.go
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
package auth
|
||||
|
||||
import "github.com/aws/smithy-go"
|
||||
|
||||
type (
|
||||
authOptionsKey struct{}
|
||||
)
|
||||
|
||||
// Option represents a possible authentication method for an operation.
|
||||
type Option struct {
|
||||
SchemeID string
|
||||
IdentityProperties smithy.Properties
|
||||
SignerProperties smithy.Properties
|
||||
}
|
||||
|
||||
// GetAuthOptions gets auth Options from Properties.
|
||||
func GetAuthOptions(p *smithy.Properties) ([]*Option, bool) {
|
||||
v, ok := p.Get(authOptionsKey{}).([]*Option)
|
||||
return v, ok
|
||||
}
|
||||
|
||||
// SetAuthOptions sets auth Options on Properties.
|
||||
func SetAuthOptions(p *smithy.Properties, options []*Option) {
|
||||
p.Set(authOptionsKey{}, options)
|
||||
}
|
20
vendor/github.com/aws/smithy-go/auth/scheme_id.go
generated
vendored
Normal file
20
vendor/github.com/aws/smithy-go/auth/scheme_id.go
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
package auth
|
||||
|
||||
// Anonymous
|
||||
const (
|
||||
SchemeIDAnonymous = "smithy.api#noAuth"
|
||||
)
|
||||
|
||||
// HTTP auth schemes
|
||||
const (
|
||||
SchemeIDHTTPBasic = "smithy.api#httpBasicAuth"
|
||||
SchemeIDHTTPDigest = "smithy.api#httpDigestAuth"
|
||||
SchemeIDHTTPBearer = "smithy.api#httpBearerAuth"
|
||||
SchemeIDHTTPAPIKey = "smithy.api#httpApiKeyAuth"
|
||||
)
|
||||
|
||||
// AWS auth schemes
|
||||
const (
|
||||
SchemeIDSigV4 = "aws.auth#sigv4"
|
||||
SchemeIDSigV4A = "aws.auth#sigv4a"
|
||||
)
|
Reference in New Issue
Block a user