Documentation ¶
Index ¶
- Constants
- func ParseKeysFromBytes(conf *ssh.ServerConfig, pemBytes []byte) error
- func ParseKeysFromFile(conf *ssh.ServerConfig, filename string) error
- func RunServer(conf *ServerConfig) error
- type BackingStore
- type Client
- type ClientHandler
- type ClientSession
- type FileBackingStore
- type GitReceiveSession
- type HashingReader
- type RefMap
- type ServerConfig
Constants ¶
View Source
const RefsKey = "refs"
Variables ¶
This section is empty.
Functions ¶
func ParseKeysFromBytes ¶
func ParseKeysFromBytes(conf *ssh.ServerConfig, pemBytes []byte) error
func ParseKeysFromFile ¶
func ParseKeysFromFile(conf *ssh.ServerConfig, filename string) error
func RunServer ¶
func RunServer(conf *ServerConfig) error
Types ¶
type BackingStore ¶
type ClientHandler ¶
type ClientHandler interface {
NewClient() Client
}
type ClientSession ¶
type ClientSession struct {
// contains filtered or unexported fields
}
type FileBackingStore ¶
type FileBackingStore struct {
// contains filtered or unexported fields
}
func NewFileBackingStore ¶
func NewFileBackingStore(basePath string) (*FileBackingStore, error)
func (*FileBackingStore) Lock ¶
func (fs *FileBackingStore) Lock()
func (*FileBackingStore) Set ¶
func (fs *FileBackingStore) Set(name string, value []byte) (err error)
func (*FileBackingStore) Unlock ¶
func (fs *FileBackingStore) Unlock()
type GitReceiveSession ¶
type GitReceiveSession struct { BackingStore BackingStore // contains filtered or unexported fields }
func NewGitReceiveSession ¶
func NewGitReceiveSession() *GitReceiveSession
func (*GitReceiveSession) HandleGitReceivePack ¶
func (session *GitReceiveSession) HandleGitReceivePack(in_ io.Reader, out io.Writer)
type HashingReader ¶
type HashingReader struct {
// contains filtered or unexported fields
}
HashingReader proxies an io.Reader with optional io.ByteReader support, and hashes all bytes that pass through with a given hash.Hash.
Reset and Sum methods are also proxied to the internal Hash object.
func NewHashingReader ¶
func NewHashingReader(h hash.Hash, r io.Reader) *HashingReader
func NewSHA1Reader ¶
func NewSHA1Reader(r io.Reader) *HashingReader
func (*HashingReader) ReadByte ¶
func (hr *HashingReader) ReadByte() (c byte, err error)
func (*HashingReader) Reset ¶
func (hr *HashingReader) Reset()
func (*HashingReader) Sum ¶
func (hr *HashingReader) Sum(b []byte) []byte
type RefMap ¶
func (*RefMap) Deserialize ¶
type ServerConfig ¶
type ServerConfig struct { SSHPort int SSHConfig ssh.ServerConfig ClientHandler ClientHandler }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.