fswatch

package
v0.20.9 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigsTargetID = model.TargetID{
	Type: model.TargetTypeConfigs,
	Name: "singleton",
}

Functions

func FileWatchesFromManifests added in v0.19.0

func FileWatchesFromManifests(state store.EngineState) []*filewatches.FileWatch

FileWatchesFromManifests creates FileWatch specs from Tilt manifests in the engine state.

func HandleFileWatchCreateEvent added in v0.18.12

func HandleFileWatchCreateEvent(_ context.Context, state *store.EngineState, action FileWatchCreateAction)

func HandleFileWatchDeleteEvent added in v0.18.12

func HandleFileWatchDeleteEvent(_ context.Context, state *store.EngineState, action FileWatchDeleteAction)

func HandleFileWatchUpdateEvent added in v0.18.12

func HandleFileWatchUpdateEvent(ctx context.Context, state *store.EngineState, action FileWatchUpdateAction)

func HandleFileWatchUpdateStatusEvent added in v0.18.12

func HandleFileWatchUpdateStatusEvent(ctx context.Context, state *store.EngineState, action FileWatchUpdateStatusAction)

Types

type FileWatchCreateAction added in v0.18.12

type FileWatchCreateAction struct {
	FileWatch *filewatches.FileWatch
}

func NewFileWatchCreateAction added in v0.18.12

func NewFileWatchCreateAction(fw *filewatches.FileWatch) FileWatchCreateAction

func (FileWatchCreateAction) Action added in v0.18.12

func (FileWatchCreateAction) Action()

func (FileWatchCreateAction) Summarize added in v0.19.0

func (a FileWatchCreateAction) Summarize(summary *store.ChangeSummary)

type FileWatchDeleteAction added in v0.18.12

type FileWatchDeleteAction struct {
	Name types.NamespacedName
}

func NewFileWatchDeleteAction added in v0.18.12

func NewFileWatchDeleteAction(name types.NamespacedName) FileWatchDeleteAction

func (FileWatchDeleteAction) Action added in v0.18.12

func (FileWatchDeleteAction) Action()

func (FileWatchDeleteAction) Summarize added in v0.19.0

func (a FileWatchDeleteAction) Summarize(summary *store.ChangeSummary)

type FileWatchUpdateAction added in v0.18.12

type FileWatchUpdateAction struct {
	FileWatch *filewatches.FileWatch
}

func NewFileWatchUpdateAction added in v0.18.12

func NewFileWatchUpdateAction(fw *filewatches.FileWatch) FileWatchUpdateAction

func (FileWatchUpdateAction) Action added in v0.18.12

func (FileWatchUpdateAction) Action()

func (FileWatchUpdateAction) Summarize added in v0.19.0

func (a FileWatchUpdateAction) Summarize(summary *store.ChangeSummary)

type FileWatchUpdateStatusAction added in v0.18.12

type FileWatchUpdateStatusAction struct {
	ObjectMeta *metav1.ObjectMeta
	Status     *filewatches.FileWatchStatus
}

func NewFileWatchUpdateStatusAction added in v0.18.12

func NewFileWatchUpdateStatusAction(fw *filewatches.FileWatch) FileWatchUpdateStatusAction

func (FileWatchUpdateStatusAction) Action added in v0.18.12

func (FileWatchUpdateStatusAction) Action()

func (FileWatchUpdateStatusAction) Summarize added in v0.19.0

type ManifestSubscriber added in v0.19.0

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

ManifestSubscriber watches the store for changes to manifests and creates/updates/deletes FileWatch objects.

func NewManifestSubscriber added in v0.19.0

func NewManifestSubscriber(client ctrlclient.Client) *ManifestSubscriber

func (ManifestSubscriber) OnChange added in v0.19.0

func (w ManifestSubscriber) OnChange(ctx context.Context, st store.RStore, summary store.ChangeSummary) error

type WatchableTarget

type WatchableTarget interface {
	ignore.IgnorableTarget
	Dependencies() []string
	ID() model.TargetID
}

Jump to

Keyboard shortcuts

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