auth.go (1222B)
1 package client 2 3 import ( 4 "context" 5 "github.com/aws/smithy-go/middleware" 6 ) 7 8 type getIdentityMiddleware struct { 9 options Options 10 } 11 12 func (*getIdentityMiddleware) ID() string { 13 return "GetIdentity" 14 } 15 16 func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( 17 out middleware.FinalizeOutput, metadata middleware.Metadata, err error, 18 ) { 19 return next.HandleFinalize(ctx, in) 20 } 21 22 type signRequestMiddleware struct { 23 } 24 25 func (*signRequestMiddleware) ID() string { 26 return "Signing" 27 } 28 29 func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( 30 out middleware.FinalizeOutput, metadata middleware.Metadata, err error, 31 ) { 32 return next.HandleFinalize(ctx, in) 33 } 34 35 type resolveAuthSchemeMiddleware struct { 36 operation string 37 options Options 38 } 39 40 func (*resolveAuthSchemeMiddleware) ID() string { 41 return "ResolveAuthScheme" 42 } 43 44 func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( 45 out middleware.FinalizeOutput, metadata middleware.Metadata, err error, 46 ) { 47 return next.HandleFinalize(ctx, in) 48 }