github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/credentials/options.go (about)

     1  package credentials
     2  
     3  import (
     4  	"google.golang.org/grpc"
     5  
     6  	"github.com/ydb-platform/ydb-go-sdk/v3/internal/credentials"
     7  )
     8  
     9  // WithSourceInfo option append to credentials object the source info for reporting source info details on error case
    10  func WithSourceInfo(sourceInfo string) credentials.SourceInfoOption {
    11  	return credentials.WithSourceInfo(sourceInfo)
    12  }
    13  
    14  // WithGrpcDialOptions option append to static credentials object GRPC dial options
    15  func WithGrpcDialOptions(opts ...grpc.DialOption) credentials.StaticCredentialsOption {
    16  	return credentials.WithGrpcDialOptions(opts...)
    17  }