io

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 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 Extension

type Extension struct{}

func NewExtension

func NewExtension() Extension

func (Extension) NewState

func (Extension) NewState() interface{}

func (Extension) OnExec

func (Extension) OnExec(t *starlark.Thread, tiltfilePath string) error

func (Extension) OnStart

func (Extension) 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