Documentation
¶
Index ¶
- Constants
- func ExpandPathWithTilde(path string) string
- func GenerateAckRequest(username string) string
- func GenerateAckResponse(ackRequest string) string
- func IsAckRequest(msg string) bool
- func IsAckResponse(msg string) bool
- func KeyPathToCert(keyPath string) string
- func KeyPathToPubKey(keyPath string) string
- func PubKeyPathToKeyPath(pubKeyPath string) string
- type KBFSOperation
- func (ko *KBFSOperation) KBFSDelete(filename string) error
- func (ko *KBFSOperation) KBFSFileExists(kbfsFilename string) (bool, error)
- func (ko *KBFSOperation) KBFSList(path string) ([]string, error)
- func (ko *KBFSOperation) KBFSRead(kbfsFilename string) ([]byte, error)
- func (ko *KBFSOperation) KBFSWrite(filename string, contents string, appendToFile bool) error
- type SignatureRequest
- type SignatureResponse
Constants ¶
const AckRequestPrefix = "AckRequest--"
const BoundedParallelismLimit = 50
The maximum number of goroutines to create when doing parallel operations
const ConfigFilename = "kssh-client.config"
The name of the kssh client config file that is stored in KBFS
const SignatureRequestPreamble = "Signature_Request:"
The preamble used at the start of signature request messages
const SignatureResponsePreamble = "Signature_Response:"
The preamble used at the start of signature response messages
Variables ¶
This section is empty.
Functions ¶
func ExpandPathWithTilde ¶
Expand out a path that starts with a tilde to be an absolute path
func GenerateAckRequest ¶
Generate an AckRequest for the given username
func GenerateAckResponse ¶
Generate an AckResponse in response to the given ack request
func IsAckRequest ¶
Returns whether the given message is an ack request
func IsAckResponse ¶
Returns whether the given message is an ack response
func KeyPathToCert ¶
Returns the location of the signature associated with the given private key
func KeyPathToPubKey ¶
Returns the location of the public key associated with the given private key
func PubKeyPathToKeyPath ¶
Returns the location of the private key associated with the given public key
Types ¶
type KBFSOperation ¶
type KBFSOperation struct {
KeybaseBinaryPath string
}
func (*KBFSOperation) KBFSDelete ¶
func (ko *KBFSOperation) KBFSDelete(filename string) error
Delete the specified KBFS file
func (*KBFSOperation) KBFSFileExists ¶
func (ko *KBFSOperation) KBFSFileExists(kbfsFilename string) (bool, error)
Returns whether the given KBFS file exists
func (*KBFSOperation) KBFSList ¶
func (ko *KBFSOperation) KBFSList(path string) ([]string, error)
List KBFS files in the given KBFS path
type SignatureRequest ¶
type SignatureRequest struct { SSHPublicKey string `json:"ssh_public_key"` UUID string `json:"uuid"` Username string `json:"-"` DeviceName string `json:"-"` RequestedAddress string `json:"requested_address"` }
The body of signature request messages sent over KB chat
func ParseSignatureRequest ¶
func ParseSignatureRequest(body string) (SignatureRequest, error)
Parse the given string as a serialized SignatureRequest
type SignatureResponse ¶
The body of signature response messages sent over KB chat
func ParseSignatureResponse ¶
func ParseSignatureResponse(body string) (SignatureResponse, error)
Parse the given string as a serialized SignatureResponse