common

package
v0.0.0-...-9758eb9 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPublicKeyCallback

func GetPublicKeyCallback(
	orgWideCACertificate ssh.PublicKey,
	border0ApiClient border0.Border0API,
	socket *models.Socket,
	e2eeMetadata *border0.E2EEncryptionMetadata,
	checkAllowedUsernames bool,
) func(ssh.ConnMetadata, ssh.PublicKey) (*ssh.Permissions, error)

GetPublicKeyCallback returns a function to be provided as the PublicKeyCallback field of an ssh.ServerConfig object. This function is invoked by the ssh server in order to verify, among other things, that the certificate being provided by a given ssh client is issued by the correct organization-wide certificate authority.

func ParseDims

func ParseDims(b []byte) (uint32, uint32)

ParseDims parses a message as width and height dimensions (4 bytes each).

Types

type Recording

type Recording struct {
	// contains filtered or unexported fields
}

func NewRecording

func NewRecording(logger *zap.Logger, reader io.ReadCloser, socketID, sessionKey string, api border0.Border0API, width, height int) *Recording

func (*Recording) Record

func (r *Recording) Record() error

func (*Recording) Stop

func (r *Recording) Stop() error

Jump to

Keyboard shortcuts

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