github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/internal/engine/buildcontrol/build_and_deployer.go (about) 1 package buildcontrol 2 3 import ( 4 "context" 5 6 "github.com/tilt-dev/tilt/internal/store" 7 "github.com/tilt-dev/tilt/pkg/model" 8 ) 9 10 type BuildAndDeployer interface { 11 // BuildAndDeploy builds and deployed the specified target specs. 12 13 // Returns a BuildResultSet containing output (build result and associated 14 // file changes) for each target built in this call. The BuildResultSet only 15 // contains results for newly built targets--if a target was clean and didn't 16 // need to be built, it doesn't appear in the result set. 17 // 18 // BuildResult can be used to construct a set of BuildStates, which contain 19 // the last successful builds of each target and the files changed since that 20 // build. 21 BuildAndDeploy(ctx context.Context, st store.RStore, specs []model.TargetSpec, currentState store.BuildStateSet) (store.BuildResultSet, error) 22 }