Skip to content

Commit

Permalink
Add func description
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ikryvanos committed Dec 4, 2024
1 parent 3d68585 commit 7b4874b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/sansshell/client/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ import (
pb "github.com/Snowflake-Labs/sansshell/services/sansshell"
)

// GetSansshellVersion gets the version of the sansshell server for a particular target.
// Returns error if:
// - was provided not exactly one target
// - could not get the version from target
func GetSansshellVersion(ctx context.Context, conn *proxy.Conn) (string, error) {
if len(conn.Targets) != 1 {
return "", errors.New("GetSansshellVersion support only single target")
Expand Down

0 comments on commit 7b4874b

Please sign in to comment.