github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl@v0.2.0/awscryptographymaterialproviderssmithygenerated/ClientSupplierNativeWrapper.go (about) 1 // Code generated by smithy-go-codegen DO NOT EDIT. 2 3 package awscryptographymaterialproviderssmithygenerated 4 5 import ( 6 "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/AwsCryptographyMaterialProvidersTypes" 7 "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/awscryptographymaterialproviderssmithygeneratedtypes" 8 "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Wrappers" 9 ) 10 11 type ClientSupplierNativeWrapper struct { 12 AwsCryptographyMaterialProvidersTypes.IClientSupplier 13 Impl awscryptographymaterialproviderssmithygeneratedtypes.IClientSupplier 14 } 15 16 func (this *ClientSupplierNativeWrapper) GetClient(input AwsCryptographyMaterialProvidersTypes.GetClientInput) Wrappers.Result { 17 var native_request = GetClientInput_FromDafny(input) 18 var native_response, native_error = this.Impl.GetClient(native_request) 19 if native_error != nil { 20 return Wrappers.Companion_Result_.Create_Failure_(Error_ToDafny(native_error)) 21 } 22 return Wrappers.Companion_Result_.Create_Success_(Aws_cryptography_materialProviders_GetClientOutput_client_ToDafny(&native_response)) 23 }