github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/internal/store/filewatches/actions.go (about) 1 package filewatches 2 3 import "github.com/tilt-dev/tilt/pkg/apis/core/v1alpha1" 4 5 type FileWatchUpsertAction struct { 6 FileWatch *v1alpha1.FileWatch 7 } 8 9 func NewFileWatchUpsertAction(obj *v1alpha1.FileWatch) FileWatchUpsertAction { 10 return FileWatchUpsertAction{FileWatch: obj} 11 } 12 13 func (FileWatchUpsertAction) Action() {} 14 15 type FileWatchDeleteAction struct { 16 Name string 17 } 18 19 func NewFileWatchDeleteAction(n string) FileWatchDeleteAction { 20 return FileWatchDeleteAction{Name: n} 21 } 22 23 func (FileWatchDeleteAction) Action() {}