io

package
v0.33.19 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFile

func ReadFile(thread *starlark.Thread, p string) ([]byte, error)

func RecordReadPath added in v0.14.2

func RecordReadPath(t *starlark.Thread, wt WatchType, files ...string) error

Types

type Blob

type Blob struct {
	Text   string
	Source string
}

func NewBlob

func NewBlob(text string, source string) Blob

func (Blob) Freeze

func (b Blob) Freeze()

func (Blob) Hash

func (b Blob) Hash() (uint32, error)

func (Blob) ImplicitString added in v0.10.18

func (b Blob) ImplicitString() string

func (Blob) String

func (b Blob) String() string

func (Blob) Truth

func (b Blob) Truth() starlark.Bool

func (Blob) Type

func (b Blob) Type() string

type Plugin added in v0.22.4

type Plugin struct{}

func NewPlugin added in v0.22.4

func NewPlugin() Plugin

func (Plugin) NewState added in v0.22.4

func (Plugin) NewState() interface{}

func (Plugin) OnExec added in v0.22.4

func (Plugin) OnExec(t *starlark.Thread, tiltfilePath string, contents []byte) error

func (Plugin) OnStart added in v0.22.4

func (Plugin) OnStart(e *starkit.Environment) error

type ReadState

type ReadState struct {
	Paths []string
}

Track all the paths read while loading

func GetState

func GetState(m starkit.Model) (ReadState, error)

func MustState

func MustState(model starkit.Model) ReadState

type WatchType added in v0.14.2

type WatchType int
const (
	// If it's a file, only watch the file. If it's a directory, don't watch at all.
	WatchFileOnly WatchType = iota

	// If it's a file, only watch the file. If it's a directory, watch it recursively.
	WatchRecursive
)

Jump to

Keyboard shortcuts

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