Documentation ¶
Index ¶
- Constants
- func DialSSHTimeout(network, addr string, config *ssh.ClientConfig, timeout time.Duration) (*ssh.Client, error)
- func KeyAuth(file string) (ssh.AuthMethod, error)
- type Connection
- type GoogleCloudStorageConnection
- func (conn GoogleCloudStorageConnection) CachedGet(name string) (string, error)
- func (c GoogleCloudStorageConnection) Close() error
- func (conn GoogleCloudStorageConnection) Get(name string) (string, error)
- func (c GoogleCloudStorageConnection) GetCacheDirectory() string
- func (conn GoogleCloudStorageConnection) ListObjectsAsAll(prefix string) ([]Object, error)
- func (conn GoogleCloudStorageConnection) ListObjectsAsFolders(prefix string) ([]Object, error)
- func (c GoogleCloudStorageConnection) String() string
- type GoogleCloudStorageObject
- type Object
- type S3Connection
- func (conn S3Connection) CachedGet(key string) (string, error)
- func (c S3Connection) Close() error
- func (conn S3Connection) Get(key string) (string, error)
- func (c S3Connection) GetCacheDirectory() string
- func (conn S3Connection) ListObjectsAsAll(prefix string) ([]Object, error)
- func (conn S3Connection) ListObjectsAsFolders(prefix string) ([]Object, error)
- func (c S3Connection) String() string
- type S3Object
- type SFTPConnection
- func (conn SFTPConnection) CachedGet(key string) (string, error)
- func (c SFTPConnection) Close() error
- func (conn SFTPConnection) Get(key string) (string, error)
- func (c SFTPConnection) GetCacheDirectory() string
- func (conn SFTPConnection) ListObjectsAsAll(prefix string) ([]Object, error)
- func (conn SFTPConnection) ListObjectsAsFolders(prefix string) ([]Object, error)
- func (c SFTPConnection) String() string
- type SFTPObject
- type SSHConn
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func DialSSHTimeout ¶ added in v0.1.3
Types ¶
type Connection ¶
type GoogleCloudStorageConnection ¶
type GoogleCloudStorageConnection struct { Context context.Context BucketName string CacheDirectory string }
func (GoogleCloudStorageConnection) CachedGet ¶
func (conn GoogleCloudStorageConnection) CachedGet(name string) (string, error)
func (GoogleCloudStorageConnection) Close ¶ added in v0.1.3
func (c GoogleCloudStorageConnection) Close() error
func (GoogleCloudStorageConnection) Get ¶
func (conn GoogleCloudStorageConnection) Get(name string) (string, error)
func (GoogleCloudStorageConnection) GetCacheDirectory ¶
func (c GoogleCloudStorageConnection) GetCacheDirectory() string
func (GoogleCloudStorageConnection) ListObjectsAsAll ¶
func (conn GoogleCloudStorageConnection) ListObjectsAsAll(prefix string) ([]Object, error)
func (GoogleCloudStorageConnection) ListObjectsAsFolders ¶
func (conn GoogleCloudStorageConnection) ListObjectsAsFolders(prefix string) ([]Object, error)
func (GoogleCloudStorageConnection) String ¶
func (c GoogleCloudStorageConnection) String() string
type GoogleCloudStorageObject ¶
type GoogleCloudStorageObject struct {
Name string
}
func (GoogleCloudStorageObject) GetPath ¶
func (o GoogleCloudStorageObject) GetPath() string
func (GoogleCloudStorageObject) String ¶
func (o GoogleCloudStorageObject) String() string
type S3Connection ¶
type S3Connection struct { Connection *s3.S3 BucketName string CacheDirectory string Downloader *s3manager.Downloader }
func NewS3Connection ¶
func NewS3Connection(connection *s3.S3, cacheDirectory string, s3BucketName string, options *s3manager.DownloadOptions) S3Connection
func (S3Connection) Close ¶ added in v0.1.3
func (c S3Connection) Close() error
func (S3Connection) GetCacheDirectory ¶
func (c S3Connection) GetCacheDirectory() string
func (S3Connection) ListObjectsAsAll ¶
func (conn S3Connection) ListObjectsAsAll(prefix string) ([]Object, error)
func (S3Connection) ListObjectsAsFolders ¶
func (conn S3Connection) ListObjectsAsFolders(prefix string) ([]Object, error)
func (S3Connection) String ¶
func (c S3Connection) String() string
type SFTPConnection ¶ added in v0.1.3
type SFTPConnection struct { SSHClient *ssh.Client SFTPClient *sftp.Client RemotePath string CacheDirectory string }
func NewSFTPConnection ¶ added in v0.1.3
func (SFTPConnection) CachedGet ¶ added in v0.1.3
func (conn SFTPConnection) CachedGet(key string) (string, error)
func (SFTPConnection) Close ¶ added in v0.1.3
func (c SFTPConnection) Close() error
func (SFTPConnection) Get ¶ added in v0.1.3
func (conn SFTPConnection) Get(key string) (string, error)
func (SFTPConnection) GetCacheDirectory ¶ added in v0.1.3
func (c SFTPConnection) GetCacheDirectory() string
func (SFTPConnection) ListObjectsAsAll ¶ added in v0.1.3
func (conn SFTPConnection) ListObjectsAsAll(prefix string) ([]Object, error)
func (SFTPConnection) ListObjectsAsFolders ¶ added in v0.1.3
func (conn SFTPConnection) ListObjectsAsFolders(prefix string) ([]Object, error)
func (SFTPConnection) String ¶ added in v0.1.3
func (c SFTPConnection) String() string
type SFTPObject ¶ added in v0.1.3
type SFTPObject struct {
Fullpath string
}
func (SFTPObject) GetPath ¶ added in v0.1.3
func (o SFTPObject) GetPath() string
func (SFTPObject) String ¶ added in v0.1.3
func (o SFTPObject) String() string
Click to show internal directories.
Click to hide internal directories.