tiltextension

package
v0.33.13 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package extension implements Tilt extensions. This is not the internal Starkit abstraction, but the user-visible feature. In a Tiltfile, you can write `load("ext://foo", "bar")` to load the function bar from the extension foo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtReconciler added in v0.25.0

type ExtReconciler interface {
	ForceApply(ext *v1alpha1.Extension, repo *v1alpha1.ExtensionRepo) v1alpha1.ExtensionStatus
}

type ExtRepoReconciler added in v0.25.0

type ExtRepoReconciler interface {
	ForceApply(ctx context.Context, repo *v1alpha1.ExtensionRepo) v1alpha1.ExtensionRepoStatus
}

Interfaces with just the reconciler methods we need.

type FakeExtReconciler added in v0.25.0

type FakeExtReconciler struct {
	Error string
	// contains filtered or unexported fields
}

func NewFakeExtReconciler added in v0.25.0

func NewFakeExtReconciler(path string) *FakeExtReconciler

func (*FakeExtReconciler) ForceApply added in v0.25.0

type FakeExtRepoReconciler added in v0.25.0

type FakeExtRepoReconciler struct {
	Error string
	// contains filtered or unexported fields
}

Fake versions of these interfaces.

func NewFakeExtRepoReconciler added in v0.25.0

func NewFakeExtRepoReconciler(path string) *FakeExtRepoReconciler

func (*FakeExtRepoReconciler) ForceApply added in v0.25.0

type Plugin added in v0.22.4

type Plugin struct {
	// contains filtered or unexported fields
}

func NewFakePlugin added in v0.25.0

func NewFakePlugin(repoReconciler ExtRepoReconciler, extReconciler ExtReconciler) *Plugin

func NewPlugin added in v0.22.4

func NewPlugin(repoReconciler *extensionrepo.Reconciler, extReconciler *extension.Reconciler) *Plugin

func (*Plugin) LocalPath added in v0.22.4

func (e *Plugin) LocalPath(t *starlark.Thread, arg string) (localPath string, err error)

func (Plugin) NewState added in v0.22.4

func (e Plugin) NewState() interface{}

func (*Plugin) OnStart added in v0.22.4

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

type State added in v0.18.11

type State struct {
	ExtsLoaded map[string]bool
}

func GetState added in v0.18.11

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

func MustState added in v0.18.11

func MustState(model starkit.Model) State

Jump to

Keyboard shortcuts

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