ssh

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobStore added in v1.13.0

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

func NewBlobStore added in v1.13.0

func NewBlobStore(client *sftp.Client, repositoryPath string) *BlobStore

func (BlobStore) Delete added in v1.13.0

func (s BlobStore) Delete(ctx context.Context, key string) error

func (BlobStore) DeletePrefix added in v1.13.0

func (s BlobStore) DeletePrefix(ctx context.Context, prefix string) error

func (BlobStore) DeleteTemporaries added in v1.13.0

func (s BlobStore) DeleteTemporaries(ctx context.Context, prefix string) (int, error)

func (BlobStore) Exists added in v1.13.0

func (s BlobStore) Exists(ctx context.Context, key string) (bool, error)

func (BlobStore) Get added in v1.13.0

func (s BlobStore) Get(ctx context.Context, key string) (io.ReadCloser, error)

func (BlobStore) List added in v1.13.0

func (s BlobStore) List(ctx context.Context, prefix string) ([]blob.Entry, error)

func (BlobStore) Put added in v1.13.0

func (s BlobStore) Put(ctx context.Context, key string, write func(io.Writer) error) error

type Client

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

func NewClient

func NewClient(address string, config *gossh.ClientConfig) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) Sftp

func (c *Client) Sftp() *sftp.Client

type FolderRepositoryRepository

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

func NewFolderRepositoryRepository

func NewFolderRepositoryRepository(client *sftp.Client) FolderRepositoryRepository

func (FolderRepositoryRepository) CreateConfig

func (f FolderRepositoryRepository) CreateConfig(ctx context.Context, repositoryPath string, c *repository.Config) error

func (FolderRepositoryRepository) CreateFolder

func (f FolderRepositoryRepository) CreateFolder(ctx context.Context, folderPath string) error

func (FolderRepositoryRepository) Exists

func (f FolderRepositoryRepository) Exists(ctx context.Context, repositoryPath string) (bool, error)

func (FolderRepositoryRepository) GetConfig

func (f FolderRepositoryRepository) GetConfig(ctx context.Context, repositoryPath string) (*repository.Config, error)

Jump to

Keyboard shortcuts

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