functions

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecStarlarkFile added in v0.0.4

func ExecStarlarkFile(ctx context.Context, exc executor.Executor, path string) error

Types

type StarlarkFn

type StarlarkFn = func(thread *starlark.Thread, b *starlark.Builtin, args starlark.Tuple, kargs []starlark.Tuple) (starlark.Value, error)

func Command

func Command(exc executor.Executor) StarlarkFn

Command execute external command Example command(command string, args []string, user string, cwd string)

func FileCopy

func FileCopy(exc executor.Executor) StarlarkFn

func FileMove

func FileMove(exc executor.Executor) StarlarkFn

func HTTPRequest

func HTTPRequest(exc executor.Executor) StarlarkFn

func Package

func Package(exc executor.Executor) StarlarkFn
func Symlink(exc executor.Executor) StarlarkFn

Symlink create symbolic link Example symlink(src string, dest string)

type StarlarkLoadFn added in v0.0.4

type StarlarkLoadFn = func(thread *starlark.Thread, module string) (starlark.StringDict, error)

func Load added in v0.0.4

func Load(fs afero.Fs, predeclared starlark.StringDict) StarlarkLoadFn

Jump to

Keyboard shortcuts

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