postfile

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PostFilePrefixPath = ""
	PostFileReadFile   = util.ReadFile
)

Functions

This section is empty.

Types

type ObjectChecker

type ObjectChecker interface {
	IsEmpty() bool
}

type PostFile

type PostFile struct {
	FileName     *string `json:"fileName" description:"file name"`
	Data         *string `json:"data" description:"file content, Base64Encode"`
	OrigFileName *string `json:"-"`
	RawData      []byte  `json:"-"`
}

func (*PostFile) Clean

func (p *PostFile) Clean() error

func (PostFile) CmdArg

func (p PostFile) CmdArg(key string) []string

key must include "--"

func (PostFile) MarshalJSON

func (p PostFile) MarshalJSON() (b []byte, err error)

func (*PostFile) Set

func (p *PostFile) Set(fileName string) error

func (PostFile) String

func (p PostFile) String() string

func (*PostFile) Type

func (p *PostFile) Type() string

func (*PostFile) UnmarshalJSON

func (p *PostFile) UnmarshalJSON(data []byte) error

type PostFiles

type PostFiles []PostFile

func (*PostFiles) Clean

func (p *PostFiles) Clean() error

func (*PostFiles) CmdArg

func (p *PostFiles) CmdArg(key string) []string

func (*PostFiles) Set

func (p *PostFiles) Set(fileName string) error

func (*PostFiles) String

func (p *PostFiles) String() string

func (*PostFiles) Type

func (p *PostFiles) Type() string

Jump to

Keyboard shortcuts

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