upl

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ADMIN_USER = "admin"
	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 ファイルが存在しない")
)

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

Jump to

Keyboard shortcuts

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