sshstorage

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright The Mantle Authors. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client *ssh.Client, host, docRoot, protocol string) storage.Storage

Types

type Remote

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

Remote implements a Storage interface for remote server.

func (*Remote) Close

func (r *Remote) Close() error

func (*Remote) Delete

func (r *Remote) Delete(ctx context.Context, name string) error

Delete the uploaded data from remote storage.

func (*Remote) Upload

func (r *Remote) Upload(name, contentType string, data []byte) (string, string, error)

Jump to

Keyboard shortcuts

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