Documentation ¶
Index ¶
- func AuthPublicKey(in io.Reader) ssh.AuthMethod
- func AuthPublicKeyFile(path string) ssh.AuthMethod
- func Dial(addr, user, prefix string, auths []ssh.AuthMethod) (*sftp.Client, error)
- func New(client *sftp.Client, path string, transform func(string) []string) kvs.Store
- type SSHStore
- func (s *SSHStore) Close()
- func (s *SSHStore) Exists(key string) (bool, error)
- func (s *SSHStore) Read(key string) ([]byte, error)
- func (s *SSHStore) ReadStream(key string) (io.ReadCloser, error)
- func (s *SSHStore) Remove(key string) error
- func (s *SSHStore) Write(key string, data []byte) error
- func (s *SSHStore) WriteStream(key string, reader io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthPublicKey ¶
func AuthPublicKey(in io.Reader) ssh.AuthMethod
AuthPublicKey attempts to read a public keys, returns nil on failure
func AuthPublicKeyFile ¶
func AuthPublicKeyFile(path string) ssh.AuthMethod
AuthPublicKeyFile attempts to read a public key from a file, returns nil on failure
Types ¶
type SSHStore ¶
type SSHStore struct {
// contains filtered or unexported fields
}
SSHStore implements a KVS over ssh
func (*SSHStore) ReadStream ¶
func (s *SSHStore) ReadStream(key string) (io.ReadCloser, error)
ReadStream returns an io.ReadCloser to read content from the cache. err == nil only when a valid ReadCloser is returned.
func (*SSHStore) Remove ¶
Remove deletes a key from the Store. returns kvs.ErrNotFound when key is not found.
Click to show internal directories.
Click to hide internal directories.