ssh

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ssh provides the JSON-serializable model and mapper for the SSH layer's result. It registers itself with the jsonapi registry via init().

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromResult

func FromResult(data greet.LayerData) any

FromResult maps a *ssh.SSHResult to *Data. It returns the input unchanged when data is not a *ssh.SSHResult.

func Register

func Register(c *jsonapi.Codec)

Register registers the SSH data mapper on the given Codec.

Types

type Data

type Data struct {
	VersionString string `json:"versionString"`
}

Data is the JSON-serializable payload for an SSH layer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL