functions

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize added in v0.0.8

func Initialize() func(ctx context.Context, dryrun bool, path string) error

Types

type ExecFileFn added in v0.0.8

type ExecFileFn = func(ctx context.Context, dryrun bool, path string) error

func NewExecFileFn added in v0.0.8

func NewExecFileFn(predeclared Predeclared, fs afero.Fs) ExecFileFn

type Predeclared added in v0.0.8

type Predeclared = starlark.StringDict

func NewPredeclaredFunction added in v0.0.8

func NewPredeclaredFunction(be backend.Backend, execIF exec.Interface, fs afero.Fs) Predeclared

type StarlarkFn

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

func Command

func Command(handler handlers.CommandHandler) StarlarkFn

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

func FileCopy

func FileCopy(handler handlers.FileCopyHandler) StarlarkFn

func FileMove

func FileMove(handler handlers.FileMoveHandler) StarlarkFn

func HTTPRequest

func HTTPRequest(handler handlers.HTTPRequestHandler) StarlarkFn

func IsArchLinux added in v0.0.8

func IsArchLinux(fs afero.Fs) StarlarkFn

func IsDarwin added in v0.0.8

func IsDarwin(execIF exec.Interface) StarlarkFn

func Package

func Package(chHandler handlers.CheckInstallHandler, inHandler handlers.InstallHandler) StarlarkFn
func Symlink(handler handlers.SymlinkHandler) StarlarkFn

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

type StarlarkLoadFn

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

func Load

func Load(dryrun bool, 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