Documentation ¶
Index ¶
- Constants
- func HandleCmdCreateAction(state *store.EngineState, action CmdCreateAction)
- func HandleCmdDeleteAction(state *store.EngineState, action CmdDeleteAction)
- func HandleCmdUpdateStatusAction(state *store.EngineState, action CmdUpdateStatusAction)
- func SpanIDForServeLog(procNum int) logstore.SpanID
- type Cmd
- type CmdCreateAction
- type CmdDeleteAction
- type CmdList
- type CmdServer
- type CmdServerSpec
- type CmdServerStatus
- type CmdSpec
- type CmdStateRunning
- type CmdStateTerminated
- type CmdStateWaiting
- type CmdStatus
- type CmdUpdateStatusAction
- type ObjectMeta
- type ServerController
Constants ¶
View Source
const AnnotationDepStatus = "tilt.dev/dep-status"
Expresses the status of a build dependency.
View Source
const AnnotationOwnerKind = "tilt.dev/owner-kind"
View Source
const AnnotationOwnerName = "tilt.dev/owner-name"
Variables ¶
This section is empty.
Functions ¶
func HandleCmdCreateAction ¶ added in v0.18.12
func HandleCmdCreateAction(state *store.EngineState, action CmdCreateAction)
When the local controller creates a new command, link that command to the Local runtime state.
func HandleCmdDeleteAction ¶ added in v0.19.0
func HandleCmdDeleteAction(state *store.EngineState, action CmdDeleteAction)
Mark the command for deletion.
func HandleCmdUpdateStatusAction ¶ added in v0.19.0
func HandleCmdUpdateStatusAction(state *store.EngineState, action CmdUpdateStatusAction)
When the Cmd controller updates a command, check to see
If the local serve cmd is watching the cmd, update the local runtime state to match the cmd status.
func SpanIDForServeLog ¶
Types ¶
type CmdCreateAction ¶ added in v0.18.12
type CmdCreateAction struct {
Cmd *Cmd
}
func NewCmdCreateAction ¶ added in v0.18.12
func NewCmdCreateAction(cmd *Cmd) CmdCreateAction
func (CmdCreateAction) Action ¶ added in v0.18.12
func (CmdCreateAction) Action()
func (CmdCreateAction) Summarize ¶ added in v0.19.0
func (a CmdCreateAction) Summarize(s *store.ChangeSummary)
type CmdDeleteAction ¶ added in v0.19.0
type CmdDeleteAction struct {
Name string
}
func (CmdDeleteAction) Action ¶ added in v0.19.0
func (CmdDeleteAction) Action()
func (CmdDeleteAction) Summarize ¶ added in v0.19.0
func (a CmdDeleteAction) Summarize(s *store.ChangeSummary)
type CmdServer ¶ added in v0.19.0
type CmdServer struct { metav1.ObjectMeta Spec CmdServerSpec Status CmdServerStatus }
type CmdServerSpec ¶ added in v0.19.0
type CmdServerStatus ¶ added in v0.19.0
type CmdServerStatus struct { }
type CmdStateRunning ¶ added in v0.18.12
type CmdStateRunning = v1alpha1.CmdStateRunning
type CmdStateTerminated ¶ added in v0.18.12
type CmdStateTerminated = v1alpha1.CmdStateTerminated
type CmdStateWaiting ¶ added in v0.19.0
type CmdStateWaiting = v1alpha1.CmdStateWaiting
type CmdUpdateStatusAction ¶ added in v0.19.0
type CmdUpdateStatusAction struct {
Cmd *Cmd
}
func NewCmdUpdateStatusAction ¶ added in v0.19.0
func NewCmdUpdateStatusAction(cmd *Cmd) CmdUpdateStatusAction
func (CmdUpdateStatusAction) Action ¶ added in v0.19.0
func (CmdUpdateStatusAction) Action()
type ObjectMeta ¶ added in v0.18.12
type ObjectMeta = metav1.ObjectMeta
type ServerController ¶ added in v0.19.0
type ServerController struct {
// contains filtered or unexported fields
}
A controller that reads the Tilt data model and creates new Cmd objects.
Reads the Cmd Status.
A CmdServer offers two constraints on top of a Cmd:
- We ensure that the old Cmd is terminated before we replace it with a new one, because they likely use the same port.
- We report the Cmd status Terminated as an Error state, and report it in a standard way.
func NewServerController ¶ added in v0.19.0
func NewServerController(client ctrlclient.Client) *ServerController
func (*ServerController) OnChange ¶ added in v0.19.0
func (c *ServerController) OnChange(ctx context.Context, st store.RStore, summary store.ChangeSummary) error
Click to show internal directories.
Click to hide internal directories.