transfer

package
v0.0.0-...-d241bff Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePayloadWithEnvs

func ParsePayloadWithEnvs(trans string, envs map[string]string) (string, string, error)

ParsePayloadWithEnvs parses transfer directive to get source and dest from it,and source will be expanded using provided envs.

func ParseTransfer

func ParseTransfer(trans string) (string, string, error)

func PipeFile

func PipeFile(src string) func() (io.Reader, error)

PipeFile pipes source of file or directory to a trigger function, which could used to send source data to io.Write.

func Validate

func Validate(trans string) error

Validate validates transfer syntex.

Types

This section is empty.

Jump to

Keyboard shortcuts

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