lupa

package
v0.0.0-...-37e2758 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ChannelType = "lupa@buglloc.com"

Variables

This section is empty.

Functions

func UnmarshalMsg

func UnmarshalMsg(packet []byte) (interface{}, error)

Types

type CallMsg

type CallMsg struct {
	Type    string
	Payload []byte `ssh:"rest"`
}

type Channel

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

func NewChannel

func NewChannel(conn io.ReadWriteCloser) *Channel

func (*Channel) Call

func (c *Channel) Call(typ string, req interface{}) (reply interface{}, err error)

func (*Channel) Close

func (c *Channel) Close() error

func (*Channel) ProcessRequest

func (c *Channel) ProcessRequest(fn func(string, interface{}) (interface{}, error)) error

type Client

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

func NewClient

func NewClient(sshc *ssh.Client) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) Get

func (c *Client) Get(keyID string) ([]byte, error)

func (*Client) Put

func (c *Client) Put(data []byte) (string, error)

type FailureMsg

type FailureMsg struct {
	Msg string `sshtype:"100"`
}

type GetReqMsg

type GetReqMsg struct {
	KeyID string `sshtype:"112"`
}

type GetRspMsg

type GetRspMsg struct {
	Data []byte `sshtype:"113"`
}

type PutReqMsg

type PutReqMsg struct {
	Data []byte `sshtype:"110"`
}

type PutRspMsg

type PutRspMsg struct {
	KeyID string `sshtype:"111"`
}

type SuccessMsg

type SuccessMsg struct{}

Jump to

Keyboard shortcuts

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