Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(reg *execution.ActionRegistry)
Register registers all net actions with the given registry.
Types ¶
type Download ¶
type Download struct{ Impl *Provider }
Download fetches content from a URL. If a "path" slot is set, the content is written to disk (file mode). Otherwise it is returned as Result for downstream consumption.
type Provider ¶
type Provider struct{}
Provider provides network operations.
Compensable Backward methods accept the state map returned by the action's Do method and undo the side effects.
func (*Provider) CompensateDownload ¶
CompensateDownload removes the downloaded file at state["path"]. In-memory downloads (no path) produce nil state and are not compensated.
Click to show internal directories.
Click to hide internal directories.