Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPluginEventNotSupported = errors.New("event not supported") ErrFileExistInvalid = errors.New("invalid file_exist value") )
View Source
var ErrHashMethodNotSupported = errors.New("hash method not supported")
Functions ¶
func Checksum ¶ added in v1.0.2
Checksum calculates the checksum of the given io.Reader using the specified hash method. Supported hash methods are: "md5", "sha1", "sha256", "sha512", "adler32", "crc32", "blake2b", "blake2s".
func WriteChecksums ¶ added in v1.0.2
WriteChecksums calculates the checksums for the given files using the specified hash methods, and writes the checksums to files named after the hash methods (e.g. "md5sum.txt", "sha256sum.txt").
Types ¶
type Plugin ¶
type Plugin struct { *plugin_base.Plugin Settings *Settings }
Plugin implements provide the plugin.
func New ¶
func New(e plugin_base.ExecuteFunc, build ...string) *Plugin
func (*Plugin) FlagsFromContext ¶
Click to show internal directories.
Click to hide internal directories.