local

package
v0.33.12 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

func SpanIDForServeLog(procNum int) logstore.SpanID

Types

type Cmd added in v0.18.12

type Cmd = v1alpha1.Cmd

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 CmdList added in v0.19.0

type CmdList = v1alpha1.CmdList

type CmdServer added in v0.19.0

type CmdServer struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   CmdServerSpec
	Status CmdServerStatus
}

type CmdServerSpec added in v0.19.0

type CmdServerSpec struct {
	Args           []string
	Dir            string
	Env            []string
	ReadinessProbe *v1alpha1.Probe

	// Kubernetes tends to represent this as a "generation" field
	// to force an update.
	TriggerTime time.Time

	DisableSource *v1alpha1.DisableSource
}

type CmdServerStatus added in v0.19.0

type CmdServerStatus struct {
	DisableStatus *v1alpha1.DisableStatus
}

type CmdSpec added in v0.18.12

type CmdSpec = v1alpha1.CmdSpec

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 CmdStatus added in v0.18.12

type CmdStatus = v1alpha1.CmdStatus

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) Get added in v0.23.0

func (c *ServerController) Get(name string) CmdServer

approximate a `GET` API endpoint for CmdServer TODO: remove once CmdServer is in the API

func (*ServerController) OnChange added in v0.19.0

func (c *ServerController) OnChange(ctx context.Context, st store.RStore, summary store.ChangeSummary) error

Jump to

Keyboard shortcuts

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