uploader

package
v0.0.0-...-8efa7b7 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ftp

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

func NewFtp

func NewFtp(addr string, username string, password string, timeout time.Duration) (uf *Ftp, err error)

func (*Ftp) Mkdir

func (f *Ftp) Mkdir(_ context.Context, _ string, _ os.FileMode) (err error)

func (*Ftp) Upload

func (f *Ftp) Upload(_ context.Context, path string, _ string, name string, _ os.FileMode) (err error)

type Ssh

type Ssh struct {
	*drone.Base
	// contains filtered or unexported fields
}

func NewSsh

func NewSsh(base *drone.Base, addr string, username string, password string) *Ssh

func (*Ssh) Mkdir

func (s *Ssh) Mkdir(_ context.Context, _ string, _ os.FileMode) (err error)

func (*Ssh) Upload

func (s *Ssh) Upload(ctx context.Context, path string, dir string, name string, _ os.FileMode) (err error)

type Webdav

type Webdav struct {
	*drone.Base
	gowebdav.Client
	// contains filtered or unexported fields
}

func NewWebdav

func NewWebdav(base *drone.Base, addr string, username string, password string) *Webdav

func (*Webdav) Mkdir

func (w *Webdav) Mkdir(_ context.Context, dir string, permission os.FileMode) (err error)

func (*Webdav) Upload

func (w *Webdav) Upload(ctx context.Context, path string, dir string, name string, _ os.FileMode) (err error)

Jump to

Keyboard shortcuts

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