upl

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_ADMINUSER = "admin"
	DEFAULT_PWD       = "admin@123"
)

Variables

View Source
var (
	DEFAULT_BASEURL = "http://localhost:7777"
	COMMAND         = "curl"
	VERBOSE_OPT     = "--trace-ascii -"
	UPLOAD_TARGET   = "upload.zip"

	TargetFileNotFoundError = errors.New("カレントディレクトリに upload.zip ファイルが存在しない")
	FailLoginError          = errors.New("ユーザー認証に失敗した")
	FailUploadError         = errors.New("アップロードが成功レスポンスを返却しなかった")
)

Functions

This section is empty.

Types

type Task added in v0.1.0

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

func NewTask added in v0.1.0

func NewTask(w io.Writer, options ...TaskOption) *Task

func (*Task) Exec added in v0.1.0

func (t *Task) Exec() error

type TaskOption added in v0.1.0

type TaskOption func(*Task)

func TaskWithBaseurl added in v0.1.0

func TaskWithBaseurl(baseurl string) TaskOption

func TaskWithDestpath added in v0.2.1

func TaskWithDestpath(destpath string) TaskOption

func TaskWithLoginUser added in v0.2.0

func TaskWithLoginUser(adminuser string, pwd string) TaskOption

Jump to

Keyboard shortcuts

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