net

package
v0.1.0-dev.20260216091926 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 6 Imported by: 0

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.

func (*Download) Do

func (*Download) Name

func (o *Download) Name() string

func (*Download) Undo

func (o *Download) Undo(_ *execution.Context, _ map[string]any, _ execution.UndoState) error

type Provider

type Provider struct{}

Provider provides network operations.

func (*Provider) Download

func (p *Provider) Download(url string) ([]byte, error)

Download fetches the content at the given URL and returns the response body.

Jump to

Keyboard shortcuts

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