Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PluginSpec = types.PluginSpec{ Name: pluginName, Version: pluginVersion, Type: types.TypeProcess, InitParameters: []types.ParameterSpec{ { Name: "algorithm", Required: false, Default: "md5", Description: "Hash algorithm: md5, sha256", Options: []string{"md5", "sha256"}, }, }, Parameters: []types.ParameterSpec{ { Name: "file_path", Required: true, Description: "Path to file", }, }, }
Functions ¶
func NewChecksumPlugin ¶
func NewChecksumPlugin(ps types.PluginCall) types.Plugin
Types ¶
type ChecksumPlugin ¶
type ChecksumPlugin struct {
// contains filtered or unexported fields
}
func (*ChecksumPlugin) Name ¶
func (p *ChecksumPlugin) Name() string
func (*ChecksumPlugin) Type ¶
func (p *ChecksumPlugin) Type() types.PluginType
func (*ChecksumPlugin) Version ¶
func (p *ChecksumPlugin) Version() string
Click to show internal directories.
Click to hide internal directories.