fs

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "fs.star"
View Source
const Name = "fs"

Variables

View Source
var Module = &starlarkstruct.Module{
	Name: "fs",
	Members: starlark.StringDict{
		"readall":  localctx.AddBuiltin("fs.readall", ReadAll),
		"create":   localctx.AddBuiltin("fs.create", Create),
		"append":   localctx.AddBuiltin("fs.append", Append),
		"md5":      localctx.AddBuiltin("fs.md5", Md5),
		"gzip":     localctx.AddBuiltin("fs.gzip", Gzip),
		"exist":    localctx.AddBuiltin("fs.exist", Exist),
		"stat":     localctx.AddBuiltin("fs.stat", Stat),
		"glob":     localctx.AddBuiltin("fs.glob", Glob),
		"ls":       localctx.AddBuiltin("fs.ls", Ls),
		"basename": localctx.AddBuiltin("fs.basename", Basename),
		"dirname":  localctx.AddBuiltin("fs.dirname", Dirname),
		"rm":       localctx.AddBuiltin("fs.rm", Remove),
	},
}

Functions

func Append

func Append(thread *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func Basename

func Basename(thread *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func Create

func Create(thread *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func Dirname

func Dirname(thread *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func Exist

func Exist(thread *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func Glob

func Glob(thread *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func Gzip

func Gzip(thread *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func Ls

func Ls(thread *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func Md5

func Md5(thread *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func ReadAll

func ReadAll(thread *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func Remove

func Remove(thread *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func Stat

func Stat(thread *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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